Salvage magnet accuracy fix (#10124)

This commit is contained in:
Jackson 2022-07-28 23:05:01 -05:00 committed by GitHub
parent 750b009df3
commit 5084665643
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -133,7 +133,7 @@ namespace Content.Server.Salvage
if (_salvageGridStates.TryGetValue(magnetTranform.GridID, out var salvageGridState))
{
var remainingTime = component.MagnetState.Until - salvageGridState.CurrentTime;
args.PushMarkup(Loc.GetString("salvage-system-magnet-examined-active", ("timeLeft", remainingTime.TotalSeconds)));
args.PushMarkup(Loc.GetString("salvage-system-magnet-examined-active", ("timeLeft", Math.Ceiling(remainingTime.TotalSeconds))));
}
else
{

View File

@ -13,6 +13,9 @@ salvage-system-report-activate-success = The salvage magnet is pulling in a piec
salvage-system-magnet-examined-inactive = The salvage magnet is inactive.
salvage-system-magnet-examined-pulling-in = The salvage magnet is attempting to pull in salvage.
salvage-system-magnet-examined-active = The salvage magnet is holding salvage in place. Can hold for {$timeLeft} seconds.
salvage-system-magnet-examined-active = The salvage magnet is holding salvage in place. Can hold for { $timeLeft ->
[1] one second.
*[other] { $timeLeft } seconds.
}
salvage-system-magnet-examined-releasing = The salvage magnet is releasing the salvage.
salvage-system-magnet-examined-cooling-down = The salvage magnet is cooling down.