From 819e6be70c34d3759c515df00898ddcf537a62eb Mon Sep 17 00:00:00 2001 From: Fikou <23585223+Fikou@users.noreply.github.com> Date: Tue, 3 Jan 2023 22:46:58 +0100 Subject: [PATCH] adds more default pins for prebuilt modsuits (#72427) ## About The Pull Request makes magboots autopin adds autopin to unique ert modules and to the admin suit **if you have any module that should be autopinned but isnt say in the comments** ## Why It's Good For The Game cool ## Changelog :cl: qol: makes modsuits with magboots have those pinned by default, pins active modules on the admin suit, mining suit and the additional module of the ert suits /:cl: --- code/modules/mod/mod_types.dm | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/code/modules/mod/mod_types.dm b/code/modules/mod/mod_types.dm index e1bc5985e44..80861904236 100644 --- a/code/modules/mod/mod_types.dm +++ b/code/modules/mod/mod_types.dm @@ -54,6 +54,9 @@ /obj/item/mod/module/flashlight, /obj/item/mod/module/magboot, ) + default_pins = list( + /obj/item/mod/module/magboot, + ) /obj/item/mod/control/pre_equipped/atmospheric theme = /datum/mod_theme/atmospheric @@ -77,6 +80,7 @@ ) default_pins = list( /obj/item/mod/module/jetpack, + /obj/item/mod/module/magboot/advanced, ) /obj/item/mod/control/pre_equipped/loader @@ -104,6 +108,8 @@ /obj/item/mod/module/drill, ) default_pins = list( + /obj/item/mod/module/gps, + /obj/item/mod/module/drill, /obj/item/mod/module/sphere_transform, ) @@ -336,11 +342,13 @@ /// The insignia type, insignias show what sort of member of the ERT you're dealing with. var/insignia_type = /obj/item/mod/module/insignia /// Additional module we add, as a treat. - var/additional_module = /obj/item/mod/module + var/additional_module /obj/item/mod/control/pre_equipped/responsory/Initialize(mapload, new_theme, new_skin, new_core) applied_modules.Insert(1, insignia_type) - applied_modules.Add(additional_module) + if(additional_module) + applied_modules += additional_module + default_pins += additional_module return ..() /obj/item/mod/control/pre_equipped/responsory/commander @@ -470,6 +478,12 @@ /obj/item/mod/module/jetpack/advanced, /obj/item/mod/module/anomaly_locked/kinesis/plus, ) + default_pins = list( + /obj/item/mod/module/stealth/ninja, + /obj/item/mod/module/magboot/advanced, + /obj/item/mod/module/jetpack/advanced, + /obj/item/mod/module/anomaly_locked/kinesis/plus, + ) //these exist for the prefs menu /obj/item/mod/control/pre_equipped/empty