Skip to content

Commit

Permalink
harvesting cooldown correctly displays minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
Spookerton committed Jan 17, 2024
1 parent d7e8246 commit 318113a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/modules/mob/living/simple_mob/harvesting.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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).")
Expand Down

0 comments on commit 318113a

Please sign in to comment.