mirror of
https://github.com/Ellpeck/TinyLifeExampleMod.git
synced 2024-11-22 12:03:28 +01:00
0.19.0
This commit is contained in:
parent
6aca205bfd
commit
b4e3511e48
4 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="TinyLifeApi" Version="0.18.1" />
|
||||
<PackageReference Include="TinyLifeApi" Version="0.19.0" />
|
||||
|
||||
<PackageReference Include="ExtremelySimpleLogger" Version="1.2.4" />
|
||||
<PackageReference Include="MLEM.Data" Version="5.2.0-290" />
|
||||
|
|
2
Run.bat
2
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
|
||||
"Tiny Life.exe" -v --skip-splash
|
2
Run.sh
2
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
|
||||
"./Tiny Life" -v --skip-splash
|
Loading…
Reference in a new issue