public override void BegunWorldOff(HonorBoundLogic logic) { if (Main.netMode != 2) { var staDefault = new StaminaConfig(); StaminaAPI.AddStamina(Main.LocalPlayer, (staDefault.InitialStamina * 2) - StaminaAPI.GetStamina(Main.LocalPlayer)); } }
public override void BegunWorldOn(HonorBoundLogic logic) { if (Main.netMode != 2) { var staConfig = ModContent.GetInstance <StaminaConfig>(); var staDefault = new StaminaConfig(); StaminaAPI.AddStamina(Main.LocalPlayer, staDefault.InitialStamina - StaminaAPI.GetStamina(Main.LocalPlayer)); } }