mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-23 13:18:09 +01:00
[MIRROR] Moving robot module and icon selection to tgui (#9492)
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Heroman3003
Kashargul
parent
3e9b15570f
commit
7f2914d757
@@ -34,6 +34,26 @@
|
||||
else
|
||||
to_chat(src, span_filter_notice("Insufficient water reserves."))
|
||||
|
||||
/mob/living/silicon/robot/proc/update_multibelly()
|
||||
vore_icon_bellies = list() //Clear any belly options that may not exist now
|
||||
vore_capacity_ex = list()
|
||||
vore_fullness_ex = list()
|
||||
if(sprite_datum.belly_capacity_list.len)
|
||||
for(var/belly in sprite_datum.belly_capacity_list) //vore icons list only contains a list of names with no associated data
|
||||
vore_capacity_ex[belly] = sprite_datum.belly_capacity_list[belly] //I dont know why but this wasnt working when I just
|
||||
vore_fullness_ex[belly] = 0 //set the lists equal to the old lists
|
||||
vore_icon_bellies += belly
|
||||
for(var/belly in sprite_datum.belly_light_list)
|
||||
vore_light_states[belly] = 0
|
||||
else if(sprite_datum.has_vore_belly_sprites)
|
||||
vore_capacity_ex = list("sleeper" = 1)
|
||||
vore_fullness_ex = list("sleeper" = 0)
|
||||
vore_icon_bellies = list("sleeper")
|
||||
if(sprite_datum.has_sleeper_light_indicator)
|
||||
vore_light_states = list("sleeepr" = 0)
|
||||
sprite_datum.belly_light_list = list("sleeper")
|
||||
update_fullness() //Set how full the newly defined bellies are, if they're already full
|
||||
|
||||
/mob/living/silicon/robot/proc/reset_belly_lights(var/b_class)
|
||||
if(sprite_datum.belly_light_list.len && sprite_datum.belly_light_list.Find(b_class))
|
||||
vore_light_states[b_class] = 0
|
||||
|
||||
Reference in New Issue
Block a user