adds animation flicks to robots (#17381)

This commit is contained in:
Kashargul
2025-03-20 14:49:50 -04:00
committed by GitHub
parent cf15e681fc
commit 6fafd033e3
4 changed files with 27 additions and 0 deletions
@@ -157,6 +157,12 @@ SUBSYSTEM_DEF(robot_sprites)
decals -= "decals"
RS.sprite_decals |= decals
continue
// special overlays that also can be used as animations, as some names have - in them, seperated by _
if(findtext(icon, regex("^animations")))
var/list/animations = splittext(icon, "_")
animations -= "animations"
RS.sprite_animations |= animations
continue
// Check for all the possible overlays
if(findtext(icon, regex("-roll")))
RS.sprite_flags |= ROBOT_HAS_SPEED_SPRITE