From 4cfe2f3c91eb8dc50e5ab90fb10f5baf21b4e5b7 Mon Sep 17 00:00:00 2001 From: Odairu <39929315+Odairu@users.noreply.github.com> Date: Wed, 21 Aug 2024 01:49:07 -0400 Subject: [PATCH] Take 2 at fixing digilegs for assetprotection (I hate sprite stuff) (#1951) ## About The Pull Request Skyrat introduced a variable for digi legs, which in order to override for our modsuits I filled our mod-part icon file with all the current modsuits in the game and redefined the variable on all applicable parts to point towards that file instead Bubber exclusive mods were pointing to the skyrat files when the user had digi legs, however those mods were not present in those files. This makes them point to correct files. the AP mod also did not have digisprites, I sprited them, they exist now. ## Why It's Good For The Game closes #1534 ## Proof Of Testing ![image](https://github.com/user-attachments/assets/2e8bbb69-a1ff-4f76-b4a9-80c6b5c26fb5) ## Changelog :cl: fix: AP mod has digisprites now and applies them properly. /:cl: --------- Co-authored-by: Odairu --- modular_zubbers/code/modules/mod/mod_theme.dm | 6 ++++++ .../icons/mob/clothing/modsuit/mod.dmi | Bin 0 -> 1787 bytes 2 files changed, 6 insertions(+) create mode 100644 modular_zubbers/icons/mob/clothing/modsuit/mod.dmi diff --git a/modular_zubbers/code/modules/mod/mod_theme.dm b/modular_zubbers/code/modules/mod/mod_theme.dm index 30ab4426d1d..c6b52087577 100644 --- a/modular_zubbers/code/modules/mod/mod_theme.dm +++ b/modular_zubbers/code/modules/mod/mod_theme.dm @@ -59,6 +59,12 @@ acid = 100 wound = 15 +/datum/mod_theme/asset_protection/set_skin(obj/item/mod/control/mod, skin) + . = ..() + var/parts = mod.get_parts() + for(var/obj/item/part as anything in parts + mod) + part.worn_icon_digi = 'modular_zubbers/icons/mob/clothing/modsuit/mod.dmi' + /datum/mod_theme/mining/New() variants += list( "imp" = list( diff --git a/modular_zubbers/icons/mob/clothing/modsuit/mod.dmi b/modular_zubbers/icons/mob/clothing/modsuit/mod.dmi new file mode 100644 index 0000000000000000000000000000000000000000..681d49eeb6a16d33bbafb3f7d3df2aac38e7edda GIT binary patch literal 1787 zcmVgkW2NGcm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