Uniform Runtime Fix (#10929)

Fixed some uniforms not working when rolling down or rolling up sleeves.
This commit is contained in:
Geeves
2021-01-10 12:54:20 +02:00
committed by GitHub
parent 37ba2e54da
commit 117fb99942
2 changed files with 10 additions and 4 deletions
+4 -4
View File
@@ -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."