public BattleRegenerationComponent(Agent agent, BattleRegeneration behavior) : base(agent) { settings = BattleRegenSettingsUtil.Instance; healthLimit = settings.HealToFull ? agent.HealthLimit : agent.Health; this.behavior = behavior; timeSinceLastAttack = 0f; }
public BattleRegeneration() { settings = BattleRegenSettingsUtil.Instance; heroXpGainPairs = new ConcurrentQueue <Tuple <Hero, float> >(); activeAgents = new Dictionary <Agent, BattleRegenerationComponent>(2048); // default max agent cap without mods messages = new ConcurrentQueue <string>(); Debug.Print("[BattleRegeneration] Mission started, data initialized"); Debug.Print($"[BattleRegeneration] Debug mode on, dumping settings: regen mode: {settings.RegenModel}, " + $"medicine boost: {settings.RegenAmount}, regen model: {settings.MedicineBoost}, commander medicine boost: {settings.CommanderMedicineBoost}, " + $"xp gain: {settings.XpGain}, commander xp gain: {settings.CommanderXpGain}, " + $"regen in percent HP: player:{settings.RegenAmount}, companions:{settings.RegenAmountCompanions}, allied heroes:{settings.RegenAmountAllies}, " + $"party troops:{settings.RegenAmountPartyTroops}, allied troops:{settings.RegenAmountAlliedTroops}, enemy heroes:{settings.RegenAmountEnemies}, " + $"enemy troops:{settings.RegenAmountEnemyTroops}, animals:{settings.RegenAmountAnimals}"); }