public void UpdateCalculatedValues(ControlledDivision Host) { _ai.canMove = true; Host.RecalculateAggrigateValues(); Host.RefreshDiscoveredTiles(); _ai.maxSpeed = Host.Speed * GameManager.GameSpeed * Host.CommandingOfficer.SupplyUsage.Value; }
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(); }