mirror of
https://github.com/Ellpeck/TinyLifeExampleMod.git
synced 2024-11-01 03:40:51 +01:00
stop using obsolete WornClothes
This commit is contained in:
parent
fe3a119a8b
commit
24ae30c839
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ namespace ExampleMod {
|
||||||
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.WornClothes.TryGetValue(ClothesLayer.Shirt, out var shirt) && shirt.Type == darkShirt)
|
if (person.CurrentOutfit.TryGetValue(ClothesLayer.Shirt, out var shirt) && shirt.Type == darkShirt)
|
||||||
s *= 2;
|
s *= 2;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue