mirror of
https://github.com/Aurorastation/Aurora-Old.git
synced 2026-08-24 13:16:18 +01:00
Adding improvised signal jammers
Adds improvised signal jammers, does a bit of light refactoring, makes signal jammers stop radio signallers.
This commit is contained in:
@@ -99,8 +99,12 @@
|
||||
|
||||
|
||||
proc/signal()
|
||||
if(!radio_connection) return
|
||||
|
||||
if(!radio_connection)
|
||||
return
|
||||
|
||||
if(within_jamming_range(src)) // can't send a signal through jammers
|
||||
return
|
||||
|
||||
var/datum/signal/signal = new
|
||||
signal.source = src
|
||||
signal.encryption = code
|
||||
@@ -126,6 +130,8 @@
|
||||
|
||||
|
||||
receive_signal(datum/signal/signal)
|
||||
if(within_jamming_range(src)) // can't receive signals while jammed
|
||||
return
|
||||
if(!signal) return 0
|
||||
if(signal.encryption != code) return 0
|
||||
if(!(src.wires & WIRE_RADIO_RECEIVE)) return 0
|
||||
@@ -166,4 +172,4 @@
|
||||
set desc = "BOOOOM!"
|
||||
deadman = 1
|
||||
processing_objects.Add(src)
|
||||
usr.visible_message("\red [usr] moves their finger over [src]'s signal button...")
|
||||
usr.visible_message("\red [usr] moves their finger over [src]'s signal button...")
|
||||
Reference in New Issue
Block a user