diff --git a/ExampleMod.cs b/ExampleMod.cs index f62bb61..a643f9a 100644 --- a/ExampleMod.cs +++ b/ExampleMod.cs @@ -61,7 +61,7 @@ public class ExampleMod : Mod { if (o is Person person) { // changing the walk speed to be doubled if a person is wearing our dark shirt person.OnGetWalkSpeed += (ref float s) => { - if (person.CurrentOutfit.TryGetValue(ClothesLayer.Shirt, out var shirt) && shirt.Type == darkShirt) + if (person.CurrentOutfit.Clothes.TryGetValue(ClothesLayer.Shirt, out var shirt) && shirt.Type == darkShirt) s *= 2; }; } diff --git a/ExampleMod.csproj b/ExampleMod.csproj index cb7732c..af38cb6 100644 --- a/ExampleMod.csproj +++ b/ExampleMod.csproj @@ -5,7 +5,7 @@ - + diff --git a/Run.bat b/Run.bat index 5413619..266e1a5 100644 --- a/Run.bat +++ b/Run.bat @@ -8,4 +8,4 @@ robocopy ./bin/Debug/net6.0/ "%LOCALAPPDATA%/Tiny Life/Mods" /e /is rem run the game set /p dir=<"%LOCALAPPDATA%/Tiny Life/GameDir" cd /d %dir% -"Tiny Life.exe" -v \ No newline at end of file +"Tiny Life.exe" -v --skip-splash \ No newline at end of file diff --git a/Run.sh b/Run.sh index b0bf89b..09e509a 100644 --- a/Run.sh +++ b/Run.sh @@ -8,4 +8,4 @@ cp ./bin/Debug/net6.0/* "$HOME/.local/share/Tiny Life/Mods" -r # run the game dir=$(<"$HOME/.local/share/Tiny Life/GameDir") cd $dir -"./Tiny Life" -v \ No newline at end of file +"./Tiny Life" -v --skip-splash \ No newline at end of file