public override void LoadOff(HonorBoundLogic logic) { var staConfig = ModContent.GetInstance <StaminaConfig>(); var staDefault = new StaminaConfig(); staConfig.ItemUseRate = 0; staConfig.InitialStamina = staDefault.InitialStamina * 2; }
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 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) + ")." }; }
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)); } }