Skip to content

Commit

Permalink
[SEMI-MODULAR] Fixes taur clothing rendering and allows taur-specific…
Browse files Browse the repository at this point in the history
… sprites to be rendered (#1982) (#2963)

* gfrhj

* lets try this

* Update code/modules/mob/living/carbon/human/human_update_icons.dm

* Update code/modules/mob/living/carbon/human/human_update_icons.dm

---------

Co-authored-by: nikothedude <[email protected]>
Co-authored-by: SomeRandomOwl <[email protected]>
Co-authored-by: Bloop <[email protected]>
  • Loading branch information
4 people authored Apr 19, 2024
1 parent 10360d6 commit bca6f6c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
23 changes: 20 additions & 3 deletions code/modules/mob/living/carbon/human/human_update_icons.dm
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,20 @@ mutant_styles: The mutant style - taur bodytype, STYLE_TESHARI, etc. // NOVA EDI
mutant_styles = NONE, // NOVA EDIT ADD - Further outfit modification for outfits (added `mutant_styles` argument)
)

// NOVA EDIT ADDITION START - Taur-friendly uniforms and suits
var/using_taur_variant = FALSE
if (isnull(override_file))
if (mutant_styles & STYLE_TAUR_ALL)
if ((mutant_styles & STYLE_TAUR_SNAKE) && worn_icon_taur_snake)
override_file = worn_icon_taur_snake
using_taur_variant = TRUE
else if ((mutant_styles & STYLE_TAUR_PAW) && worn_icon_taur_paw)
override_file = worn_icon_taur_paw
using_taur_variant = TRUE
else if ((mutant_styles & STYLE_TAUR_HOOF) && worn_icon_taur_hoof)
override_file = worn_icon_taur_hoof
using_taur_variant = TRUE
// NOVA EDIT END
//Find a valid icon_state from variables+arguments
var/t_state
if(override_state)
Expand All @@ -841,9 +855,12 @@ mutant_styles: The mutant style - taur bodytype, STYLE_TESHARI, etc. // NOVA EDI
if(!standing)
standing = mutable_appearance(file2use, t_state, -layer2use)
// NOVA EDIT ADDITION START - Taur-friendly uniforms and suits
if(mutant_styles & STYLE_TAUR_ALL)
standing = wear_taur_version(standing.icon_state, standing.icon, layer2use, female_uniform, greyscale_colors)
// NOVA EDIT END
if (mutant_styles & STYLE_TAUR_ALL)
if (!using_taur_variant)
standing = wear_taur_version(standing.icon_state, standing.icon, layer2use, female_uniform, greyscale_colors)
else
standing.pixel_x -= 16 // it doesnt look right otherwise
// NOVA EDIT ADDITION END

//Get the overlays for this item when it's being worn
//eg: ammo counters, primed grenade flashes, etc.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
lefthand_file = 'modular_nova/modules/modular_items/lewd_items/icons/mob/lewd_inhands/lewd_inhand_left.dmi'
righthand_file = 'modular_nova/modules/modular_items/lewd_items/icons/mob/lewd_inhands/lewd_inhand_right.dmi'
body_parts_covered = CHEST | GROIN | LEGS | ARMS | HANDS
flags_inv = HIDEGLOVES | HIDESHOES | HIDEJUMPSUIT
flags_inv = HIDEGLOVES | HIDESHOES | HIDEJUMPSUIT | HIDETAIL
clothing_flags = DANGEROUS_OBJECT
equip_delay_self = NONE
strip_delay = 12 SECONDS
Expand Down Expand Up @@ -42,7 +42,7 @@
lefthand_file = 'modular_nova/modules/modular_items/lewd_items/icons/mob/lewd_inhands/lewd_inhand_left.dmi'
righthand_file = 'modular_nova/modules/modular_items/lewd_items/icons/mob/lewd_inhands/lewd_inhand_right.dmi'
body_parts_covered = CHEST | GROIN | LEGS | ARMS | HANDS
flags_inv = HIDEGLOVES | HIDESHOES | HIDEJUMPSUIT
flags_inv = HIDEGLOVES | HIDESHOES | HIDEJUMPSUIT | HIDETAIL
clothing_flags = DANGEROUS_OBJECT
equip_delay_self = NONE
strip_delay = 12 SECONDS
Expand Down

0 comments on commit bca6f6c

Please sign in to comment.