Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Time Since Death' hour wrapping fix #5374

Merged
merged 3 commits into from
Jan 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion code/modules/mob/dead/observer/observer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1235,7 +1235,10 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
. += ""

if(timeofdeath)
. += "Time Since Death: [duration2text_sec(world.time - timeofdeath)]"
var/time_since_death = world.time - timeofdeath
var/format = (time_since_death >= 1 HOURS ? "hh:mm:ss" : "mm:ss")

. += "Time Since Death: [time2text(time_since_death, format)]"


/proc/message_ghosts(message)
Expand Down