mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 04:51:32 +01:00
AI Malfunction Update (#2193)
Incorporates many of the things from: https://forums.aurorastation.org/viewtopic.php?f=18&t=7845. Added several new features to the Malf AI gamemode based on the thread above.
This commit is contained in:
@@ -1,9 +1,4 @@
|
||||
/**
|
||||
* Multitool -- A multitool is used for hacking electronic devices.
|
||||
* TO-DO -- Using it as a power measurement tool for cables etc. Nannek.
|
||||
*
|
||||
*/
|
||||
|
||||
// used to debug malf AI apc's. Maybe in the future it can be used for computers.
|
||||
/obj/item/device/debugger
|
||||
name = "debugger"
|
||||
desc = "Used to debug electronic equipment."
|
||||
@@ -15,32 +10,7 @@
|
||||
throwforce = 5.0
|
||||
throw_range = 15
|
||||
throw_speed = 3
|
||||
desc = "You can use this on airlocks or APCs to try to hack them without cutting wires."
|
||||
|
||||
matter = list(DEFAULT_WALL_MATERIAL = 50,"glass" = 20)
|
||||
|
||||
origin_tech = list(TECH_MAGNET = 1, TECH_ENGINEERING = 1)
|
||||
var/obj/machinery/telecomms/buffer // simple machine buffer for device linkage
|
||||
|
||||
/obj/item/device/debugger/is_used_on(obj/O, mob/user)
|
||||
if(istype(O, /obj/machinery/power/apc))
|
||||
var/obj/machinery/power/apc/A = O
|
||||
if(A.emagged || A.hacker)
|
||||
user << "<span class='warning'>There is a software error with the device.</span>"
|
||||
else
|
||||
user << "<span class='notice'>The device's software appears to be fine.</span>"
|
||||
return 1
|
||||
if(istype(O, /obj/machinery/door))
|
||||
var/obj/machinery/door/D = O
|
||||
if(D.operating == -1)
|
||||
user << "<span class='warning'>There is a software error with the device.</span>"
|
||||
else
|
||||
user << "<span class='notice'>The device's software appears to be fine.</span>"
|
||||
return 1
|
||||
else if(istype(O, /obj/machinery))
|
||||
var/obj/machinery/A = O
|
||||
if(A.emagged)
|
||||
user << "<span class='warning'>There is a software error with the device.</span>"
|
||||
else
|
||||
user << "<span class='notice'>The device's software appears to be fine.</span>"
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user