Terraria.Player.addDPS C# (CSharp) Method

addDPS() public method

public addDPS ( int dmg ) : void
dmg int
return void
        public void addDPS(int dmg)
        {
            if (this.dpsStarted)
            {
                this.dpsLastHit = DateTime.Now;
                this.dpsDamage += dmg;
                this.dpsEnd = DateTime.Now;
            }
            else
            {
                this.dpsStarted = true;
                this.dpsStart = DateTime.Now;
                this.dpsEnd = DateTime.Now;
                this.dpsLastHit = DateTime.Now;
                this.dpsDamage = dmg;
            }
        }
Player