Merge pull request #13883 from Heroman3003/assorted-fix

Allows ID to be inserted into fax machine by clicking it + 2 minor fixes
This commit is contained in:
Casey
2022-10-09 23:08:05 -04:00
committed by CHOMPStation2
parent 0972599a01
commit 897c1135fa
5 changed files with 14 additions and 7 deletions

View File

@@ -260,7 +260,7 @@
vision_range = 10
closest_distance = 4
/datum/ai_holder/simple_mob/ranged/bossmob_glitch/pre_special_attack(atom/A)
/datum/ai_holder/simple_mob/ranged/aggressive/bossmob_glitch/pre_special_attack(atom/A)
var/mob/living/simple_mob/glitch_boss/GB
if(istype(holder, /mob/living/simple_mob/glitch_boss))
GB = holder

View File

@@ -188,7 +188,7 @@
/datum/nifsoft/malware/activate()
if((. = ..()))
to_chat(nif.human,"<span class='danger'>Runtime error in 15_misc.dm, line 189.</span>")
to_chat(nif.human,"<span class='danger'>Runtime error in 15_misc.dm, line 191.</span>")
/datum/nifsoft/malware/install()
if((. = ..()))

View File

@@ -136,7 +136,11 @@ var/list/adminfaxes = list() //cache for faxes that have been sent to admins
return TRUE
/obj/machinery/photocopier/faxmachine/attackby(obj/item/O as obj, mob/user as mob)
if(O.is_multitool() && panel_open)
if(istype(O, /obj/item/weapon/card/id) && !scan)
user.drop_from_inventory(O)
O.forceMove(src)
scan = O
else if(O.is_multitool() && panel_open)
var/input = sanitize(tgui_input_text(usr, "What Department ID would you like to give this fax machine?", "Multitool-Fax Machine Interface", department))
if(!input)
to_chat(usr, "No input found. Please hang up and try your call again.")
@@ -277,4 +281,3 @@ var/list/adminfaxes = list() //cache for faxes that have been sent to admins
"body" = summary
)
)

View File

@@ -164,7 +164,7 @@
. += "<span class='notice'>You have to go closer if you want to read it.</span>"
/obj/item/weapon/paper/proc/show_content(var/mob/user, var/forceshow=0)
if(!(istype(user, /mob/living/carbon/human) || istype(user, /mob/observer/dead) || istype(user, /mob/living/silicon) || user.universal_understand) && !forceshow)
if(!(forceshow || (istype(user, /mob/living/carbon/human) || istype(user, /mob/observer/dead) || istype(user, /mob/living/silicon) || (istype(user) && user.universal_understand))))
user << browse("<HTML><HEAD><TITLE>[name]</TITLE></HEAD><BODY>[stars(info)][stamps]</BODY></HTML>", "window=[name]")
onclose(user, "[name]")
else

View File

@@ -87,3 +87,7 @@
req_tech = list(TECH_MATERIAL = 7, TECH_BLUESPACE = 5, TECH_MAGNET = 6, TECH_PHORON = 3, TECH_ARCANE = 1, TECH_PRECURSOR = 2)
build_path = /obj/random/janusmodule
sort_string = "ZBBAA"
/datum/design/item/precursor/janusmodule/Fabricate(var/newloc, var/fabricator)
var/type_to_spawn = pick(subtypesof(/obj/item/weapon/circuitboard/mecha/imperion))
return new type_to_spawn(newloc)