mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-28 07:20:09 +01:00
Uniform Runtime Fix (#10929)
Fixed some uniforms not working when rolling down or rolling up sleeves.
This commit is contained in:
@@ -1014,13 +1014,13 @@
|
||||
rolled_down = !rolled_down
|
||||
if(rolled_down)
|
||||
body_parts_covered &= LOWER_TORSO|LEGS|FEET
|
||||
if(contained_sprite)
|
||||
if(contained_sprite || !LAZYLEN(item_state_slots))
|
||||
item_state = "[initial(item_state)]_d"
|
||||
else
|
||||
item_state_slots[slot_w_uniform_str] = "[worn_state]_d"
|
||||
else
|
||||
body_parts_covered = initial(body_parts_covered)
|
||||
if(contained_sprite)
|
||||
if(contained_sprite || !LAZYLEN(item_state_slots))
|
||||
item_state = initial(item_state)
|
||||
else
|
||||
item_state_slots[slot_w_uniform_str] = "[worn_state]"
|
||||
@@ -1044,14 +1044,14 @@
|
||||
rolled_sleeves = !rolled_sleeves
|
||||
if(rolled_sleeves)
|
||||
body_parts_covered &= ~(ARMS|HANDS)
|
||||
if(contained_sprite)
|
||||
if(contained_sprite || !LAZYLEN(item_state_slots))
|
||||
item_state = "[initial(item_state)]_r"
|
||||
else
|
||||
item_state_slots[slot_w_uniform_str] = "[worn_state]_r"
|
||||
to_chat(usr, SPAN_NOTICE("You roll up your [src]'s sleeves."))
|
||||
else
|
||||
body_parts_covered = initial(body_parts_covered)
|
||||
if(contained_sprite)
|
||||
if(contained_sprite || !LAZYLEN(item_state_slots))
|
||||
item_state = initial(item_state)
|
||||
else
|
||||
item_state_slots[slot_w_uniform_str] = "[worn_state]"
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
author: Geeves
|
||||
|
||||
delete-after: True
|
||||
|
||||
changes:
|
||||
- bugfix: "Fixed some uniforms not working when rolling down or rolling up sleeves."
|
||||
Reference in New Issue
Block a user