示例#1
0
        public override void LoadOff(HonorBoundLogic logic)
        {
            var staConfig  = ModContent.GetInstance <StaminaConfig>();
            var staDefault = new StaminaConfig();

            staConfig.ItemUseRate    = 0;
            staConfig.InitialStamina = staDefault.InitialStamina * 2;
        }
示例#2
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));
            }
        }
示例#3
0
        public DuelistHonorificEntry()
        {
            var staDefault = new StaminaConfig();

            this.Name         = "Duelist";
            this.Descriptions = new string[] {
                "Items use drains stamina.",
                "Only " + staDefault.InitialStamina + " starting stamina (originally " + (staDefault.InitialStamina * 2) + ")."
            };
        }
示例#4
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));
            }
        }