Exemple #1
0
        protected override void ApplyGoldLoot(AttackableUnit source)
        {
            float goldFromLastHit = LootManager.Instance.GetGoldLoot(this);

            if (goldFromLastHit != 0)
            {
                source.AddGold(goldFromLastHit, true);
            }

            float goldGlobal = Record.GlobalGoldGivenOnDeath;

            if (goldGlobal != 0)
            {
                source.Team.Iteration <AIUnit>(x => x.AddGold(goldGlobal, true));
            }

            float goldLocal = Record.LocalGoldGivenOnDeath;

            if (goldLocal != 0)
            {
                var units = source.Team.GetUnits <AIUnit>(x => x.GetDistanceTo(this) < LOCAL_RANGE);

                foreach (var unit in units)
                {
                    unit.AddGold(goldLocal, true);
                }
            }
        }
Exemple #2
0
 protected override void ApplyGoldLoot(AttackableUnit source)
 {
     source.AddGold(300f, true);
 }
Exemple #3
0
 protected override void ApplyGoldLoot(AttackableUnit source)
 {
     source.AddGold(GOLD_GIVEN_AT_DEATH, true);
 }