Skip to content

Commit

Permalink
Custom upgrade text for TS
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanKell committed Jul 27, 2023
1 parent 90ab060 commit 104063c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
20 changes: 10 additions & 10 deletions GameData/RP-1/Localization/en-us.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -115,16 +115,16 @@
#rp0_FacilityContextMenu_UpgradeInProgress = Construction already in progress!

//custom locs for RA tracking station
#autoLOC_rp0_FacilityContextMenu_TS_lvl0 = * Orbits visible in map\n* DSN available in VHF, UHF and S-Band\n* VHF transmit power 100 W, gain 20 dbi\n* UHF transmit power 100 W, gain 20 dbi\n* S-band transmit power 2 kW, gain 49 dbi
#autoLOC_rp0_FacilityContextMenu_TS_lvl1 = * Patched Conics visible in map\n* DSN available in VHF, UHF and S-Band\n* VHF transmit power 100 W, gain 20 dbi\n* UHF transmit power 100 W, gain 34 dbi\n* S-band transmit power 2 kW, gain 52.5 dbi
#autoLOC_rp0_FacilityContextMenu_TS_lvl2 = * Patched Conics visible in map\n* DSN available in VHF, UHF and S-Band\n* VHF transmit power 100 W, gain 20 dbi\n* UHF transmit power 100 W, gain 34 dbi\n* S-band transmit power 2 kW, gain 52.5 dbi
#autoLOC_rp0_FacilityContextMenu_TS_lvl3 = * Patched Conics visible in map\n* DSN available in VHF, UHF and S-Band\n* VHF transmit power 100 W, gain 20 dbi\n* UHF transmit power 100 W, gain 34 dbi\n* S-band transmit power 2 kW, gain 52.5 dbi
#autoLOC_rp0_FacilityContextMenu_TS_lvl4 = * Patched Conics visible in map\n* DSN available in VHF, UHF and S-Band\n* VHF transmit power 100 W, gain 20 dbi\n* UHF transmit power 100 W, gain 34 dbi\n* S-band transmit power 2 kW, gain 60.5 dbi
#autoLOC_rp0_FacilityContextMenu_TS_lvl5 = * Patched Conics visible in map\n* DSN available in VHF, UHF and S-Band\n* VHF transmit power 100 W, gain 20 dbi\n* UHF transmit power 100 W, gain 34 dbi\n* S-band transmit power 2 kW, gain 60.5 dbi
#autoLOC_rp0_FacilityContextMenu_TS_lvl6 = * Patched Conics visible in map\n* DSN available in VHF, UHF and S-Band\n* VHF transmit power 100 W, gain 20 dbi\n* UHF transmit power 100 W, gain 34 dbi\n* S-band transmit power 2 kW, gain 62.5 dbi
#autoLOC_rp0_FacilityContextMenu_TS_lvl7 = * Patched Conics visible in map\n* DSN available in VHF, UHF, S-Band and X-Band\n* VHF transmit power 100 W, gain 20 dbi\n* UHF transmit power 100 W, gain 34 dbi\n* S-band transmit power 2 kW, gain 62.5 dbi\n* X-band transmit power 10 kW, gain 73.5 dbi
#autoLOC_rp0_FacilityContextMenu_TS_lvl8 = * Patched Conics visible in map\n* DSN available in VHF, UHF, S-Band and X-Band\n* VHF transmit power 100 W, gain 20 dbi\n* UHF transmit power 100 W, gain 34 dbi\n* S-band transmit power 20 kW, gain 63.6 dbi\n* X-band transmit power 20 kW, gain 74.3 dbi
#autoLOC_rp0_FacilityContextMenu_TS_lvl9 = * Patched Conics visible in map\n* DSN available in VHF, UHF, S-Band, X-Band and Ka-Band\n* VHF transmit power 100 W, gain 20 dbi\n* UHF transmit power 100 W, gain 34 dbi\n* S-band transmit power 20 kW, gain 63.6 dbi\n* X-band transmit power 20 kW, gain 74.3 dbi\n* Ka-band transmit power 300 W, gain 79 dbi
#autoLOC_rp0_FacilityContextMenu_TS_lvl0 = Suports comm codecs up to TL: 0\nDSN S-band power 2 kW, gain 49 dBi\nDSN UHF power 100 W, gain 20 dBi\nDSN VHF power 100 W, gain 20 dBi
#autoLOC_rp0_FacilityContextMenu_TS_lvl1 = Suports comm codecs up to TL: 1\nDSN S-band power 2 kW, gain 52.5 dBi\nDSN UHF power 100 W, gain 34 dBi\nDSN VHF power 100 W, gain 20 dBi
#autoLOC_rp0_FacilityContextMenu_TS_lvl2 = Suports comm codecs up to TL: 2\nDSN S-band power 2 kW, gain 52.5 dBi\nDSN UHF power 100 W, gain 34 dBi\nDSN VHF power 100 W, gain 20 dBi
#autoLOC_rp0_FacilityContextMenu_TS_lvl3 = Suports comm codecs up to TL: 3\nDSN S-band power 2 kW, gain 52.5 dBi\nDSN UHF power 100 W, gain 34 dBi\nDSN VHF power 100 W, gain 20 dBi
#autoLOC_rp0_FacilityContextMenu_TS_lvl4 = Suports comm codecs up to TL: 4\nDSN S-band power 2 kW, gain 60.5 dBi\nDSN UHF power 100 W, gain 34 dBi\nDSN VHF power 100 W, gain 20 dBi
#autoLOC_rp0_FacilityContextMenu_TS_lvl5 = Suports comm codecs up to TL: 5\nDSN S-band power 2 kW, gain 60.5 dBi\nDSN UHF power 100 W, gain 34 dBi\nDSN VHF power 100 W, gain 20 dBi
#autoLOC_rp0_FacilityContextMenu_TS_lvl6 = Suports comm codecs up to TL: 6\nDSN S-band power 2 kW, gain 62.5 dBi\nDSN UHF power 100 W, gain 34 dBi\nDSN VHF power 100 W, gain 20 dBi
#autoLOC_rp0_FacilityContextMenu_TS_lvl7 = Suports comm codecs up to TL: 7\nDSN X-band power 10 kW, gain 73.5 dBi\nDSN S-band power 2 kW, gain 62.5 dBi\nDSN UHF power 100 W, gain 34 dBi\nDSN VHF power 100 W, gain 20 dBi
#autoLOC_rp0_FacilityContextMenu_TS_lvl8 = Suports comm codecs up to TL: 8\nDSN X-band power 20 kW, gain 74.3 dBi\nDSN S-band power 20 kW, gain 63.6 dBi\nDSN UHF power 100 W, gain 34 dBi\nDSN VHF power 100 W, gain 20 dBi
#autoLOC_rp0_FacilityContextMenu_TS_lvl9 = Suports comm codecs up to TL: 9\nDSN Ka-band power 300 kW, gain 79 dBi\nDSN X-band power 20 kW, gain 74.3 dBi\nDSN S-band power 20 kW, gain 63.6 dBi\nDSN UHF power 100 W, gain 34 dBi\nDSN VHF power 100 W, gain 20 dBi

// Unlock Credit
#rp0_UnlockCredit_NodeInfo = Unlock Credit: <sprite=\"CurrencySpriteAsset\" name=\"Funds\" tint=1><<1>>
Expand Down
4 changes: 4 additions & 0 deletions Source/LocalizationHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ public static void UpdateFacilityLevelStats(Upgradeables.UpgradeableObject.Upgra
if (trainingTimeMult != 1d)
lvl.levelStats.textBase += $"\n{Localizer.Format("#autoLOC_rp0_FacilityContextMenu_AC_Training", FormatRatioAsPercent(trainingTimeMult))}";
}
else if (facilityType == SpaceCenterFacility.TrackingStation)
{
lvl.levelStats.textBase = $"[MapMode]\n[ManeuverTool]\n[#autoLOC_rp0_FacilityContextMenu_TS_lvl{lvlIdx}]\n[UnownedObjects]";
}
}

public static string FormatRatioAsPercent(double ratio)
Expand Down

0 comments on commit 104063c

Please sign in to comment.