fix: Renames WeightOverloading to StaminaSystem (#1495)

This commit is contained in:
Kamron Batman 2023-09-06 18:58:45 -07:00 • committed by GitHub
parent 6820efe0ca
commit 319d82fec9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 143 additions and 144 deletions

View file

@ -1569,7 +1569,7 @@ namespace Server.Mobiles
Confidence.StopRegenerating(this);
WeightOverloading.FatigueOnDamage(this, amount);
StaminaSystem.FatigueOnDamage(this, amount);
var speechType = SpeechType;

View file

@ -1613,7 +1613,7 @@ namespace Server.Mobiles
{
if (AccessLevel < AccessLevel.GameMaster && item.IsChildOf(Backpack))
{
var maxWeight = WeightOverloading.GetMaxWeight(this);
var maxWeight = StaminaSystem.GetMaxWeight(this);
var curWeight = BodyWeight + TotalWeight;
if (curWeight > maxWeight)
@ -2339,7 +2339,7 @@ namespace Server.Mobiles
Confidence.StopRegenerating(this);
WeightOverloading.FatigueOnDamage(this, amount);
StaminaSystem.FatigueOnDamage(this, amount);
ReceivedHonorContext?.OnTargetDamaged(from, amount);
SentHonorContext?.OnSourceDamaged(from, amount);