Skip to content

Commit

Permalink
Move minima/maxima explanations to translate keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Safairette committed Dec 4, 2024
1 parent 2e524ef commit 8f9d253
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Languages/English/Keyed/Stats.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
<CE_StatsReport_WeaponToughness_StuffEffect>Additional material toughness multiplier:</CE_StatsReport_WeaponToughness_StuffEffect>
<CE_StatsReport_WeaponToughness_HolderEffect>Wielder skill effect:</CE_StatsReport_WeaponToughness_HolderEffect>
<CE_Long_Range_Radio>Long range radio</CE_Long_Range_Radio>
<CE_StatPart_MinimaExplanation>Picks the lowest value of available</CE_StatPart_MinimaExplanation>
<CE_StatPart_MaximaExplanation>Picks the highest value of available</CE_StatPart_MaximaExplanation>

</LanguageData>
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ protected override float Select(float first, float second)

public override string ExplanationPart(StatRequest req)
{
return "Picks the highest value of available: \n\n" + base.ExplanationPart(req);
return "CE_StatPart_MaximaExplanation".Translate() + ": \n\n" + base.ExplanationPart(req);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Runtime.CompilerServices;
using RimWorld;
using UnityEngine;
using Verse;

namespace CombatExtended
{
Expand All @@ -15,7 +16,7 @@ protected override float Select(float first, float second)

public override string ExplanationPart(StatRequest req)
{
return "Picks the lowest value of available: \n\n" + base.ExplanationPart(req);
return "CE_StatPart_MinimaExplanation".Translate() + ": \n\n" + base.ExplanationPart(req);
}
}
}

0 comments on commit 8f9d253

Please sign in to comment.