Skip to content

Commit

Permalink
Фиксы отображения наплечного стафа
Browse files Browse the repository at this point in the history
Бэм
  • Loading branch information
AmShegars committed Feb 28, 2024
1 parent 9ac9c2f commit e72ff38
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions code/modules/mechs/mech_icon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ proc/get_mech_images(var/list/components = list(), var/overlay_layer = FLOAT_LAY
var/obj/item/mech_equipment/hardpoint_object = hardpoints[hardpoint]
if(hardpoint_object)
//
if(hardpoint == "left hand")
if(dir == WEST || dir == SOUTHWEST || dir == NORTHWEST)
if(hardpoint == "left hand" || hardpoint == "left shoulder")
if(dir == WEST || dir == SOUTHWEST || dir == NORTHWEST || dir == SOUTH)
hardpoint_object.mech_layer = MECH_GEAR_LAYER
else if(dir == EAST || dir == SOUTHEAST || dir == NORTHEAST)
hardpoint_object.mech_layer = MECH_BACK_LAYER
if(hardpoint == "right hand")
if(hardpoint == "right hand" || hardpoint == "right shoulder")
if(dir == WEST || dir == SOUTHWEST || dir == NORTHWEST)
hardpoint_object.mech_layer = MECH_BACK_LAYER
else if(dir == EAST || dir == SOUTHEAST || dir == NORTHEAST)
else if(dir == EAST || dir == SOUTHEAST || dir == NORTHEAST || dir == SOUTH)
hardpoint_object.mech_layer = MECH_GEAR_LAYER
//
var/use_icon_state = "[hardpoint_object.icon_state]_[hardpoint]"
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mechs/mech_movement.dm
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
if(exosuit.passengers_ammount > 0)
exosuit.update_passengers()
for(var/hardpoint in exosuit.hardpoints)
if(hardpoint == "left hand" || hardpoint == "right hand")
if(hardpoint == "left hand" || hardpoint == "right hand" || hardpoint == "left shoulder" || hardpoint == "right shoulder")
exosuit.update_icon()
exosuit.SetMoveCooldown(exosuit.legs.turn_delay)
//TURN
Expand Down

0 comments on commit e72ff38

Please sign in to comment.