This commit is contained in:
Ell 2021-11-26 23:42:21 +01:00
parent 3fd79cb9d8
commit f293c56d72
2 changed files with 5 additions and 5 deletions

View file

@ -5,7 +5,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="TinyLifeApi" Version="0.18.0" />
<PackageReference Include="TinyLifeApi" Version="0.18.1" />
<PackageReference Include="ExtremelySimpleLogger" Version="1.2.4" />
<PackageReference Include="MLEM.Data" Version="5.2.0-290" />

View file

@ -25,16 +25,16 @@ namespace ExampleMod {
// but we don't need to do anything here for our action
}
protected override void AndThenUpdate(GameTime time, TimeSpan passedInGame, GameSpeed speed) {
base.AndThenUpdate(time, passedInGame, speed);
protected override void AndThenUpdate(GameTime time, TimeSpan passedInGame, float speedMultiplier) {
base.AndThenUpdate(time, passedInGame, speedMultiplier);
// this method gets called every update frame while the action is active
// set our person to look like they're sitting on the ground
this.Person.CurrentPose = Person.Pose.SittingGround;
// restore need and lower emotions
this.Person.RestoreNeed(NeedType.Energy, 0.5F, speed);
this.Person.LowerEmotion(EmotionType.Uncomfortable, 0.0001F, speed);
this.Person.RestoreNeed(NeedType.Energy, 0.5F, speedMultiplier);
this.Person.LowerEmotion(EmotionType.Uncomfortable, 0.0001F, speedMultiplier);
}
protected override CompletionType AndThenIsCompleted() {