Pain Drain (#10685)

Added a paralysis indicator to the HUD.
    Being paralyzed will no longer make you asleep, instead, you will be awake with a crit overlay, and you will only be able to whisper.
    Pain doesn't slow you down as much anymore. It's still pretty substantial, though.
    You now lose pain damage much faster.
    A message now plays if you drop your items because of how much pain damage you have.
This commit is contained in:
Geeves
2021-01-01 14:13:03 +02:00
committed by GitHub
parent 2dcbf7a4cc
commit bf2ac7562d
9 changed files with 47 additions and 7 deletions

View File

@@ -78,6 +78,7 @@
#define ui_fire "EAST-1:28,NORTH-3:25"
#define ui_oxygen "EAST-1:28,NORTH-4:23"
#define ui_pressure "EAST-1:28,NORTH-5:21"
#define ui_paralysis "EAST-1:28,NORTH-10:23"
#define ui_alien_toxin "EAST-1:28,NORTH-2:25"
#define ui_alien_fire "EAST-1:28,NORTH-3:25"

View File

@@ -270,6 +270,13 @@
mymob.fire.screen_loc = ui_fire
hud_elements |= mymob.fire
mymob.paralysis_indicator = new /obj/screen/paralysis()
mymob.paralysis_indicator.icon = 'icons/mob/status_indicators.dmi'
mymob.paralysis_indicator.icon_state = "paralysis0"
mymob.paralysis_indicator.name = "paralysis"
mymob.paralysis_indicator.screen_loc = ui_paralysis
hud_elements |= mymob.paralysis_indicator
mymob.healths = new /obj/screen()
mymob.healths.icon = ui_style
mymob.healths.icon_state = "health0"
@@ -484,4 +491,11 @@
if(icon_state == "oxy0")
to_chat(usr, SPAN_NOTICE("You are breathing easy."))
else
to_chat(usr, SPAN_DANGER("You cannot breathe!"))
to_chat(usr, SPAN_DANGER("You cannot breathe!"))
/obj/screen/paralysis/Click(var/location, var/control, var/params)
if(istype(usr) && usr.paralysis_indicator == src)
if(usr.paralysis)
to_chat(usr, SPAN_WARNING("You are completely paralyzed and cannot move!"))
else
to_chat(usr, SPAN_NOTICE("You are walking around completely fine."))