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
@@ -476,6 +476,22 @@
to_chat(src, span_filter_notice("You enable your \"[decal_to_toggle]\" extra apperances."))
update_icon()
/mob/living/silicon/robot/verb/flick_robot_animation()
set category = "Abilities.Settings"
set name = "Flick Animation"
if(!sprite_datum)
return
if(!LAZYLEN(sprite_datum.sprite_animations))
to_chat(src, span_warning("This module does not support animations."))
return
var/animation_to_play = tgui_input_list(src, "Please select which decal you want to flick", "Flick Decal", sprite_datum.sprite_animations)
if(!animation_to_play)
return
flick("[sprite_datum.sprite_icon_state]-[animation_to_play]", src)
/mob/living/silicon/robot/verb/toggle_glowy_stomach()
set category = "Abilities.Settings"
set name = "Toggle Glowing Stomach & Accents"
@@ -34,6 +34,7 @@
var/list/belly_light_list = list() // Support multiple sleepers with r/g light "sleeper"
var/list/belly_capacity_list = list() //Support multiple bellies with multiple sizes, default: "sleeper" = 1
var/list/sprite_decals = list() // Allow extra decals
var/list/sprite_animations = list() // Allows to flick animations
/// Determines if the borg has the proper flags to show an overlay.
/datum/robot_sprite/proc/sprite_flag_check(var/flag_to_check)