Skip to content

Commit

Permalink
Added compatibility with 1.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
krafs committed Jul 11, 2021
1 parent dcfcaab commit 4a2fbcd
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 39 deletions.
1 change: 1 addition & 0 deletions About/About.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<li>1.0</li>
<li>1.1</li>
<li>1.2</li>
<li>1.3</li>
</supportedVersions>
<modDependencies>
<li>
Expand Down
17 changes: 3 additions & 14 deletions LevelUp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,15 @@

<PropertyGroup>
<TargetFramework>net472</TargetFramework>
<LangVersion>preview</LangVersion>
<OutputPath>1.1/Assemblies</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<DebugType>none</DebugType>
<AssemblyVersion>2.0.2</AssemblyVersion>
<FileVersion>2.0.3</FileVersion>
</PropertyGroup>

<PropertyGroup Condition="$(Configuration) == Debug">
<DefineConstants>DEBUG</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition="$(Configuration) == Release">
<Optimize>true</Optimize>
<FileVersion>2.0.4</FileVersion>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Krafs.Rimworld.Ref" Version="1.1.*" />
<PackageReference Include="Lib.Harmony" Version="2.0.*">
<ExcludeAssets>runtime</ExcludeAssets>
</PackageReference>
<PackageReference Include="Krafs.Rimworld.Ref" Version="1.1.2564" />
<PackageReference Include="Lib.Harmony" Version="2.1.0" ExcludeAssets="runtime" />
</ItemGroup>
</Project>
44 changes: 22 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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)
18 changes: 15 additions & 3 deletions Source/ModHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ public class ModHandler : Mod
{
private readonly Listing_Standard listing;
private Settings settings;
public Settings Settings => this.settings ??= this.GetSettings<Settings>();

public override string SettingsCategory() => base.Content.Name;

public ModHandler(ModContentPack content) : base(content)
{
Expand All @@ -19,6 +16,21 @@ public ModHandler(ModContentPack content) : base(content)
};
}

public Settings Settings
{
get
{
if (this.settings is null)
{
this.settings = this.GetSettings<Settings>();
}

return this.settings;
}
}

public override string SettingsCategory() => base.Content.Name;

public override void DoSettingsWindowContents(Rect rect)
{
listing.Begin(rect);
Expand Down

0 comments on commit 4a2fbcd

Please sign in to comment.