Solves Ninja-tech theft
You can now steal tech from the R&D console directly. You can STILL steal it using a disk, by hitting your suit with the disk, but people don't seem to use that. This code is horrible, by the way, it does nothing to fix the fact that it's a copy-paste for both the server and the console.
This commit is contained in:
@@ -131,7 +131,8 @@ They *could* go in their appropriate files, but this is supposed to be modular
|
||||
for(var/datum/tech/current_data in S.stored_research)
|
||||
to_chat(H, "<span class='notice'>Checking \the [current_data.name] database.</span>")
|
||||
if(do_after(H, S.s_delay, target = src) && G.candrain && src)
|
||||
for(var/datum/tech/analyzing_data in files.known_tech)
|
||||
for(var/id in files.known_tech)
|
||||
var/datum/tech/analyzing_data = files.known_tech[id]
|
||||
if(current_data.id == analyzing_data.id)
|
||||
if(analyzing_data.level > current_data.level)
|
||||
to_chat(H, "<span class='notice'>Database:</span> <b>UPDATED</b>.")
|
||||
@@ -162,7 +163,8 @@ They *could* go in their appropriate files, but this is supposed to be modular
|
||||
for(var/datum/tech/current_data in S.stored_research)
|
||||
to_chat(H, "<span class='notice'>Checking \the [current_data.name] database.</span>")
|
||||
if(do_after(H, S.s_delay, target = src) && G.candrain && src)
|
||||
for(var/datum/tech/analyzing_data in files.known_tech)
|
||||
for(var/id in files.known_tech)
|
||||
var/datum/tech/analyzing_data = files.known_tech[id]
|
||||
if(current_data.id == analyzing_data.id)
|
||||
if(analyzing_data.level > current_data.level)
|
||||
to_chat(H, "<span class='notice'>Database:</span> <b>UPDATED</b>.")
|
||||
|
||||
Reference in New Issue
Block a user