diff --git a/About/About.xml b/About/About.xml index f6dd087..74aeeee 100644 --- a/About/About.xml +++ b/About/About.xml @@ -9,6 +9,7 @@
  • 1.0
  • 1.1
  • 1.2
  • +
  • 1.3
  • diff --git a/LevelUp.csproj b/LevelUp.csproj index d509d5a..483f0f7 100644 --- a/LevelUp.csproj +++ b/LevelUp.csproj @@ -3,26 +3,15 @@ net472 - preview 1.1/Assemblies false none 2.0.2 - 2.0.3 - - - - DEBUG - - - - true + 2.0.4 - - - runtime - + + \ No newline at end of file diff --git a/README.md b/README.md index 507011c..e2af142 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,33 @@ # Level Up! -A RimWorld mod adding notifications when a colonist levels up a skill. +A RimWorld mod for receiving notifications when a colonist levels up a skill. -### Compatibility -- Compatible with all release versions of RimWorld, **v1.0** - **v1.2**. -- Partially incompatible with **Static Quality Plus**. +# How to install -### Notes -- Safe to add and remove from existing saves. -- Add anywhere in your load order. -- This mod is different on v1.0 of RimWorld. You can use it on both versions, but they are slightly different. -Read the [Release notes](https://github.com/krafs/LevelUp/releases/tag/v2.0.0) to learn what has changed. +- Subscribe at the [Steam Workshop](https://steamcommunity.com/sharedfiles/filedetails/?id=1701592470) + + _or_ + +- Download the latest zip-file from [Latest Release](https://github.com/krafs/LevelUp/releases) +- Unzip the contents and place them in your RimWorld/Mods folder. +- Activate the mod in the mod menu in the game. +- Put anywhere in your load order. ### How to use Just play like normal. You'll get notified whenever a colonist levels up. -*Level up* is enabled by default. If you want to get notifications when a colonist levels down, enable it in the mod settings. +The mod can be customized in the mod settings. + +### Incompatibilities +- **Static Quality Plus**. +- **Ducks' Insane Skills**. -Toggle individual features in the mod settings. +### Notes +- Compatible with Rimworld **v1.3**. +- Safe to add and remove from existing saves. +- Add anywhere in your load order. +- Incompatible with mod **Static Quality Plus**. +- Incompatible with mod **Ducks' Insane Skills**. #### "My colonist levels up and then almost instantly down again!" This is caused by a feature in vanilla RimWorld known as *skill decay*. Skills at lvl 10 and higher lose xp. If xp goes low enough, the skill levels down. The rate of skill decay increases with every level - It is slow at lvl 10, and fast at lvl 20. @@ -46,14 +56,4 @@ Simplified Chinese (Credit: HawnHan) Portuguese/Brazilian (Credit: randrade86) -Polish (Credit: soshman) - -# Installation -Add _Level Up!_ anywhere in your load order. -- Subscribe at the [Steam Workshop](https://steamcommunity.com/sharedfiles/filedetails/?id=1701592470) - - _or_ - -- Download the latest zip-file from [Latest Release](https://github.com/krafs/LevelUp/releases) -- Unzip the contents and place them in your RimWorld/Mods folder. -- Activate the mod in the mod menu in the game. +Polish (Credit: soshman) \ No newline at end of file diff --git a/Source/ModHandler.cs b/Source/ModHandler.cs index ba1e2bb..581b07f 100644 --- a/Source/ModHandler.cs +++ b/Source/ModHandler.cs @@ -7,9 +7,6 @@ public class ModHandler : Mod { private readonly Listing_Standard listing; private Settings settings; - public Settings Settings => this.settings ??= this.GetSettings(); - - public override string SettingsCategory() => base.Content.Name; public ModHandler(ModContentPack content) : base(content) { @@ -19,6 +16,21 @@ public ModHandler(ModContentPack content) : base(content) }; } + public Settings Settings + { + get + { + if (this.settings is null) + { + this.settings = this.GetSettings(); + } + + return this.settings; + } + } + + public override string SettingsCategory() => base.Content.Name; + public override void DoSettingsWindowContents(Rect rect) { listing.Begin(rect);