Skip to content

Commit

Permalink
Less hardcoded health values
Browse files Browse the repository at this point in the history
  • Loading branch information
Drulikar committed Apr 6, 2024
1 parent 27933ba commit 7acae23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/game/machinery/cryo.dm
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@
display_message("Patient's external wounds are healed.")
go_out(TRUE)
return
if(occupant.health >= 100)
if(occupant.health >= occupant.maxHealth)
display_message("Patient's external wounds are healed.")
go_out(TRUE)
return
Expand Down Expand Up @@ -311,7 +311,7 @@
if(do_after(usr, 2 SECONDS, INTERRUPT_NO_NEEDHAND, BUSY_ICON_GENERIC))
visible_message(SPAN_NOTICE("[usr] moves [usr == cur_mob ? "" : "[cur_mob] "]inside the cryo cell."))
cur_mob.forceMove(src)
if(cur_mob.health >= -100 && (cur_mob.health <= 0 || cur_mob.sleeping))
if(cur_mob.health >= HEALTH_THRESHOLD_DEAD && (cur_mob.health <= 0 || cur_mob.sleeping))
to_chat(cur_mob, SPAN_NOTICE("You feel cold liquid surround you. Your skin starts to freeze up."))
occupant = cur_mob
occupant_death_stage = DEATH_STAGE_NONE
Expand Down

0 comments on commit 7acae23

Please sign in to comment.