Merge pull request #33586 from Xhuis/power_alerts
Disables clockcult power alerts to ghosts when it's not clockcult
This commit is contained in:
@@ -10,12 +10,15 @@
|
|||||||
for(var/obj/effect/clockwork/sigil/transmission/T in GLOB.all_clockwork_objects)
|
for(var/obj/effect/clockwork/sigil/transmission/T in GLOB.all_clockwork_objects)
|
||||||
T.update_icon()
|
T.update_icon()
|
||||||
var/power_overwhelming = GLOB.clockwork_power
|
var/power_overwhelming = GLOB.clockwork_power
|
||||||
|
var/unlock_message
|
||||||
if(power_overwhelming >= SCRIPT_UNLOCK_THRESHOLD && !GLOB.script_scripture_unlocked)
|
if(power_overwhelming >= SCRIPT_UNLOCK_THRESHOLD && !GLOB.script_scripture_unlocked)
|
||||||
GLOB.script_scripture_unlocked = TRUE
|
GLOB.script_scripture_unlocked = TRUE
|
||||||
hierophant_message("<span class='large_brass bold'>The Ark swells as a key power threshold is reached. Script scriptures are now available.</span>")
|
unlock_message = "<span class='large_brass bold'>The Ark swells as a key power threshold is reached. Script scriptures are now available.</span>"
|
||||||
if(power_overwhelming >= APPLICATION_UNLOCK_THRESHOLD && !GLOB.application_scripture_unlocked)
|
if(power_overwhelming >= APPLICATION_UNLOCK_THRESHOLD && !GLOB.application_scripture_unlocked)
|
||||||
GLOB.application_scripture_unlocked = TRUE
|
GLOB.application_scripture_unlocked = TRUE
|
||||||
hierophant_message("<span class='large_brass bold'>The Ark surges as a key power threshold is reached. Application scriptures are now available.</span>")
|
unlock_message = "<span class='large_brass bold'>The Ark surges as a key power threshold is reached. Application scriptures are now available.</span>"
|
||||||
|
if(GLOB.servants_active)
|
||||||
|
hierophant_message(unlock_message)
|
||||||
return TRUE
|
return TRUE
|
||||||
|
|
||||||
/proc/can_access_clockwork_power(atom/movable/access_point, amount) //Returns true if the access point has access to clockwork power (and optionally, a number of watts for it)
|
/proc/can_access_clockwork_power(atom/movable/access_point, amount) //Returns true if the access point has access to clockwork power (and optionally, a number of watts for it)
|
||||||
|
|||||||
@@ -11,6 +11,8 @@
|
|||||||
|
|
||||||
//reports to servants when scripture is locked or unlocked
|
//reports to servants when scripture is locked or unlocked
|
||||||
/proc/scripture_unlock_alert(list/previous_states)
|
/proc/scripture_unlock_alert(list/previous_states)
|
||||||
|
if(!GLOB.servants_active)
|
||||||
|
return
|
||||||
. = scripture_unlock_check()
|
. = scripture_unlock_check()
|
||||||
for(var/i in .)
|
for(var/i in .)
|
||||||
if(.[i] != previous_states[i])
|
if(.[i] != previous_states[i])
|
||||||
|
|||||||
Reference in New Issue
Block a user