예제 #1
0
        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));
            }
        }
예제 #2
0
        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));
            }
        }