[MIRROR] Robot Sprite Unit test, Robot Upports, Robot Sprite Fixes [MDB IGNORE] [IDB IGNORE] (#10241)

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-03-02 00:18:02 +01:00
committed by GitHub
co-authored by Cameron Lennox Kashargul
parent 867d377c65
commit ede45bae10
132 changed files with 1505 additions and 1326 deletions
+11 -2
View File
@@ -144,7 +144,7 @@ SUBSYSTEM_DEF(robot_sprites)
// testing whitelist functionality ckey-...
if(findtext(icon, regex("ckey-")))
var/list/owner = splittext(icon, "-")
RS.whitelist_ckey = owner[3]
RS.whitelist_ckey = owner[2]
RS.is_whitelisted = TRUE
continue
// testing module types slots modules-...
@@ -153,6 +153,12 @@ SUBSYSTEM_DEF(robot_sprites)
jobs -= "modules"
RS.module_type = jobs
continue
// special overlays that also can be used as decals, as some names have - in them, seperated by _
if(findtext(icon, regex("^decals")))
var/list/decals = splittext(icon, "_")
decals -= "decals"
RS.sprite_decals |= decals
continue
// Check for all the possible overlays
if(findtext(icon, regex("-roll")))
RS.sprite_flags |= ROBOT_HAS_SPEED_SPRITE
@@ -191,7 +197,10 @@ SUBSYSTEM_DEF(robot_sprites)
RS.has_eye_light_sprites = TRUE
continue
if(findtext(icon, regex("-decals")))
RS.has_robotdecal_sprites = TRUE
RS.sprite_decals |= list("decals")
continue
if(findtext(icon, regex("-struggle")))
RS.has_vore_struggle_sprite = TRUE
continue
if(findtext(icon, regex("-openpanel_w")))
RS.has_custom_open_sprites = TRUE