diff --git a/code/game/objects/items.dm b/code/game/objects/items.dm index 296abf8024..b01f1bca19 100644 --- a/code/game/objects/items.dm +++ b/code/game/objects/items.dm @@ -50,7 +50,7 @@ GLOBAL_VAR_INIT(rpg_loot_items, FALSE) var/flags_inv //This flag is used to determine when items in someone's inventory cover others. IE helmets making it so you can't see glasses, etc. var/interaction_flags_item = INTERACT_ITEM_ATTACK_HAND_PICKUP - + //Citadel Edit for digitigrade stuff var/mutantrace_variation = NO_MUTANTRACE_VARIATION //Are there special sprites for specific situations? Don't use this unless you need to. var/item_color = null //this needs deprecating, soonish diff --git a/code/modules/clothing/shoes/_shoes.dm b/code/modules/clothing/shoes/_shoes.dm index 233a529dcf..61f189e236 100644 --- a/code/modules/clothing/shoes/_shoes.dm +++ b/code/modules/clothing/shoes/_shoes.dm @@ -17,7 +17,7 @@ //CITADEL EDIT Enables digitigrade shoe styles var/adjusted = NORMAL_STYLE - var/mutantrace_variation = MUTANTRACE_VARIATION + mutantrace_variation = MUTANTRACE_VARIATION /obj/item/clothing/shoes/ComponentInitialize() . = ..() @@ -62,9 +62,9 @@ if(mutantrace_variation && ishuman(user)) var/mob/living/carbon/human/H = user if(DIGITIGRADE in H.dna.species.species_traits) - adjusted = DIGITIGRADE_STYLE + adjusted = ALT_STYLE H.update_inv_shoes() - else if(adjusted == DIGITIGRADE_STYLE) + else if(adjusted == ALT_STYLE) adjusted = NORMAL_STYLE H.update_inv_shoes() diff --git a/code/modules/clothing/shoes/vg_shoes.dm b/code/modules/clothing/shoes/vg_shoes.dm index d5308c85db..931c25b823 100644 --- a/code/modules/clothing/shoes/vg_shoes.dm +++ b/code/modules/clothing/shoes/vg_shoes.dm @@ -6,6 +6,7 @@ item_color = "leather" icon = 'modular_citadel/icons/obj/clothing/vg_clothes.dmi' alternate_worn_icon = 'modular_citadel/icons/mob/citadel/head.dmi' + mutantrace_variation = NO_MUTANTRACE_VARIATION /obj/item/clothing/shoes/magboots/deathsquad desc = "Very expensive and advanced magnetic boots, used only by the elite during extravehicular activity to ensure the user remains safely attached to the vehicle." @@ -15,6 +16,7 @@ icon = 'modular_citadel/icons/obj/clothing/vg_clothes.dmi' alternate_worn_icon = 'modular_citadel/icons/mob/citadel/head.dmi' resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | ACID_PROOF + mutantrace_variation = NO_MUTANTRACE_VARIATION /obj/item/clothing/shoes/magboots/atmos desc = "Magnetic boots, often used during extravehicular activity to ensure the user remains safely attached to the vehicle. These are painted in the colors of an atmospheric technician." @@ -24,6 +26,7 @@ alternate_worn_icon = 'modular_citadel/icons/mob/citadel/head.dmi' magboot_state = "atmosmagboots" resistance_flags = FIRE_PROOF + mutantrace_variation = NO_MUTANTRACE_VARIATION /obj/item/clothing/shoes/simonshoes name = "Simon's Shoes" @@ -31,6 +34,7 @@ icon_state = "simonshoes" icon = 'modular_citadel/icons/obj/clothing/vg_clothes.dmi' alternate_worn_icon = 'modular_citadel/icons/mob/citadel/head.dmi' + mutantrace_variation = NO_MUTANTRACE_VARIATION /obj/item/clothing/shoes/kneesocks name = "kneesocks" @@ -38,6 +42,7 @@ icon_state = "kneesock" icon = 'modular_citadel/icons/obj/clothing/vg_clothes.dmi' alternate_worn_icon = 'modular_citadel/icons/mob/citadel/head.dmi' + mutantrace_variation = NO_MUTANTRACE_VARIATION /obj/item/clothing/shoes/jestershoes name = "Jester Shoes" @@ -45,6 +50,7 @@ icon_state = "jestershoes" icon = 'modular_citadel/icons/obj/clothing/vg_clothes.dmi' alternate_worn_icon = 'modular_citadel/icons/mob/citadel/head.dmi' + mutantrace_variation = NO_MUTANTRACE_VARIATION /obj/item/clothing/shoes/aviatorboots name = "Aviator Boots" @@ -52,6 +58,7 @@ icon_state = "aviator_boots" icon = 'modular_citadel/icons/obj/clothing/vg_clothes.dmi' alternate_worn_icon = 'modular_citadel/icons/mob/citadel/head.dmi' + mutantrace_variation = NO_MUTANTRACE_VARIATION /obj/item/clothing/shoes/libertyshoes name = "Liberty Shoes" @@ -59,6 +66,7 @@ icon_state = "libertyshoes" icon = 'modular_citadel/icons/obj/clothing/vg_clothes.dmi' alternate_worn_icon = 'modular_citadel/icons/mob/citadel/head.dmi' + mutantrace_variation = NO_MUTANTRACE_VARIATION /obj/item/clothing/shoes/megaboots name = "DRN-001 Boots" @@ -66,6 +74,7 @@ icon_state = "megaboots" icon = 'modular_citadel/icons/obj/clothing/vg_clothes.dmi' alternate_worn_icon = 'modular_citadel/icons/mob/citadel/head.dmi' + mutantrace_variation = NO_MUTANTRACE_VARIATION /obj/item/clothing/shoes/protoboots name = "Prototype Boots" @@ -73,6 +82,7 @@ icon_state = "protoboots" icon = 'modular_citadel/icons/obj/clothing/vg_clothes.dmi' alternate_worn_icon = 'modular_citadel/icons/mob/citadel/head.dmi' + mutantrace_variation = NO_MUTANTRACE_VARIATION /obj/item/clothing/shoes/megaxboots name = "Maverick Hunter boots" @@ -80,6 +90,7 @@ icon_state = "megaxboots" icon = 'modular_citadel/icons/obj/clothing/vg_clothes.dmi' alternate_worn_icon = 'modular_citadel/icons/mob/citadel/head.dmi' + mutantrace_variation = NO_MUTANTRACE_VARIATION /obj/item/clothing/shoes/joeboots name = "Sniper Boots" @@ -87,6 +98,7 @@ icon_state = "joeboots" icon = 'modular_citadel/icons/obj/clothing/vg_clothes.dmi' alternate_worn_icon = 'modular_citadel/icons/mob/citadel/head.dmi' + mutantrace_variation = NO_MUTANTRACE_VARIATION /obj/item/clothing/shoes/doomguy name = "Doomguy's boots" @@ -94,6 +106,7 @@ icon_state = "doom" icon = 'modular_citadel/icons/obj/clothing/vg_clothes.dmi' alternate_worn_icon = 'modular_citadel/icons/mob/citadel/head.dmi' + mutantrace_variation = NO_MUTANTRACE_VARIATION /obj/item/clothing/shoes/rottenshoes name = "rotten shoes" @@ -101,6 +114,7 @@ icon_state = "rottenshoes" icon = 'modular_citadel/icons/obj/clothing/vg_clothes.dmi' alternate_worn_icon = 'modular_citadel/icons/mob/citadel/head.dmi' + mutantrace_variation = NO_MUTANTRACE_VARIATION /obj/item/clothing/shoes/sandal/slippers name = "magic slippers" @@ -108,6 +122,7 @@ desc = "For the wizard that puts comfort first. Who's going to laugh?" icon = 'modular_citadel/icons/obj/clothing/vg_clothes.dmi' alternate_worn_icon = 'modular_citadel/icons/mob/citadel/head.dmi' + mutantrace_variation = NO_MUTANTRACE_VARIATION /obj/item/clothing/shoes/slippers_worn name = "worn bunny slippers" @@ -115,10 +130,12 @@ icon_state = "slippers_worn" icon = 'modular_citadel/icons/obj/clothing/vg_clothes.dmi' alternate_worn_icon = 'modular_citadel/icons/mob/citadel/head.dmi' + mutantrace_variation = NO_MUTANTRACE_VARIATION /obj/item/clothing/shoes/jackboots/neorussian name = "neo-Russian boots" desc = "Tovarish, no one will realize you stepped on a pile of shit if your pair already looks like shit." icon_state = "nr_boots" icon = 'modular_citadel/icons/obj/clothing/vg_clothes.dmi' - alternate_worn_icon = 'modular_citadel/icons/mob/citadel/head.dmi' \ No newline at end of file + alternate_worn_icon = 'modular_citadel/icons/mob/citadel/head.dmi' + mutantrace_variation = NO_MUTANTRACE_VARIATION \ No newline at end of file diff --git a/code/modules/clothing/under/jobs/civilian.dm b/code/modules/clothing/under/jobs/civilian.dm index 0411a67846..2288c98b34 100644 --- a/code/modules/clothing/under/jobs/civilian.dm +++ b/code/modules/clothing/under/jobs/civilian.dm @@ -75,6 +75,7 @@ item_color = "blueclown" fitted = FEMALE_UNIFORM_TOP can_adjust = FALSE + mutantrace_variation = NO_MUTANTRACE_VARIATION /obj/item/clothing/under/rank/greenclown name = "green clown suit" @@ -84,6 +85,7 @@ item_color = "greenclown" fitted = FEMALE_UNIFORM_TOP can_adjust = FALSE + mutantrace_variation = NO_MUTANTRACE_VARIATION /obj/item/clothing/under/rank/yellowclown name = "yellow clown suit" @@ -93,6 +95,7 @@ item_color = "yellowclown" fitted = FEMALE_UNIFORM_TOP can_adjust = FALSE + mutantrace_variation = NO_MUTANTRACE_VARIATION /obj/item/clothing/under/rank/purpleclown name = "purple clown suit" @@ -102,7 +105,8 @@ item_color = "purpleclown" fitted = FEMALE_UNIFORM_TOP can_adjust = FALSE - + mutantrace_variation = NO_MUTANTRACE_VARIATION + /obj/item/clothing/under/rank/orangeclown name = "orange clown suit" desc = "'ORANGE HONK!'" @@ -111,7 +115,8 @@ item_color = "orangeclown" fitted = FEMALE_UNIFORM_TOP can_adjust = FALSE - + mutantrace_variation = NO_MUTANTRACE_VARIATION + /obj/item/clothing/under/rank/rainbowclown name = "rainbow clown suit" desc = "'R A I N B O W HONK!'" @@ -120,6 +125,7 @@ item_color = "rainbowclown" fitted = FEMALE_UNIFORM_TOP can_adjust = FALSE + mutantrace_variation = NO_MUTANTRACE_VARIATION /obj/item/clothing/under/rank/clown/Initialize() . = ..() diff --git a/code/modules/clothing/under/miscellaneous.dm b/code/modules/clothing/under/miscellaneous.dm index ce17f3741e..c3e0cf2b85 100644 --- a/code/modules/clothing/under/miscellaneous.dm +++ b/code/modules/clothing/under/miscellaneous.dm @@ -709,6 +709,7 @@ body_parts_covered = CHEST|GROIN|ARMS fitted = FEMALE_UNIFORM_TOP can_adjust = FALSE + mutantrace_variation = NO_MUTANTRACE_VARIATION /obj/item/clothing/under/drfreeze name = "doctor freeze's jumpsuit" @@ -717,6 +718,7 @@ item_state = "drfreeze" item_color = "drfreeze" can_adjust = FALSE + mutantrace_variation = NO_MUTANTRACE_VARIATION /obj/item/clothing/under/lobster name = "foam lobster suit" @@ -726,6 +728,7 @@ item_color = "lobster" fitted = NO_FEMALE_UNIFORM can_adjust = FALSE + mutantrace_variation = NO_MUTANTRACE_VARIATION /obj/item/clothing/under/gondola name = "gondola hide suit" diff --git a/code/modules/mob/living/carbon/human/update_icons.dm b/code/modules/mob/living/carbon/human/update_icons.dm index 5590ce5321..cf29b3541f 100644 --- a/code/modules/mob/living/carbon/human/update_icons.dm +++ b/code/modules/mob/living/carbon/human/update_icons.dm @@ -125,7 +125,7 @@ There are several things that need to be remembered: if(U.mutantrace_variation) if(U.suit_style == DIGITIGRADE_SUIT_STYLE) - U.alternate_worn_icon = 'icons/mob/uniform_digi.dmi' + U.alternate_worn_icon = 'modular_citadel/icons/mob/uniform_digi.dmi' if(U.adjusted == ALT_STYLE) t_color = "[t_color]_d_l" else if(U.adjusted == NORMAL_STYLE) @@ -281,12 +281,11 @@ There are several things that need to be remembered: if(hud_used.inventory_shown) //if the inventory is open client.screen += shoes //add it to client's screen update_observer_view(shoes,1) - if(S.adjusted == DIGITIGRADE_STYLE) - S.icon_override = 'modular_citadel/icons/mob/digishoes.dmi' - else if(S.adjusted == NORMAL_STYLE) - S.icon_override = null + if(S.mutantrace_variation) + if(S.adjusted == ALT_STYLE) + S.alternate_worn_icon = 'modular_citadel/icons/mob/digishoes.dmi' - overlays_standing[SHOES_LAYER] = shoes.build_worn_icon(state = shoes.icon_state, default_layer = SHOES_LAYER, default_icon_file = ((shoes.icon_override) ? shoes.icon_override : 'icons/mob/feet.dmi')) + overlays_standing[SHOES_LAYER] = shoes.build_worn_icon(state = shoes.icon_state, default_layer = SHOES_LAYER, default_icon_file = ((shoes.alternate_worn_icon) ? shoes.alternate_worn_icon : 'icons/mob/feet.dmi')) var/mutable_appearance/shoes_overlay = overlays_standing[SHOES_LAYER] if(OFFSET_SHOES in dna.species.offset_features) shoes_overlay.pixel_x += dna.species.offset_features[OFFSET_SHOES][1] diff --git a/code/modules/surgery/bodyparts/helpers.dm b/code/modules/surgery/bodyparts/helpers.dm index 566157d906..7d337c67c2 100644 --- a/code/modules/surgery/bodyparts/helpers.dm +++ b/code/modules/surgery/bodyparts/helpers.dm @@ -303,5 +303,5 @@ if(swap_back) S.adjusted = NORMAL_STYLE else - S.adjusted = DIGITIGRADE_STYLE + S.adjusted = ALT_STYLE H.update_inv_shoes() diff --git a/icons/mob/uniform_digi.dmi b/icons/mob/uniform_digi.dmi deleted file mode 100644 index 8d0fd2e62b..0000000000 Binary files a/icons/mob/uniform_digi.dmi and /dev/null differ diff --git a/modular_citadel/code/modules/custom_loadout/custom_items.dm b/modular_citadel/code/modules/custom_loadout/custom_items.dm index 807dc064a5..a243d48e27 100644 --- a/modular_citadel/code/modules/custom_loadout/custom_items.dm +++ b/modular_citadel/code/modules/custom_loadout/custom_items.dm @@ -1,6 +1,9 @@ //For custom items. +// Unless there's a digitigrade version make sure you add mutantrace_variation = NO_MUTANTRACE_VARIATION to all clothing/under and shoes - Pooj +// Digitigrade stuff is uniform_digi.dmi and digishoes.dmi in modular_citadel/icons/mob + /obj/item/custom/ceb_soap name = "Cebutris' Soap" desc = "A generic bar of soap that doesn't really seem to work right." @@ -231,12 +234,14 @@ fitted = NO_FEMALE_UNIFORM alternate_worn_layer = ABOVE_SHOES_LAYER can_adjust = 0 + mutantrace_variation = NO_MUTANTRACE_VARIATION /obj/item/clothing/shoes/sneakers/pink icon = 'icons/obj/custom.dmi' icon_state = "pink" alternate_worn_icon = 'icons/mob/custom_w.dmi' item_state = "pink" + mutantrace_variation = NO_MUTANTRACE_VARIATION /obj/item/clothing/neck/tie/bloodred name = "Blood Red Tie" @@ -253,6 +258,7 @@ icon_state = "puffydress" item_state = "puffydress" body_parts_covered = CHEST|GROIN|LEGS + mutantrace_variation = NO_MUTANTRACE_VARIATION /obj/item/clothing/suit/vermillion name = "vermillion clothing" @@ -262,6 +268,7 @@ body_parts_covered = CHEST|GROIN|LEGS|ARMS|HANDS icon = 'icons/obj/custom.dmi' alternate_worn_icon = 'icons/mob/custom_w.dmi' + mutantrace_variation = NO_MUTANTRACE_VARIATION /obj/item/clothing/under/bb_sweater/black/naomi name = "worn black sweater" @@ -397,11 +404,13 @@ desc = "Comfy Lucky Jackboots with the word Luck on them." item_state = "luckyjack" icon_state = "luckyjack" + mutantrace_variation = NO_MUTANTRACE_VARIATION /obj/item/clothing/under/lunasune name = "Divine Robes" icon = 'icons/obj/custom.dmi' - icon_override = 'icons/mob/custom_w.dmi' + alternate_worn_icon = 'icons/mob/custom_w.dmi' desc = "Heavenly robes of the kitsune Luna Pumpkin,you can feel radiance coming from them." item_state = "Divine_robes" icon_state = "Divine_robes" + mutantrace_variation = NO_MUTANTRACE_VARIATION diff --git a/modular_citadel/icons/mob/uniform_digi.dmi b/modular_citadel/icons/mob/uniform_digi.dmi new file mode 100644 index 0000000000..1a95d6a3bd Binary files /dev/null and b/modular_citadel/icons/mob/uniform_digi.dmi differ