private void ShowHealForecast(TacticsMove healer, TacticsMove receiver, InventoryTuple staff) { StatsContainer stats = healer.stats; colorBackground.color = (healer.faction == Faction.PLAYER) ? new Color(0.7f, 0.7f, 1f) : new Color(1f, 0.7f, 0.7f); eColorBackground.color = (receiver.faction == Faction.PLAYER) ? new Color(0.7f, 0.7f, 1f) : new Color(1f, 0.7f, 0.7f); hCharacterName.text = stats.charData.entryName; hPortrait.sprite = stats.charData.portraitSet.small; stats = receiver.stats; hCharacterName2.text = stats.charData.entryName; hPortrait2.sprite = stats.charData.portraitSet.small; if (inBattle) { hHpBar.SetAmount(healer.currentHealth, healer.stats.hp); hHpBar2.SetAmount(receiver.currentHealth, receiver.stats.hp); } hWpnIcon.sprite = staff.icon; hWpnName.text = staff.entryName; if (!inBattle) { hWpnCharge.text = (string.IsNullOrEmpty(staff.uuid)) ? staff.currentCharges.ToString() : ""; hHealText.text = string.Format("{0} → {1} ({2})", _defenderTactics.currentHealth, Mathf.Min(_defenderTactics.currentHealth + BattleCalc.CalculateHeals(staff, _attackerTactics.stats), _defenderTactics.stats.hp), _defenderTactics.stats.hp); } }
public int GetHeals() { return(BattleCalc.CalculateHeals(staffAtk, attacker.stats)); }