evilfax/bless update

This commit is contained in:
Kyep
2018-11-13 18:16:49 -08:00
parent ad360e8a71
commit 079848cccc
3 changed files with 67 additions and 11 deletions
+10 -1
View File
@@ -2,6 +2,7 @@ var/list/obj/machinery/photocopier/faxmachine/allfaxes = list()
var/list/admin_departments = list("Central Command")
var/list/hidden_admin_departments = list("Syndicate")
var/list/alldepartments = list()
var/global/list/fax_blacklist = list()
/obj/machinery/photocopier/faxmachine
name = "fax machine"
@@ -160,7 +161,9 @@ var/list/alldepartments = list()
if(href_list["auth"])
if(!is_authenticated && scan)
if(check_access(scan))
if(scan.registered_name in fax_blacklist)
playsound(loc, 'sound/machines/buzz-sigh.ogg', 50, 0)
else if(check_access(scan))
authenticated = 1
else if(is_authenticated)
authenticated = 0
@@ -322,3 +325,9 @@ var/list/alldepartments = list()
to_chat(C, msg)
if(C.prefs.sound & SOUND_ADMINHELP)
C << 'sound/effects/adminhelp.ogg'
/obj/machinery/photocopier/faxmachine/proc/become_mimic()
if(scan)
scan.forceMove(get_turf(src))
var/mob/living/simple_animal/hostile/mimic/copy/M = new(loc, src, null, 1) // it will delete src on creation and override any machine checks
M.name = "angry fax machine"
+22 -3
View File
@@ -596,6 +596,7 @@
var/used = 0
var/countdown = 60
var/activate_on_timeout = 0
var/faxmachineid = null
/obj/item/paper/evilfax/show_content(var/mob/user, var/forceshow = 0, var/forcestars = 0, var/infolinks = 0, var/view = 1)
if(user == mytarget)
@@ -642,7 +643,8 @@
/obj/item/paper/evilfax/proc/evilpaper_specialaction(var/mob/living/carbon/target)
spawn(30)
if(istype(target,/mob/living/carbon))
if(istype(target, /mob/living/carbon))
var/obj/machinery/photocopier/faxmachine/fax = locateUID(faxmachineid)
if(myeffect == "Borgification")
to_chat(target,"<span class='userdanger'>You seem to comprehend the AI a little better. Why are your muscles so stiff?</span>")
target.ForceContractDisease(new /datum/disease/transformation/robot(0))
@@ -668,8 +670,25 @@
var/mob/living/carbon/human/H = target
to_chat(H, "<span class='userdanger'>You feel surrounded by sadness. Sadness... and HONKS!</span>")
H.makeCluwne()
else if(myeffect == "Demotion Notice")
event_announcement.Announce("[mytarget] is hereby demoted to the rank of Civilian. Process this demotion immediately. Failure to comply with these orders is grounds for termination.","CC Demotion Order")
else if(myeffect == "Demote")
event_announcement.Announce("[target.real_name] is hereby demoted to the rank of Civilian. Process this demotion immediately. Failure to comply with these orders is grounds for termination.","CC Demotion Order")
else if(myeffect == "Demote with Bot")
event_announcement.Announce("[target.real_name] is hereby demoted to the rank of Civilian. Process this demotion immediately. Failure to comply with these orders is grounds for termination.","CC Demotion Order")
for(var/datum/data/record/R in sortRecord(data_core.security))
if(R.fields["name"] == target.real_name)
R.fields["criminal"] = "*Arrest*"
update_all_mob_security_hud()
if(fax)
var/turf/T = get_turf(fax)
new /obj/effect/portal(T)
new /mob/living/simple_animal/bot/secbot(T)
else if(myeffect == "Revoke Fax Access")
fax_blacklist += target.real_name
if(fax)
fax.authenticated = 0
else if(myeffect == "Angry Fax Machine")
if(fax)
fax.become_mimic()
else
message_admins("Evil paper [src] was activated without a proper effect set! This is a bug.")
used = 1