Пример #1
0
        public override string GetCurrentEffectText(CardStatistics cardStatistics, SaveManager saveManager, RelicManager relicManager)
        {
            int baseDamage  = GetTotalPyreDamage();
            int extraDamage = GetExtraDamage(GetCard());

            // The card text must be different if we're in combat or out of it
            if (cardStatistics != null && cardStatistics.GetIsInActiveBattle())
            {
                // In combat
                if (extraDamage > 0)
                {
                    return(string.Format("Pyreboost_CardText_InsideCombat_WithUpgrades".Localize(), extraDamage, "tempUpgradeHighlight", baseDamage));
                }
                else
                {
                    return(string.Format("Pyreboost_CardText_InsideCombat_NoUpgrades".Localize(), baseDamage));
                }
            }

            // Out of combat
            if (extraDamage > 0)
            {
                return(string.Format(("Pyreboost_CardText_OutsideCombat").Localize(), extraDamage, "tempUpgradeHighlight"));
            }

            return(string.Empty);
        }
        public override string GetCurrentEffectText(CardStatistics cardStats, SaveManager saveManager, RelicManager relicManager)
        {
            int extraDamage = GetExtraDamage(GetCard());

            if (cardStats == null)
            {
                if (extraDamage > 0)
                {
                    return(string.Format("CardTraitScalingAddDamage_ExtraDamage_XCostOutsideBattle_CardText".Localize(), extraDamage, "tempUpgradeHighlight"));
                }
                return(string.Empty);
            }
            int baseDamage = GetBaseDamage(GetCard());

            if (extraDamage > 0)
            {
                if (!CardStatistics.GetTrackedValueIsValidOutsideBattle(base.StatValueData.trackedValue) && !cardStats.GetIsInActiveBattle())
                {
                    return(string.Format("CardTraitScalingAddDamage_ExtraDamage_XCostOutsideBattle_CardText".Localize(), extraDamage, "tempUpgradeHighlight"));
                }
                return(string.Format("CardTraitScalingAddDamage_ExtraDamage_CardText".Localize(new LocalizedInteger(baseDamage, baseDamage + extraDamage)), extraDamage, "tempUpgradeHighlight"));
            }
            if (!cardStats.GetStatValueShouldDisplayOnCardNow(base.StatValueData))
            {
                return(string.Empty);
            }
            return("CardTraitScalingAddDamage_CurrentScaling_CardText".Localize(new LocalizedIntegers(baseDamage)));
        }