mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 21:19:00 +01:00
permit ahud and no respawnability ghosts in ghost bar (#29632)
This commit is contained in:
@@ -52,6 +52,10 @@
|
||||
var/death_cooldown = 0
|
||||
/// If antagbanned people are prevented from using it, only false for the ghost bar spawner.
|
||||
var/restrict_antagban = TRUE
|
||||
/// If people without respawnability are prevented from using it.
|
||||
var/restrict_respawnability = TRUE
|
||||
/// If late-observers with ahud are prevented from using it.
|
||||
var/restrict_ahud = TRUE
|
||||
|
||||
/obj/effect/mob_spawn/attack_ghost(mob/user)
|
||||
if(!valid_to_spawn(user))
|
||||
@@ -107,12 +111,12 @@
|
||||
if((jobban_isbanned(user, ban_type) || (restrict_antagban && jobban_isbanned(user, ROLE_SYNDICATE))))
|
||||
to_chat(user, "<span class='warning'>You are jobanned!</span>")
|
||||
return FALSE
|
||||
if(!HAS_TRAIT(user, TRAIT_RESPAWNABLE))
|
||||
if(!HAS_TRAIT(user, TRAIT_RESPAWNABLE) && restrict_respawnability)
|
||||
to_chat(user, "<span class='warning'>You currently do not have respawnability!</span>")
|
||||
return FALSE
|
||||
if(isobserver(user))
|
||||
var/mob/dead/observer/O = user
|
||||
if(!O.check_ahud_rejoin_eligibility())
|
||||
if(!O.check_ahud_rejoin_eligibility() && restrict_ahud)
|
||||
to_chat(user, "<span class='warning'>Upon using the antagHUD you forfeited the ability to join the round.</span>")
|
||||
return FALSE
|
||||
if(time_check(user))
|
||||
|
||||
Reference in New Issue
Block a user