Refactor of base machinery a tiny bit more. DONE (#32546)
* Moves a base uid from machienry to a bunch of children as it was literally setting a var that most machines never used. This is probably a good candidate for a component replacement. * Just checking something * Does this fix the compiling not working properly? * And this? * What is going wrong ugh! * params["target"] instead of params["set"] bug was there before I even touched it but my compiling of TGUI caused it or something? * Slight tidying up for what Cyberboss and Antur likes. * Fixes the things that I was asked to fix
This commit is contained in:
committed by
CitadelStationBot
parent
ef700ef8d7
commit
300c471da9
@@ -14,6 +14,9 @@
|
||||
var/enabled = 1 // Set to 0 if the relay was turned off
|
||||
var/dos_failure = 0 // Set to 1 if the relay failed due to (D)DoS attack
|
||||
var/list/dos_sources = list() // Backwards reference for qdel() stuff
|
||||
var/uid
|
||||
var/static/gl_uid = 1
|
||||
|
||||
|
||||
// Denial of Service attack variables
|
||||
var/dos_overload = 0 // Amount of DoS "packets" in this relay's buffer
|
||||
@@ -97,8 +100,7 @@
|
||||
ui_interact(user)
|
||||
|
||||
/obj/machinery/ntnet_relay/Initialize()
|
||||
uid = gl_uid
|
||||
gl_uid++
|
||||
uid = gl_uid++
|
||||
component_parts = list()
|
||||
|
||||
if(GLOB.ntnet_global)
|
||||
|
||||
@@ -120,8 +120,8 @@
|
||||
refresh()
|
||||
return TRUE
|
||||
if("PRG_set")
|
||||
var/newuid = text2num(params["set"])
|
||||
var/newuid = text2num(params["target"])
|
||||
for(var/obj/machinery/power/supermatter_shard/S in supermatters)
|
||||
if(S.uid == newuid)
|
||||
active = S
|
||||
return TRUE
|
||||
return TRUE
|
||||
Reference in New Issue
Block a user