mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
Fix armor speed examine giving you every single decimal place (#29597)
This commit is contained in:
parent
af78c75d66
commit
250109f0b4
1 changed files with 6 additions and 6 deletions
|
|
@ -111,19 +111,19 @@ public sealed class ClothingSpeedModifierSystem : EntitySystem
|
|||
if (walkModifierPercentage == sprintModifierPercentage)
|
||||
{
|
||||
if (walkModifierPercentage < 0.0f)
|
||||
msg.AddMarkup(Loc.GetString("clothing-speed-increase-equal-examine", ("walkSpeed", MathF.Abs(walkModifierPercentage)), ("runSpeed", MathF.Abs(sprintModifierPercentage))));
|
||||
msg.AddMarkup(Loc.GetString("clothing-speed-increase-equal-examine", ("walkSpeed", (int) MathF.Abs(walkModifierPercentage)), ("runSpeed", (int) MathF.Abs(sprintModifierPercentage))));
|
||||
else
|
||||
msg.AddMarkup(Loc.GetString("clothing-speed-decrease-equal-examine", ("walkSpeed", walkModifierPercentage), ("runSpeed", sprintModifierPercentage)));
|
||||
msg.AddMarkup(Loc.GetString("clothing-speed-decrease-equal-examine", ("walkSpeed", (int) walkModifierPercentage), ("runSpeed", (int) sprintModifierPercentage)));
|
||||
}
|
||||
else
|
||||
{
|
||||
if (sprintModifierPercentage < 0.0f)
|
||||
{
|
||||
msg.AddMarkup(Loc.GetString("clothing-speed-increase-run-examine", ("runSpeed", MathF.Abs(sprintModifierPercentage))));
|
||||
msg.AddMarkup(Loc.GetString("clothing-speed-increase-run-examine", ("runSpeed", (int) MathF.Abs(sprintModifierPercentage))));
|
||||
}
|
||||
else if (sprintModifierPercentage > 0.0f)
|
||||
{
|
||||
msg.AddMarkup(Loc.GetString("clothing-speed-decrease-run-examine", ("runSpeed", sprintModifierPercentage)));
|
||||
msg.AddMarkup(Loc.GetString("clothing-speed-decrease-run-examine", ("runSpeed", (int) sprintModifierPercentage)));
|
||||
}
|
||||
if (walkModifierPercentage != 0.0f && sprintModifierPercentage != 0.0f)
|
||||
{
|
||||
|
|
@ -131,11 +131,11 @@ public sealed class ClothingSpeedModifierSystem : EntitySystem
|
|||
}
|
||||
if (walkModifierPercentage < 0.0f)
|
||||
{
|
||||
msg.AddMarkup(Loc.GetString("clothing-speed-increase-walk-examine", ("walkSpeed", MathF.Abs(walkModifierPercentage))));
|
||||
msg.AddMarkup(Loc.GetString("clothing-speed-increase-walk-examine", ("walkSpeed", (int) MathF.Abs(walkModifierPercentage))));
|
||||
}
|
||||
else if (walkModifierPercentage > 0.0f)
|
||||
{
|
||||
msg.AddMarkup(Loc.GetString("clothing-speed-decrease-walk-examine", ("walkSpeed", walkModifierPercentage)));
|
||||
msg.AddMarkup(Loc.GetString("clothing-speed-decrease-walk-examine", ("walkSpeed", (int) walkModifierPercentage)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue