From c43e0302ef6272ab23f7c972f84a124e3120796c Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 21 Feb 2023 19:44:25 -0500 Subject: [PATCH] Fixes modify commands. --- Source/Game/Chat/Commands/ModifyCommands.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/Game/Chat/Commands/ModifyCommands.cs b/Source/Game/Chat/Commands/ModifyCommands.cs index 2e9c4cbc4..46cc68f9b 100644 --- a/Source/Game/Chat/Commands/ModifyCommands.cs +++ b/Source/Game/Chat/Commands/ModifyCommands.cs @@ -18,7 +18,7 @@ namespace Game.Chat static bool HandleModifyHPCommand(CommandHandler handler, int hp) { Player target = handler.GetSelectedPlayerOrSelf(); - int maxHp = 1; + int maxHp = hp; if (CheckModifyResources(handler, target, ref hp, ref maxHp)) { NotifyModification(handler, target, CypherStrings.YouChangeHp, CypherStrings.YoursHpChanged, hp, maxHp); @@ -33,7 +33,7 @@ namespace Game.Chat static bool HandleModifyManaCommand(CommandHandler handler, int mana) { Player target = handler.GetSelectedPlayerOrSelf(); - int maxMana = 1; + int maxMana = mana; if (CheckModifyResources(handler, target, ref mana, ref maxMana)) { NotifyModification(handler, target, CypherStrings.YouChangeMana, CypherStrings.YoursManaChanged, mana, maxMana); @@ -50,7 +50,7 @@ namespace Game.Chat { Player target = handler.GetSelectedPlayerOrSelf(); byte energyMultiplier = 10; - int maxEnergy = 1; + int maxEnergy = energy; if (CheckModifyResources(handler, target, ref energy, ref maxEnergy, energyMultiplier)) { NotifyModification(handler, target, CypherStrings.YouChangeEnergy, CypherStrings.YoursEnergyChanged, energy / energyMultiplier, maxEnergy / energyMultiplier); @@ -66,7 +66,7 @@ namespace Game.Chat { Player target = handler.GetSelectedPlayerOrSelf(); byte rageMultiplier = 10; - int maxRage = 1; + int maxRage = rage; if (CheckModifyResources(handler, target, ref rage, ref maxRage, rageMultiplier)) { NotifyModification(handler, target, CypherStrings.YouChangeRage, CypherStrings.YoursRageChanged, rage / rageMultiplier, maxRage / rageMultiplier); @@ -82,7 +82,7 @@ namespace Game.Chat { Player target = handler.GetSelectedPlayerOrSelf(); byte runeMultiplier = 10; - int maxRune = 1; + int maxRune = rune; if (CheckModifyResources(handler, target, ref rune, ref maxRune, runeMultiplier)) { NotifyModification(handler, target, CypherStrings.YouChangeRunicPower, CypherStrings.YoursRunicPowerChanged, rune / runeMultiplier, maxRune / runeMultiplier);