mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
[MIRROR] Ghost Pool Protection Admin Button (#226)
* Ghost Pool Protection Admin Button (#52683) * Ghost Pool Protection * okay * Update tgui.bundle.js * just a bit of feedback * temporarily Co-authored-by: Emmanuel S. <emmanuelssr@gmail.com> * Update GhostPoolProtection.js * Update tgui.bundle.js * my devserver broke * okay done for real * conflict resolution bundle * Rohesies dope review Co-authored-by: Rohesie <rohesie@gmail.com> Co-authored-by: Emmanuel S. <emmanuelssr@gmail.com> Co-authored-by: Rohesie <rohesie@gmail.com> * Ghost Pool Protection Admin Button Co-authored-by: tralezab <40974010+tralezab@users.noreply.github.com> Co-authored-by: Emmanuel S. <emmanuelssr@gmail.com> Co-authored-by: Rohesie <rohesie@gmail.com>
This commit is contained in:
co-authored by
Emmanuel S.
Rohesie
tralezab
parent
f053e12c16
commit
38c75c7573
@@ -216,6 +216,9 @@
|
||||
return
|
||||
|
||||
|
||||
if(!(GLOB.ghost_role_flags & GHOSTROLE_MINIGAME))
|
||||
to_chat(user, "<span class='warning'>CTF has been temporarily disabled by admins.</span>")
|
||||
return
|
||||
people_who_want_to_play |= user.ckey
|
||||
var/num = people_who_want_to_play.len
|
||||
var/remaining = CTF_REQUIRED_PLAYERS - num
|
||||
|
||||
@@ -37,6 +37,9 @@
|
||||
/obj/effect/mob_spawn/attack_ghost(mob/user)
|
||||
if(!SSticker.HasRoundStarted() || !loc || !ghost_usable)
|
||||
return
|
||||
if(!(GLOB.ghost_role_flags & GHOSTROLE_SPAWNER) && !(flags_1 & ADMIN_SPAWNED_1))
|
||||
to_chat(user, "<span class='warning'>An admin has temporarily disabled non-admin ghost roles!</span>")
|
||||
return
|
||||
if(!uses)
|
||||
to_chat(user, "<span class='warning'>This spawner is out of charges!</span>")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user