Skip to content

Commit

Permalink
Added SoftExperienceCap support
Browse files Browse the repository at this point in the history
  • Loading branch information
NBKRedSpy committed Jun 16, 2022
1 parent f751415 commit ac83b27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions BtShowXp/Patches/SetPilotXpText.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static void Postfix( Pilot ___pilot, LocalizableText ___callsign)

if (Core.ModSettings.ShowPilotXp)
{
pilotText.Append($"{___callsign.text} [{___pilot.TotalXP:#,#.##} XP] ");
pilotText.Append($" [{___pilot.TotalXP:#,#.##} XP] ");
}

if (Core.ModSettings.ShowPilotXpCorruption)
Expand Down Expand Up @@ -116,7 +116,8 @@ public static void Postfix( Pilot ___pilot, LocalizableText ___callsign)

if (pilotText.Length != 0)
{
___callsign.SetText(pilotText.ToString().TrimEnd());
string displayText = pilotText.ToString().Trim();
___callsign.SetText("{0} {1}", ___callsign.text,displayText);
}

}
Expand Down
2 changes: 1 addition & 1 deletion BtShowXp/mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"Enabled": true,

"DLL": "BtShowXp.dll",
"OptionallyDependsOn": [ "BT_Extended_CE" ],
"OptionallyDependsOn": [ "BT_Extended_CE", "SoftExperienceCap"],
"Settings": {
"ShowPilotXp": true,
"ShowPilotXpCorruption": true,
Expand Down

0 comments on commit ac83b27

Please sign in to comment.