mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Merge pull request #8892 from Cyantime/patch-3
Enables the construction of battery rack circuits from APC circuits
This commit is contained in:
9
code/modules/power/batteryrack_vr.dm
Normal file
9
code/modules/power/batteryrack_vr.dm
Normal file
@@ -0,0 +1,9 @@
|
||||
/obj/item/weapon/module/power_control/attackby(var/obj/item/I, var/mob/user)
|
||||
if(I.is_multitool())
|
||||
to_chat(user, SPAN_NOTICE("You begin tweaking the power control circuits to support a power cell rack."))
|
||||
if(do_after(user, 50 * I.toolspeed))
|
||||
var/obj/item/newcircuit = new/obj/item/weapon/circuitboard/batteryrack(get_turf(user))
|
||||
qdel(src)
|
||||
user.put_in_hands(newcircuit)
|
||||
return
|
||||
return ..()
|
||||
@@ -3083,6 +3083,7 @@
|
||||
#include "code\modules\power\apc.dm"
|
||||
#include "code\modules\power\apc_vr.dm"
|
||||
#include "code\modules\power\batteryrack.dm"
|
||||
#include "code\modules\power\batteryrack_vr.dm"
|
||||
#include "code\modules\power\breaker_box.dm"
|
||||
#include "code\modules\power\cable.dm"
|
||||
#include "code\modules\power\cable_ender.dm"
|
||||
|
||||
Reference in New Issue
Block a user