mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
Merge branch 'master' of https://github.com/tgstation/tgstation into pulls-tg-to-fix-shit
This commit is contained in:
@@ -7,9 +7,12 @@
|
||||
ghost_others = client.prefs.read_preference(/datum/preference/choiced/ghost_others)
|
||||
var/preferred_form = null
|
||||
|
||||
<<<<<<< HEAD
|
||||
if(isAdminGhostAI(src))
|
||||
has_unlimited_silicon_privilege = TRUE
|
||||
|
||||
=======
|
||||
>>>>>>> 4b4ae0958fe6b5d511ee6e24a5087599f61d70a3
|
||||
if(client.prefs.unlock_content)
|
||||
preferred_form = client.prefs.read_preference(/datum/preference/choiced/ghost_form)
|
||||
ghost_orbit = client.prefs.read_preference(/datum/preference/choiced/ghost_orbit)
|
||||
|
||||
@@ -38,7 +38,11 @@
|
||||
"desc" = GLOB.poll_ignore_desc[key]
|
||||
))
|
||||
|
||||
<<<<<<< HEAD
|
||||
/datum/notificationpanel/ui_act(action, params)
|
||||
=======
|
||||
/datum/notificationpanel/ui_act(action, list/params, datum/tgui/ui, datum/ui_state/state)
|
||||
>>>>>>> 4b4ae0958fe6b5d511ee6e24a5087599f61d70a3
|
||||
. = ..()
|
||||
if(.)
|
||||
return
|
||||
|
||||
@@ -317,12 +317,16 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
|
||||
if(!HAS_TRAIT(src, TRAIT_CORPSELOCKED)) //corpse-locked have to confirm with the alert below
|
||||
ghostize(TRUE)
|
||||
return TRUE
|
||||
<<<<<<< HEAD
|
||||
// SKYRAT EDIT ADDITION -- Free Ghost Cafe Ghosting
|
||||
if(HAS_TRAIT(src, TRAIT_FREE_GHOST))
|
||||
ghostize(TRUE) // Can return with TRUE
|
||||
return TRUE
|
||||
// SKYRAT EDIT ADDITION END
|
||||
var/response = tgui_alert(usr, "Are you sure you want to ghost? If you ghost whilst still alive you cannot re-enter your body!", "Confirm Ghost Observe", list("Ghost", "Stay in Body"))
|
||||
=======
|
||||
var/response = tgui_alert(usr, "Are you sure you want to ghost? You won't be able to re-enter your body!", "Confirm Ghost Observe", list("Ghost", "Stay in Body"))
|
||||
>>>>>>> 4b4ae0958fe6b5d511ee6e24a5087599f61d70a3
|
||||
if(response != "Ghost")
|
||||
return FALSE//didn't want to ghost after-all
|
||||
ghostize(FALSE) // FALSE parameter is so we can never re-enter our body. U ded.
|
||||
@@ -381,7 +385,11 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
|
||||
if(!mind || QDELETED(mind.current))
|
||||
to_chat(src, span_warning("You have no body."))
|
||||
return
|
||||
<<<<<<< HEAD
|
||||
if(!can_reenter_corpse && !mind.has_antag_datum(/datum/antagonist/changeling)) //SKYRAT EDIT
|
||||
=======
|
||||
if(!can_reenter_corpse)
|
||||
>>>>>>> 4b4ae0958fe6b5d511ee6e24a5087599f61d70a3
|
||||
to_chat(src, span_warning("You cannot re-enter your body."))
|
||||
return
|
||||
if(mind.current.key && mind.current.key[1] != "@") //makes sure we don't accidentally kick any clients
|
||||
@@ -414,6 +422,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
|
||||
// Update med huds
|
||||
current_mob.med_hud_set_status()
|
||||
current_mob.log_message("had their player ([key_name(src)]) do-not-resuscitate / DNR", LOG_GAME, color = COLOR_GREEN, log_globally = FALSE)
|
||||
<<<<<<< HEAD
|
||||
//SKYRAT EDIT ADDITION - DNR TRAIT (Technically this is just to fix ghost-DNR'ing not actually DNR'ing, but it pairs with the trait so)
|
||||
if(!current_mob.has_quirk(/datum/quirk/dnr))
|
||||
current_mob.add_quirk(/datum/quirk/dnr)
|
||||
@@ -421,6 +430,8 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
|
||||
if(job_to_free)
|
||||
job_to_free.current_positions = max(0, job_to_free.current_positions - 1)
|
||||
//SKYRAT EDIT ADDITION END - DNR TRAIT
|
||||
=======
|
||||
>>>>>>> 4b4ae0958fe6b5d511ee6e24a5087599f61d70a3
|
||||
log_message("has opted to do-not-resuscitate / DNR from their body ([current_mob])", LOG_GAME, color = COLOR_GREEN)
|
||||
|
||||
// Disassociates observer mind from the body mind
|
||||
@@ -438,10 +449,15 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
|
||||
var/atom/movable/screen/alert/A = throw_alert("[REF(source)]_revival", /atom/movable/screen/alert/revival)
|
||||
if(A)
|
||||
var/ui_style = client?.prefs?.read_preference(/datum/preference/choiced/ui_style)
|
||||
<<<<<<< HEAD
|
||||
var/erp_ui_style = client?.prefs?.read_preference(/datum/preference/choiced/ui_style) //SKYRAT EDIT - ADDITION - ERP ICONS FIX
|
||||
if(ui_style)
|
||||
A.icon = ui_style2icon(ui_style)
|
||||
A.icon = erp_ui_style2icon(erp_ui_style) //SKYRAT EDIT - ADDITION - ERP ICONS FIX
|
||||
=======
|
||||
if(ui_style)
|
||||
A.icon = ui_style2icon(ui_style)
|
||||
>>>>>>> 4b4ae0958fe6b5d511ee6e24a5087599f61d70a3
|
||||
A.desc = message
|
||||
var/old_layer = source.layer
|
||||
var/old_plane = source.plane
|
||||
|
||||
Reference in New Issue
Block a user