Skip to content

Commit

Permalink
v1.1.21 - Properly duplicate the facilities level texts
Browse files Browse the repository at this point in the history
  • Loading branch information
sarbian committed Aug 20, 2020
1 parent 9d4c29a commit 64e9783
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions CustomBarnKit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,13 @@ private void LoadUpgradesPrices()

level.Setup(facility);
level.levelCost = prices[i];
level.levelText = sourceLvl.levelText;
level.levelStats = sourceLvl.levelStats;
level.levelText = Instantiate(sourceLvl.levelText);
level.levelStats = new KSCFacilityLevelText
{
facility = sourceLvl.levelStats.facility,
linePrefix = sourceLvl.levelStats.linePrefix,
textBase = sourceLvl.levelStats.textBase
};
level.facilityPrefab = sourceLvl.facilityPrefab;
level.facilityInstance = null;

Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.20.0")]
[assembly: AssemblyFileVersion("1.1.20.0")]
[assembly: AssemblyVersion("1.1.21.0")]
[assembly: AssemblyFileVersion("1.1.21.0")]

0 comments on commit 64e9783

Please sign in to comment.