mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
Adds a DNR button at the button of the ghost screen (#91807)
This commit is contained in:
@@ -193,11 +193,12 @@
|
||||
#define ui_ghost_spawners_menu "SOUTH:6,CENTER-3:24"
|
||||
#define ui_ghost_orbit "SOUTH:6,CENTER-2:24"
|
||||
#define ui_ghost_reenter_corpse "SOUTH:6,CENTER-1:24"
|
||||
#define ui_ghost_teleport "SOUTH:6,CENTER:24"
|
||||
#define ui_ghost_settings "SOUTH: 6, CENTER+1:24"
|
||||
#define ui_ghost_minigames "SOUTH: 6, CENTER+2:24"
|
||||
#define ui_ghost_language_menu "SOUTH: 6, CENTER+3:22"
|
||||
#define ui_ghost_floor_changer "SOUTH: 6, CENTER+3:7"
|
||||
#define ui_dnr "SOUTH:6,CENTER:24"
|
||||
#define ui_ghost_teleport "SOUTH:6,CENTER+1:24"
|
||||
#define ui_ghost_settings "SOUTH: 6, CENTER+2:24"
|
||||
#define ui_ghost_minigames "SOUTH: 6, CENTER+3:24"
|
||||
#define ui_ghost_language_menu "SOUTH: 6, CENTER+4:22"
|
||||
#define ui_ghost_floor_changer "SOUTH: 6, CENTER+4:7"
|
||||
|
||||
//Blobbernauts
|
||||
#define ui_blobbernaut_overmind_health "EAST-1:28,CENTER+0:19"
|
||||
|
||||
@@ -29,6 +29,14 @@
|
||||
var/mob/dead/observer/G = usr
|
||||
G.reenter_corpse()
|
||||
|
||||
/atom/movable/screen/ghost/dnr
|
||||
name = "Do Not Resuscitate"
|
||||
icon_state = "dnr"
|
||||
|
||||
/atom/movable/screen/ghost/dnr/Click()
|
||||
var/mob/dead/observer/dnring = usr
|
||||
dnring.do_not_resuscitate()
|
||||
|
||||
/atom/movable/screen/ghost/teleport
|
||||
name = "Teleport"
|
||||
icon_state = "teleport"
|
||||
@@ -72,6 +80,10 @@
|
||||
using.screen_loc = ui_ghost_reenter_corpse
|
||||
static_inventory += using
|
||||
|
||||
using = new /atom/movable/screen/ghost/dnr(null, src)
|
||||
using.screen_loc = ui_dnr
|
||||
static_inventory += using
|
||||
|
||||
using = new /atom/movable/screen/ghost/teleport(null, src)
|
||||
using.screen_loc = ui_ghost_teleport
|
||||
static_inventory += using
|
||||
|
||||
@@ -36,7 +36,8 @@ GLOBAL_LIST_EMPTY(dead_players_during_shift)
|
||||
<b>Brain damage</b>: [src.get_organ_loss(ORGAN_SLOT_BRAIN) || "0"]<br>\
|
||||
<b>[get_bloodtype()?.get_blood_name() || "Blood"] volume</b>: [src.blood_volume]cl ([round((src.blood_volume / BLOOD_VOLUME_NORMAL) * 100, 0.1)]%)<br>\
|
||||
<b>Reagents</b>:<br>[reagents_readout()]", INVESTIGATE_DEATHS)
|
||||
to_chat(src, span_warning("You have died. Barring complete bodyloss, you can in most cases be revived by other players. If you do not wish to be brought back, use the \"Do Not Resuscitate\" verb in the ghost tab."))
|
||||
to_chat(src, span_warning("You have died. Barring complete bodyloss, you can in most cases be revived by other players. \
|
||||
If you do not wish to be brought back, use the \"Do Not Resuscitate\" button at the bottom of your screen."))
|
||||
|
||||
/mob/living/carbon/human/proc/reagents_readout()
|
||||
var/readout = "[get_bloodtype()?.get_blood_name() || "Blood"]stream:"
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 29 KiB |
Reference in New Issue
Block a user