Merge pull request #156 from Bone-White/master

Cult HUD & Air Alarms
This commit is contained in:
Fox-McCloud
2015-01-11 15:03:53 -05:00
2 changed files with 18 additions and 1 deletions
+17 -1
View File
@@ -287,6 +287,11 @@
)
/obj/machinery/alarm/proc/master_is_operating()
if (! alarm_area)
alarm_area = areaMaster
return alarm_area.master_air_alarm && !(alarm_area.master_air_alarm.stat & (NOPOWER|BROKEN))
@@ -892,6 +897,15 @@
update_icon()
return
if(istype(W, /obj/item/weapon/wirecutters)) // cutting the wires out
if (wires.wires_status == 31) // all wires cut
var/obj/item/stack/cable_coil/new_coil = new /obj/item/stack/cable_coil()
new_coil.amount = 5
new_coil.loc = user.loc
buildstage = 1
update_icon()
return
if (wiresexposed && ((istype(W, /obj/item/device/multitool) || istype(W, /obj/item/weapon/wirecutters))))
return attack_hand(user)
@@ -906,6 +920,8 @@
updateUsrDialog()
else
user << "\red Access denied."
return
if(1)
@@ -1475,4 +1491,4 @@ Code shamelessly copied from apc_frame
else
usr << browse(null, "window=partyalarm")
return
return
return
@@ -646,6 +646,7 @@ datum
if((M.mind in ticker.mode.cult) && prob(10))
M << "\blue A cooling sensation from inside you brings you an untold calmness."
ticker.mode.remove_cultist(M.mind)
ticker.mode.remove_all_cult_icons_from_client(M.client) // fixes the deconverted's own client not removing their mob's cult icon
for(var/mob/O in viewers(M, null))
O.show_message(text("\blue []'s eyes blink and become clearer.", M), 1) // So observers know it worked.
// Vamps react to this like acid