Beispiel #1
0
    public override void OnTick(ControlledDivision Host)
    {
        Officer officer = Host.CommandingOfficer;

        foreach (var soldier in Host.Soldiers)
        {
            soldier.UseSupply(officer);
        }

        if (Host.DivisionModifiers.ContainsKey(typeof(LowSupplyModifier)))
        {
            Host.TakeDamage(1, Host);
        }

        Host.RecalculateAggrigateValues();
    }