Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using Microsoft.Xna.Framework;
- using StardewModdingAPI;
- using StardewModdingAPI.Events;
- using StardewModdingAPI.Utilities;
- using StardewValley;
- namespace NeverLoseStamina
- {
- public class ModEntry : Mod
- {
- public override void Entry(IModHelper helper)
- {
- helper.Events.GameLoop.UpdateTicked += this.GE_UT;
- }
- private void GE_UT(object sender, EventArgs e)
- {
- if (!Context.IsWorldReady)
- {
- return;
- }
- if (Game1.player.stamina < Game1.player.maxStamina) {
- Game1.player.stamina = Game1.player.maxStamina;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement