mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-21 12:02:31 +01:00
sdaf (#18804)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user