Skip to content

Commit

Permalink
V2.5.3
Browse files Browse the repository at this point in the history
-Fix Hunger event not working in certain situations
  • Loading branch information
Gamer025 committed Jul 17, 2024
1 parent 5fe6965 commit 5782c73
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
7 changes: 1 addition & 6 deletions Events/Hunger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,7 @@ public override void StartupTrigger()
public override void RecurringTrigger()
{
if ((EventHelpers.MainPlayer.realizedCreature as Player).FoodInStomach == 0) return;
(EventHelpers.MainPlayer.realizedCreature as Player).AddFood(-1);
foreach (RoomCamera camera in game.cameras)
{
camera.hud.foodMeter.circles[(EventHelpers.MainPlayer.realizedCreature as Player).FoodInStomach].EatFade();
camera.hud.foodMeter.showCount--;
}
(EventHelpers.MainPlayer.realizedCreature as Player).SubtractFood(1);
}
}
}
2 changes: 1 addition & 1 deletion RainWorldCE.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

namespace RainWorldCE;

[BepInPlugin(MOD_ID, "Rain World Chaos Edition", "2.5.2")]
[BepInPlugin(MOD_ID, "Rain World Chaos Edition", "2.5.3")]
public class RainWorldCE : BaseUnityPlugin
{
public const string MOD_ID = "Gamer025.RainworldCE";
Expand Down
2 changes: 1 addition & 1 deletion RainWorldCE.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<LangVersion>latest</LangVersion>
<EnableNETAnalyzers>True</EnableNETAnalyzers>
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
<Version>2.5.2</Version>
<Version>2.5.3</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down
2 changes: 1 addition & 1 deletion modinfo.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "Gamer025.RainworldCE",
"name": "Rain World: Chaos Edition",
"version": "2.5.2",
"version": "2.5.3",
"target_game_version": "v1.9.15",
"authors": "Gamer025",
"description": "Ever felt like Rain World didn't have enough randomness/chaos? Rain World: Chaos edition is here to help. With over 40 events and the ability to highly customize their generation no cycle will ever be the same.",
Expand Down

0 comments on commit 5782c73

Please sign in to comment.