Skip to content

Commit

Permalink
fix: Fixes variable name in stamina system (#1501)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamronbatman authored Sep 17, 2023
1 parent 0f2870e commit 856db6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Projects/UOContent/Misc/StaminaSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static class StaminaSystem
public static int BaseOverweightLoss { get; set; }
public static double AdditionalLossWhenBelow { get; set; }
public static bool EnableMountStamina { get; set; }
public static bool UseMountStaminaWhenOverweight { get; set; }
public static bool UseMountStaminaOnlyWhenOverloaded { get; set; }

public static void Configure()
{
Expand All @@ -43,7 +43,7 @@ public static void Configure()
BaseOverweightLoss = ServerConfiguration.GetOrUpdateSetting("stamina.baseOverweightLoss", 5);
AdditionalLossWhenBelow = ServerConfiguration.GetOrUpdateSetting("stamina.additionalLossWhenBelow", 0.10);
EnableMountStamina = ServerConfiguration.GetOrUpdateSetting("stamina.enableMountStamina", true);
UseMountStaminaWhenOverweight = ServerConfiguration.GetSetting("stamina.useStamina", Core.SA);
UseMountStaminaOnlyWhenOverloaded = ServerConfiguration.GetSetting("stamina.useMountStaminaOnlyWhenOverloaded", Core.SA);

GenericPersistence.Register("StaminaSystem", Serialize, Deserialize);
}
Expand Down Expand Up @@ -397,7 +397,7 @@ private static void ProcessMountMovement(IMount mount, int overweight, MovementE
if (stepsTaken.Steps <= maxSteps)
{
// Pre-SA mounts would lose stamina while running even when they were not overweight
if (running && !UseMountStaminaWhenOverweight)
if (running && !UseMountStaminaOnlyWhenOverloaded)
{
stamLoss++;
}
Expand Down

0 comments on commit 856db6a

Please sign in to comment.