mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 06:29:23 +01:00
Fixes akula hair layers (#3301)
## About The Pull Request  pixel_x and pixel_y needed to be converted to pixel_w and pixel_z If you encounter any other issues like this, this is how you should be able to fix them ## Changelog 🆑 fix: Akula hair now layers correctly /🆑
This commit is contained in:
@@ -124,8 +124,8 @@
|
||||
hair_overlay.pixel_y = hair_sprite_accessory.y_offset
|
||||
// SKYRAT EDIT ADDITION - Species hair offset
|
||||
if(LAZYFIND(owner?.dna?.species?.offset_features, OFFSET_HAIR))
|
||||
hair_overlay.pixel_x += owner.dna.species.offset_features[OFFSET_HAIR][INDEX_X]
|
||||
hair_overlay.pixel_y += owner.dna.species.offset_features[OFFSET_HAIR][INDEX_Y]
|
||||
hair_overlay.pixel_w += owner.dna.species.offset_features[OFFSET_HAIR][INDEX_X]
|
||||
hair_overlay.pixel_z += owner.dna.species.offset_features[OFFSET_HAIR][INDEX_Y]
|
||||
// SKYRAT EDIT ADDITION END
|
||||
//Emissive blocker
|
||||
if(blocks_emissive != EMISSIVE_BLOCK_NONE)
|
||||
@@ -141,8 +141,8 @@
|
||||
hair_gradient_overlay.pixel_y = hair_sprite_accessory.y_offset
|
||||
// SKYRAT EDIT ADDITION - Species hair offset
|
||||
if(LAZYFIND(owner?.dna?.species?.offset_features, OFFSET_HAIR))
|
||||
hair_gradient_overlay.pixel_x += owner.dna.species.offset_features[OFFSET_HAIR][INDEX_X]
|
||||
hair_gradient_overlay.pixel_y += owner.dna.species.offset_features[OFFSET_HAIR][INDEX_Y]
|
||||
hair_gradient_overlay.pixel_w += owner.dna.species.offset_features[OFFSET_HAIR][INDEX_X]
|
||||
hair_gradient_overlay.pixel_z += owner.dna.species.offset_features[OFFSET_HAIR][INDEX_Y]
|
||||
// SKYRAT EDIT ADDITION END
|
||||
. += hair_gradient_overlay
|
||||
|
||||
|
||||
Reference in New Issue
Block a user