Skip to content

Commit

Permalink
0.0.2.16 Check for Garrison Disabled config option
Browse files Browse the repository at this point in the history
  • Loading branch information
skeezerbean committed Nov 11, 2021
1 parent f48cf8a commit 212fb99
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,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("0.0.2.15")]
[assembly: AssemblyFileVersion("0.0.2.15")]
[assembly: AssemblyVersion("0.0.2.16")]
[assembly: AssemblyFileVersion("0.0.2.16")]
2 changes: 1 addition & 1 deletion SPP-LegionV2-Management.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>15</ApplicationRevision>
<ApplicationRevision>16</ApplicationRevision>
<ApplicationVersion>0.0.2.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
Expand Down
5 changes: 5 additions & 0 deletions ViewModels/ConfigGeneratorViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,7 @@ public void CheckSPPConfig()
bool customNoCastTime = IsOptionEnabled(WorldCollection, "Custom.NoCastTime");
bool worldChat = IsOptionEnabled(WorldCollection, "WorldChat.Enable");
bool characterTemplate = IsOptionEnabled(WorldCollection, "Character.Template");
bool garrisonDisableUpgrade = IsOptionEnabled(WorldCollection, "Garrisone.DisableUpgrade");

// If we just applied defaults, and there's still nothing, then something went wrong... missing templates?
if (BnetCollection.Count == 0 || WorldCollection.Count == 0)
Expand Down Expand Up @@ -857,6 +858,10 @@ public void CheckSPPConfig()
if (customNoCastTime)
result += "Note - you have Custom.NoCastTime = 1 and may cause unintended effects when casting. Set entry to 0 if you need that to change\n\n";

// Check if Garrisons upgrade is disabled
if (garrisonDisableUpgrade)
result += "⚠ Warning - Garrisone.DisableUpgrade is set to 1, this will cause issues upgrading a Garrison. Set to 0 to enable\n\n";

// Check collections for duplicate entries, and strip out the &
// at the end of the string. This will leave the final as listing
// [entry1&entry2&entry3] for the feedback
Expand Down

0 comments on commit 212fb99

Please sign in to comment.