From a817cba3e4f65d116d6e99db2b21f7bfa15f7590 Mon Sep 17 00:00:00 2001 From: ktccd Date: Thu, 30 Mar 2017 23:19:33 +0200 Subject: [PATCH] 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. --- code/modules/ninja/suit/ninjaDrainAct.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/modules/ninja/suit/ninjaDrainAct.dm b/code/modules/ninja/suit/ninjaDrainAct.dm index 61e9edd8e4..0879e73008 100644 --- a/code/modules/ninja/suit/ninjaDrainAct.dm +++ b/code/modules/ninja/suit/ninjaDrainAct.dm @@ -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, "Checking \the [current_data.name] database.") 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, "Database: UPDATED.") @@ -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, "Checking \the [current_data.name] database.") 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, "Database: UPDATED.")