Malfunctioning AIs: Fix Overload Machine not working on some machines (#27848)

* blcaklist, add intercom

* fix

* re-rework into a proc

* add these
This commit is contained in:
gurfan
2020-10-04 14:11:52 -05:00
committed by GitHub
parent 951489315c
commit 0534fe5aa3
12 changed files with 36 additions and 1 deletions

View File

@@ -1043,6 +1043,8 @@
for(var/obj/item/weapon/pinpointer/point in pinpointer_list)
point.target = null //the pinpointer will go back to pointing at the nuke disc.
/obj/machinery/power/apc/can_overload()
return 1
/obj/machinery/power/apc/proc/ion_act()
//intended to be exactly the same as an AI malf attack

View File

@@ -83,6 +83,9 @@
H.do_attack_animation(src, H)
return SPECIAL_ATTACK_FAILED
/obj/machinery/light_construct/can_overload()
return 0
/obj/machinery/light_construct/small
name = "small light fixture frame"
@@ -174,6 +177,9 @@ var/global/list/obj/machinery/light/alllights = list()
H.apply_damage(rand(1,2), BRUTE, pick(LIMB_RIGHT_LEG, LIMB_LEFT_LEG, LIMB_RIGHT_FOOT, LIMB_LEFT_FOOT))
return SPECIAL_ATTACK_FAILED
/obj/machinery/light/can_overload()
return 0
/obj/machinery/light/broken
icon_state = "ltube-broken" //for the mapper
spawn_with_bulb = /obj/item/weapon/light/tube/broken

View File

@@ -172,6 +172,8 @@
return
set_light(0)
/obj/machinery/power/can_overload()
return 0
// connect the machine to a powernet if a node cable is present on the turf
/obj/machinery/power/proc/connect_to_network()