This commit is contained in:
Fluffy
2024-03-29 19:35:41 +00:00
committed by GitHub
parent b16ea8a333
commit d2a93a2659
2 changed files with 67 additions and 9 deletions
@@ -1,18 +1,29 @@
/datum/wires/rig
random = 1
holder_type = /obj/item/rig
#define RIG_SECURITY 1
#define RIG_AI_OVERRIDE 2
#define RIG_SYSTEM_CONTROL 4
#define RIG_INTERFACE_LOCK 8
#define RIG_INTERFACE_SHOCK 16
/*
* Rig security can be snipped to disable ID access checks on rig.
* Rig AI override can be pulsed to toggle whether or not the AI can take control of the suit.
* System control can be pulsed to toggle some malfunctions.
* Interface lock can be pulsed to toggle whether or not the interface can be accessed.
*/
#define RIG_SECURITY BITFLAG(1)
#define RIG_AI_OVERRIDE BITFLAG(2)
#define RIG_SYSTEM_CONTROL BITFLAG(3)
#define RIG_INTERFACE_LOCK BITFLAG(4)
#define RIG_INTERFACE_SHOCK BITFLAG(5)
/datum/wires/rig
random = 1
holder_type = /obj/item/rig
/datum/wires/rig/New(atom/holder)
wires = list(
RIG_SECURITY,
RIG_AI_OVERRIDE,
RIG_SYSTEM_CONTROL,
RIG_INTERFACE_LOCK,
RIG_INTERFACE_SHOCK
)
add_duds(3)
. = ..()
/datum/wires/rig/on_cut(wire, mend, source)
@@ -63,3 +74,9 @@
if(rig.open)
return TRUE
return FALSE
#undef RIG_SECURITY
#undef RIG_AI_OVERRIDE
#undef RIG_SYSTEM_CONTROL
#undef RIG_INTERFACE_LOCK
#undef RIG_INTERFACE_SHOCK