Terraria.Player.CollectTaxes C# (CSharp) Method

CollectTaxes() public method

public CollectTaxes ( ) : void
return void
        public void CollectTaxes()
        {
            int num1 = Item.buyPrice(0, 0, 0, 50);
            int num2 = Item.buyPrice(0, 10, 0, 0);
            if (!NPC.taxCollector || this.taxMoney >= num2)
                return;
            int num3 = 0;
            for (int index = 0; index < 200; ++index)
            {
                if (Main.npc[index].active && !Main.npc[index].homeless && NPC.TypeToNum(Main.npc[index].type) > 0)
                    ++num3;
            }
            this.taxMoney += num1 * num3;
            if (this.taxMoney <= num2)
                return;
            this.taxMoney = num2;
        }
Player