spaceproof! (#28857)

This commit is contained in:
kyunkyunkyun
2025-04-07 10:13:38 +05:00
committed by GitHub
parent 7b8743d02b
commit 58bb7f1b32
4 changed files with 16 additions and 6 deletions
+8
View File
@@ -702,8 +702,16 @@
overslotting_parts -= part
continue
overslotting_parts |= part
var/used_skin_modifiers = theme.skin_modifiers[new_skin]
apply_modifiers(used_skin_modifiers)
wearer?.regenerate_icons()
/obj/item/mod/control/proc/apply_modifiers(modifiers)
if(modifiers & MAKE_SPACEPROOF)
min_cold_protection_temperature = SPACE_SUIT_MIN_TEMP_PROTECT
for(var/obj/item/clothing/part in mod_parts)
part.min_cold_protection_temperature = SPACE_SUIT_MIN_TEMP_PROTECT
/obj/item/mod/control/proc/on_exit(datum/source, atom/movable/part, direction)
SIGNAL_HANDLER
-6
View File
@@ -4,7 +4,6 @@
icon = 'icons/obj/clothing/modsuit/mod_construction.dmi'
icon_state = "skinapplier"
var/skin = "civilian"
var/make_spaceproof = FALSE //Used on the miner asteroid skin to make the suit spaceproof when upgrading.
var/compatible_theme = /datum/mod_theme/standard
/obj/item/mod/skin_applier/Initialize(mapload)
@@ -22,10 +21,6 @@
to_chat(user, "<span class='warning'>Theme is not compatible!</span>")
return TRUE
mod.set_mod_skin(skin)
if(make_spaceproof)
mod.min_cold_protection_temperature = SPACE_SUIT_MIN_TEMP_PROTECT
for(var/obj/item/clothing/C in mod.mod_parts)
C.min_cold_protection_temperature = SPACE_SUIT_MIN_TEMP_PROTECT
to_chat(user, "<span class='notice'>You apply the theme to [mod].</span>")
qdel(src)
return TRUE
@@ -34,7 +29,6 @@
skin = "asteroid"
compatible_theme = /datum/mod_theme/mining
desc = "This one-use skin applier will add a skin to MODsuits of a specific type. This one applies to mining modsuits, and makes them spaceproof. Enjoy the days when you had MODsuits on the asteroid. Wait a minute."
make_spaceproof = TRUE
/obj/item/mod/skin_applier/corpsman
skin = "corpsman"
+5
View File
@@ -51,6 +51,8 @@
var/list/inbuilt_modules = list()
/// Allowed items in the chestplate's suit storage.
var/list/allowed_suit_storage = list()
/// List of modifiers that we apply after applying new skin
var/list/skin_modifiers = list()
/// List of skins with their appropriate clothing flags.
var/list/skins = list(
"standard" = list(
@@ -309,6 +311,9 @@
/obj/item/gun/energy/kinetic_accelerator,
)
inbuilt_modules = list(/obj/item/mod/module/ash_accretion, /obj/item/mod/module/sphere_transform)
skin_modifiers = list(
"asteroid" = MAKE_SPACEPROOF
)
skins = list(
"mining" = list(
HELMET_FLAGS = list(