From 5dc4686ad986e3d1f826fab101fe0b6b33db6825 Mon Sep 17 00:00:00 2001
From: mistyLuminescence <32139558+mistyLuminescence@users.noreply.github.com>
Date: Mon, 1 Apr 2019 00:19:06 +0100
Subject: [PATCH] Unidentified Auto Tweak 2: Electric Boogaloo (#5990)
* Remakes #5983 by request.
---
code/modules/reagents/Chemistry-Machinery.dm | 5 +++
.../reagents/reagent_containers/hypospray.dm | 1 -
.../unidentified_hypospray.dm | 26 +++++++++++++-
.../mistyLuminescence - biginjector2.yml | 36 +++++++++++++++++++
4 files changed, 66 insertions(+), 2 deletions(-)
create mode 100644 html/changelogs/mistyLuminescence - biginjector2.yml
diff --git a/code/modules/reagents/Chemistry-Machinery.dm b/code/modules/reagents/Chemistry-Machinery.dm
index 39130660011..ee77c5e79e5 100644
--- a/code/modules/reagents/Chemistry-Machinery.dm
+++ b/code/modules/reagents/Chemistry-Machinery.dm
@@ -608,6 +608,11 @@
continue
to_chat(user, span("notice", "Contains [R.volume]u of [R.name].
[R.description]
"))
+ // Last, unseal it if it's an autoinjector.
+ if(istype(I,/obj/item/weapon/reagent_containers/hypospray/autoinjector/biginjector) && !(I.flags & OPENCONTAINER))
+ I.flags |= OPENCONTAINER
+ to_chat(user, span("notice", "Sample container unsealed.
"))
+
to_chat(user, span("notice", "Scanning of \the [I] complete."))
analyzing = FALSE
update_icon()
diff --git a/code/modules/reagents/reagent_containers/hypospray.dm b/code/modules/reagents/reagent_containers/hypospray.dm
index 2fc228e5afa..4b5949595b7 100644
--- a/code/modules/reagents/reagent_containers/hypospray.dm
+++ b/code/modules/reagents/reagent_containers/hypospray.dm
@@ -184,7 +184,6 @@
volume = 15
origin_tech = list(TECH_BIO = 4)
filled_reagents = list("inaprovaline" = 15)
- flags = 0 // Removed OPENCONTAINER so you can't extract things to cheese the identification system in unidentified versions.
/obj/item/weapon/reagent_containers/hypospray/autoinjector/biginjector/brute
name = "trauma hypo"
diff --git a/code/modules/reagents/reagent_containers/unidentified_hypospray.dm b/code/modules/reagents/reagent_containers/unidentified_hypospray.dm
index 518ed05111a..496e694cbcf 100644
--- a/code/modules/reagents/reagent_containers/unidentified_hypospray.dm
+++ b/code/modules/reagents/reagent_containers/unidentified_hypospray.dm
@@ -7,74 +7,98 @@
// The good.
/obj/item/weapon/reagent_containers/hypospray/autoinjector/biginjector/brute/unidentified
init_hide_identity = TRUE
+ flags = 0
/obj/item/weapon/reagent_containers/hypospray/autoinjector/biginjector/burn/unidentified
init_hide_identity = TRUE
+ flags = 0
/obj/item/weapon/reagent_containers/hypospray/autoinjector/biginjector/toxin/unidentified
init_hide_identity = TRUE
+ flags = 0
/obj/item/weapon/reagent_containers/hypospray/autoinjector/biginjector/oxy/unidentified
init_hide_identity = TRUE
+ flags = 0
/obj/item/weapon/reagent_containers/hypospray/autoinjector/biginjector/purity/unidentified
init_hide_identity = TRUE
+ flags = 0
/obj/item/weapon/reagent_containers/hypospray/autoinjector/biginjector/pain/unidentified
init_hide_identity = TRUE
+ flags = 0
/obj/item/weapon/reagent_containers/hypospray/autoinjector/biginjector/organ/unidentified
init_hide_identity = TRUE
+ flags = 0
/obj/item/weapon/reagent_containers/hypospray/autoinjector/biginjector/clotting/unidentified
init_hide_identity = TRUE
+ flags = 0
/obj/item/weapon/reagent_containers/hypospray/autoinjector/biginjector/bonemed/unidentified
init_hide_identity = TRUE
+ flags = 0
/obj/item/weapon/reagent_containers/hypospray/autoinjector/biginjector/combat/unidentified
init_hide_identity = TRUE
+ flags = 0
/obj/item/weapon/reagent_containers/hypospray/autoinjector/biginjector/healing_nanites/unidentified
init_hide_identity = TRUE
+ flags = 0
// The somewhat bad.
/obj/item/weapon/reagent_containers/hypospray/autoinjector/biginjector/stimm/unidentified
init_hide_identity = TRUE
+ flags = 0
/obj/item/weapon/reagent_containers/hypospray/autoinjector/biginjector/space_drugs/unidentified
init_hide_identity = TRUE
+ flags = 0
/obj/item/weapon/reagent_containers/hypospray/autoinjector/biginjector/expired/unidentified
init_hide_identity = TRUE
+ flags = 0
/obj/item/weapon/reagent_containers/hypospray/autoinjector/biginjector/serotrotium/unidentified
init_hide_identity = TRUE
+ flags = 0
/obj/item/weapon/reagent_containers/hypospray/autoinjector/biginjector/cryptobiolin/unidentified
init_hide_identity = TRUE
+ flags = 0
/obj/item/weapon/reagent_containers/hypospray/autoinjector/biginjector/mindbreaker/unidentified
init_hide_identity = TRUE
+ flags = 0
/obj/item/weapon/reagent_containers/hypospray/autoinjector/biginjector/psilocybin/unidentified
init_hide_identity = TRUE
+ flags = 0
/obj/item/weapon/reagent_containers/hypospray/autoinjector/biginjector/soporific/unidentified
init_hide_identity = TRUE
+ flags = 0
// The very bad.
/obj/item/weapon/reagent_containers/hypospray/autoinjector/biginjector/cyanide/unidentified
init_hide_identity = TRUE
+ flags = 0
/obj/item/weapon/reagent_containers/hypospray/autoinjector/biginjector/impedrezene/unidentified
init_hide_identity = TRUE
+ flags = 0
/obj/item/weapon/reagent_containers/hypospray/autoinjector/biginjector/mutagen/unidentified
init_hide_identity = TRUE
+ flags = 0
/obj/item/weapon/reagent_containers/hypospray/autoinjector/biginjector/defective_nanites/unidentified
init_hide_identity = TRUE
+ flags = 0
/obj/item/weapon/reagent_containers/hypospray/autoinjector/biginjector/contaminated/unidentified
- init_hide_identity = TRUE
\ No newline at end of file
+ init_hide_identity = TRUE
+ flags = 0
\ No newline at end of file
diff --git a/html/changelogs/mistyLuminescence - biginjector2.yml b/html/changelogs/mistyLuminescence - biginjector2.yml
new file mode 100644
index 00000000000..bd48b6987a4
--- /dev/null
+++ b/html/changelogs/mistyLuminescence - biginjector2.yml
@@ -0,0 +1,36 @@
+################################
+# Example Changelog File
+#
+# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb.
+#
+# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.)
+# When it is, any changes listed below will disappear.
+#
+# Valid Prefixes:
+# bugfix
+# wip (For works in progress)
+# tweak
+# soundadd
+# sounddel
+# rscadd (general adding of nice things)
+# rscdel (general deleting of nice things)
+# imageadd
+# imagedel
+# maptweak
+# spellcheck (typo fixes)
+# experiment
+#################################
+
+# Your name.
+author: mistyLuminescence
+
+# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again.
+delete-after: True
+
+# Any changes you've made. See valid prefix list above.
+# INDENT WITH TWO SPACES. NOT TABS. SPACES.
+# SCREW THIS UP AND IT WON'T WORK.
+# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries.
+# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog.
+changes:
+ - tweak: "Large autoinjectors are now scannable and syringeable again, just like they used to be. Unidentified autoinjectors still aren't, unless you ID them first."
\ No newline at end of file