From 7c792015439494198db1ae6c54049fffb8df9ac8 Mon Sep 17 00:00:00 2001 From: MLGTASTICa <61350382+MLGTASTICa@users.noreply.github.com> Date: Fri, 30 Jun 2023 19:34:19 +0300 Subject: [PATCH] Moebius hard-difficulty update (#8225) --- code/modules/research/experiment.dm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/code/modules/research/experiment.dm b/code/modules/research/experiment.dm index 3b6ce03b5fb..90ec8449202 100644 --- a/code/modules/research/experiment.dm +++ b/code/modules/research/experiment.dm @@ -23,6 +23,7 @@ GLOBAL_LIST_EMPTY(explosion_watcher_list) var/list/saved_autopsy_weapons = list() var/list/saved_symptoms = list() var/list/saved_slimecores = list() + var/list/saved_object_types = list() // type = decon_count // Special point amount for autopsy weapons var/static/list/special_weapons = list( @@ -58,6 +59,11 @@ GLOBAL_LIST_EMPTY(explosion_watcher_list) var/has_new_tech = FALSE var/is_board = istype(I, /obj/item/electronics/circuitboard) + // No research value for what has been deconstructed already + if(I.type in saved_object_types) + // has to be 1 else division by 0 + return 1 + for(var/T in temp_tech) if(tech_points[T]) if(ignoreRepeat) @@ -85,6 +91,9 @@ GLOBAL_LIST_EMPTY(explosion_watcher_list) if(!(temp_tech[T] in saved_tech_levels[T])) saved_tech_levels[T] += temp_tech[T] + if(!(I.type in saved_object_types)) + saved_object_types += I.type + // Returns amount of research points received