From: Brandon Hu <103440971+Brandon-Huu@users.noreply.github.com> Date: Sun, 19 Nov 2023 04:52:55 +0000 (+0000) Subject: Removes the "You require 0 minutes of playtime" message from the game (#21767) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=a0cd6bb15c8bd280ee28950a96a0dac5c5764eb4;p=space-station-14.git Removes the "You require 0 minutes of playtime" message from the game (#21767) * zero minutes of playtime (shocked_pikachu) * Max -> Ceiling --- diff --git a/Content.Shared/Roles/JobRequirements.cs b/Content.Shared/Roles/JobRequirements.cs index fc3b759a9c..b1d5f43ede 100644 --- a/Content.Shared/Roles/JobRequirements.cs +++ b/Content.Shared/Roles/JobRequirements.cs @@ -132,7 +132,7 @@ namespace Content.Shared.Roles reason = FormattedMessage.FromMarkup(Loc.GetString( "role-timer-department-insufficient", - ("time", deptDiff), + ("time", Math.Ceiling(deptDiff)), ("department", Loc.GetString(deptRequirement.Department)), ("departmentColor", department.Color.ToHex()))); return false; @@ -161,7 +161,9 @@ namespace Content.Shared.Roles if (overallDiff <= 0 || overallTime >= overallRequirement.Time) return true; - reason = FormattedMessage.FromMarkup(Loc.GetString("role-timer-overall-insufficient", ("time", overallDiff))); + reason = FormattedMessage.FromMarkup(Loc.GetString( + "role-timer-overall-insufficient", + ("time", Math.Ceiling(overallDiff)))); return false; } else @@ -197,7 +199,7 @@ namespace Content.Shared.Roles reason = FormattedMessage.FromMarkup(Loc.GetString( "role-timer-role-insufficient", - ("time", roleDiff), + ("time", Math.Ceiling(roleDiff)), ("job", Loc.GetString(proto)), ("departmentColor", departmentColor.ToHex()))); return false;