mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-24 13:47:33 +01:00
oversights with borg sprite refactor (#6638)
This commit is contained in:
@@ -538,6 +538,7 @@
|
||||
var/choice = tgui_input_list(M, "Choose your drink!", "Drink Choice", options)
|
||||
if(src && choice && !M.stat && in_range(M,src))
|
||||
icontype = options[choice]
|
||||
selected_icon = module_sprites[icontype][SKIN_ICON_STATE] //CHOMPEdit - sprite selection refactor
|
||||
var/active_sound = 'sound/effects/bubbles.ogg'
|
||||
playsound(src.loc, "[active_sound]", 100, 0, 4)
|
||||
to_chat(M, "<span class='filter_notice'>Your Tank now displays [choice]. Drink up and enjoy!</span>")
|
||||
|
||||
@@ -266,8 +266,16 @@
|
||||
icontype = "Custom"
|
||||
else
|
||||
icontype = module_sprites[1]
|
||||
selected_icon = module_sprites[icontype][SKIN_ICON_STATE]//CHOMPEdit - Spriteselector
|
||||
icon_state = module_sprites[icontype][SKIN_ICON_STATE]//CHOMPEdit - Spriteselector
|
||||
selected_icon = module_sprites[icontype][SKIN_ICON_STATE]//CHOMPEdit Start- Spriteselector
|
||||
icon_state = module_sprites[icontype][SKIN_ICON_STATE]
|
||||
if (isnull(module_sprites[icontype][SKIN_OFFSET]))
|
||||
pixel_x = 0
|
||||
old_x = 0
|
||||
default_pixel_x = 0
|
||||
else
|
||||
pixel_x = module_sprites[icontype][SKIN_OFFSET]
|
||||
old_x = module_sprites[icontype][SKIN_OFFSET]
|
||||
default_pixel_x = module_sprites[icontype][SKIN_OFFSET]//CHOMPEdit End
|
||||
updateicon()
|
||||
return module_sprites
|
||||
|
||||
@@ -1078,8 +1086,16 @@
|
||||
else
|
||||
transform_with_anim() //VOREStation edit end: sprite animation
|
||||
|
||||
selected_icon = module_sprites[icontype][SKIN_ICON_STATE]//CHOMPEdit - Spriteselector
|
||||
icon_state = module_sprites[icontype][SKIN_ICON_STATE]//CHOMPEdit - Spriteselector
|
||||
selected_icon = module_sprites[icontype][SKIN_ICON_STATE]//CHOMPEdit Start - Spriteselector
|
||||
icon_state = module_sprites[icontype][SKIN_ICON_STATE]
|
||||
if (isnull(module_sprites[icontype][SKIN_OFFSET]))
|
||||
pixel_x = 0
|
||||
old_x = 0
|
||||
default_pixel_x = 0
|
||||
else
|
||||
pixel_x = module_sprites[icontype][SKIN_OFFSET]
|
||||
old_x = module_sprites[icontype][SKIN_OFFSET]
|
||||
default_pixel_x = module_sprites[icontype][SKIN_OFFSET]//CHOMPEdit End
|
||||
updateicon()
|
||||
|
||||
if (module_sprites.len > 1 && triesleft >= 1 && client)
|
||||
|
||||
@@ -73,14 +73,6 @@
|
||||
|
||||
/mob/living/silicon/robot/proc/vr_sprite_check()
|
||||
icon = module_sprites[icontype][SKIN_ICON]
|
||||
if (isnull(module_sprites[icontype][SKIN_OFFSET]))
|
||||
pixel_x = 0
|
||||
old_x = 0
|
||||
default_pixel_x = 0
|
||||
else
|
||||
pixel_x = module_sprites[icontype][SKIN_OFFSET]
|
||||
old_x = module_sprites[icontype][SKIN_OFFSET]
|
||||
default_pixel_x = module_sprites[icontype][SKIN_OFFSET]
|
||||
|
||||
if (isnull(module_sprites[icontype][SKIN_HEIGHT]))
|
||||
vis_height = 32
|
||||
|
||||
Reference in New Issue
Block a user