mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
#undef is now required for all file defines (#24091)
* CI * undef * hooooly crap * yeah * false by default * fixes * alright, there we go * oops lmao * lol, lmao even * proper programming * fix * losin my mind * oops * yeah coloring * WE LOVE MULTIPLE DEFINES (ive lost my sanity)
This commit is contained in:
@@ -1,9 +1,3 @@
|
||||
#define WIRE_RECEIVE (1<<0) //Allows pulse(0) to call Activate()
|
||||
#define WIRE_PULSE (1<<1) //Allows pulse(0) to act on the holder
|
||||
#define WIRE_PULSE_SPECIAL (1<<2) //Allows pulse(0) to act on the holders special assembly
|
||||
#define WIRE_RADIO_RECEIVE (1<<3) //Allows pulse(1) to call Activate()
|
||||
#define WIRE_RADIO_PULSE (1<<4) //Allows pulse(1) to send a radio message
|
||||
|
||||
/obj/item/assembly
|
||||
name = "assembly"
|
||||
desc = "A small electronic device that should never exist."
|
||||
@@ -27,7 +21,7 @@
|
||||
var/list/attached_overlays = null
|
||||
var/obj/item/assembly_holder/holder = null
|
||||
var/cooldown = FALSE //To prevent spam
|
||||
var/wires = WIRE_RECEIVE | WIRE_PULSE
|
||||
var/wires = ASSEMBLY_WIRE_RECEIVE | ASSEMBLY_WIRE_PULSE
|
||||
var/datum/wires/connected = null // currently only used by timer/signaler
|
||||
|
||||
/obj/item/assembly/proc/activate() //What the device does when turned on
|
||||
@@ -69,9 +63,9 @@
|
||||
return ..()
|
||||
|
||||
/obj/item/assembly/pulsed(radio = FALSE)
|
||||
if(holder && (wires & WIRE_RECEIVE))
|
||||
if(holder && (wires & ASSEMBLY_WIRE_RECEIVE))
|
||||
activate()
|
||||
if(radio && (wires & WIRE_RADIO_RECEIVE))
|
||||
if(radio && (wires & ASSEMBLY_WIRE_RADIO_RECEIVE))
|
||||
activate()
|
||||
return TRUE
|
||||
|
||||
@@ -80,9 +74,9 @@
|
||||
if(connected && wires)
|
||||
connected.pulse_assembly(src)
|
||||
return TRUE
|
||||
if(holder && (wires & WIRE_PULSE))
|
||||
if(holder && (wires & ASSEMBLY_WIRE_PULSE))
|
||||
holder.process_activation(src, 1, 0)
|
||||
if(holder && (wires & WIRE_PULSE_SPECIAL))
|
||||
if(holder && (wires & ASSEMBLY_WIRE_PULSE_SPECIAL))
|
||||
holder.process_activation(src, 0, 1)
|
||||
if(istype(loc, /obj/item/grenade)) // This is a hack. Todo: Manage this better -Sayu
|
||||
var/obj/item/grenade/G = loc
|
||||
|
||||
@@ -7,7 +7,7 @@ GLOBAL_LIST_EMPTY(remote_signalers)
|
||||
item_state = "signaler"
|
||||
materials = list(MAT_METAL = 400, MAT_GLASS = 120)
|
||||
origin_tech = "magnets=1;bluespace=1"
|
||||
wires = WIRE_RECEIVE | WIRE_PULSE | WIRE_RADIO_PULSE | WIRE_RADIO_RECEIVE
|
||||
wires = ASSEMBLY_WIRE_RECEIVE | ASSEMBLY_WIRE_PULSE | ASSEMBLY_WIRE_RADIO_PULSE | ASSEMBLY_WIRE_RADIO_RECEIVE
|
||||
secured = TRUE
|
||||
bomb_name = "remote-control bomb"
|
||||
/// Are we set to receieve a signal?
|
||||
|
||||
Reference in New Issue
Block a user