mirror of
https://github.com/Ellpeck/TinyLifeExampleMod.git
synced 2024-06-01 04:13:37 +02:00
0.19.0
This commit is contained in:
parent
6aca205bfd
commit
b4e3511e48
|
@ -61,7 +61,7 @@ public class ExampleMod : Mod {
|
||||||
if (o is Person person) {
|
if (o is Person person) {
|
||||||
// changing the walk speed to be doubled if a person is wearing our dark shirt
|
// changing the walk speed to be doubled if a person is wearing our dark shirt
|
||||||
person.OnGetWalkSpeed += (ref float s) => {
|
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;
|
s *= 2;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="TinyLifeApi" Version="0.18.1" />
|
<PackageReference Include="TinyLifeApi" Version="0.19.0" />
|
||||||
|
|
||||||
<PackageReference Include="ExtremelySimpleLogger" Version="1.2.4" />
|
<PackageReference Include="ExtremelySimpleLogger" Version="1.2.4" />
|
||||||
<PackageReference Include="MLEM.Data" Version="5.2.0-290" />
|
<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
|
rem run the game
|
||||||
set /p dir=<"%LOCALAPPDATA%/Tiny Life/GameDir"
|
set /p dir=<"%LOCALAPPDATA%/Tiny Life/GameDir"
|
||||||
cd /d %dir%
|
cd /d %dir%
|
||||||
"Tiny Life.exe" -v
|
"Tiny Life.exe" -v --skip-splash
|
Loading…
Reference in a new issue