]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Removes the "You require 0 minutes of playtime" message from the game (#21767)
authorBrandon Hu <103440971+Brandon-Huu@users.noreply.github.com>
Sun, 19 Nov 2023 04:52:55 +0000 (04:52 +0000)
committerGitHub <noreply@github.com>
Sun, 19 Nov 2023 04:52:55 +0000 (23:52 -0500)
* zero minutes of playtime (shocked_pikachu)

* Max -> Ceiling

Content.Shared/Roles/JobRequirements.cs

index fc3b759a9c20f33aa011dfdd1a4c46a13648287f..b1d5f43ede328cfac89b5c5b7f2df2b5f41c59d3 100644 (file)
@@ -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;