From 318113a317ae3f352b1509d5adf5dc8f68218935 Mon Sep 17 00:00:00 2001 From: Spookerton Date: Mon, 1 Jan 2024 19:00:50 +0000 Subject: [PATCH] harvesting cooldown correctly displays minutes --- code/modules/mob/living/simple_mob/harvesting.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/simple_mob/harvesting.dm b/code/modules/mob/living/simple_mob/harvesting.dm index dc7f2d5558..c6884a168c 100644 --- a/code/modules/mob/living/simple_mob/harvesting.dm +++ b/code/modules/mob/living/simple_mob/harvesting.dm @@ -29,7 +29,8 @@ return if(harvest_tool) - . += SPAN_NOTICE("\The [src] can be [harvest_verb] with a [initial(harvest_tool.name)] every [round(harvest_cooldown, 0.1)] minutes.") + var/cooldown_display = round(harvest_cooldown / (1 MINUTE), 0.1) + . += SPAN_NOTICE("\The [src] can be [harvest_verb] with a [initial(harvest_tool.name)] every [cooldown_display] minutes.") var/time_to_harvest = (harvest_recent + harvest_cooldown) - world.time if(time_to_harvest > 0) . += SPAN_NOTICE("It can be [harvest_verb] in [time_to_harvest / (1 MINUTE)] second(s).")