mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Probably fixes the bug with voresprite turbo updates (#6947)
This commit is contained in:
@@ -453,10 +453,12 @@
|
|||||||
// Called whenever an atom leaves this belly
|
// Called whenever an atom leaves this belly
|
||||||
/obj/belly/Exited(atom/movable/thing, atom/OldLoc)
|
/obj/belly/Exited(atom/movable/thing, atom/OldLoc)
|
||||||
. = ..()
|
. = ..()
|
||||||
thing.exit_belly(src) // CHOMPedit - atom movable proc, does nothing by default. Overridden in children for special behavior.
|
thing.exit_belly(src) // CHOMPEdit - atom movable proc, does nothing by default. Overridden in children for special behavior.
|
||||||
if(isbelly(thing.loc)) //CHOMPEdit
|
if(isbelly(thing.loc)) //CHOMPEdit Start
|
||||||
if(count_items_for_sprite) //CHOMPEdit
|
var/obj/belly/NB = thing.loc
|
||||||
owner.update_fullness() //CHOMPEdit
|
if(count_items_for_sprite && !NB.count_items_for_sprite)
|
||||||
|
owner.update_fullness()
|
||||||
|
return //CHOMPEdit End
|
||||||
if(isliving(thing) && !isbelly(thing.loc))
|
if(isliving(thing) && !isbelly(thing.loc))
|
||||||
owner.update_fullness() //CHOMPEdit - This is run whenever a belly's contents are changed.
|
owner.update_fullness() //CHOMPEdit - This is run whenever a belly's contents are changed.
|
||||||
var/mob/living/L = thing
|
var/mob/living/L = thing
|
||||||
|
|||||||
@@ -34,6 +34,8 @@
|
|||||||
updating_fullness = TRUE
|
updating_fullness = TRUE
|
||||||
spawn(2)
|
spawn(2)
|
||||||
updating_fullness = FALSE
|
updating_fullness = FALSE
|
||||||
|
src.update_fullness(TRUE)
|
||||||
|
return
|
||||||
var/list/new_fullness = list()
|
var/list/new_fullness = list()
|
||||||
vore_fullness = 0
|
vore_fullness = 0
|
||||||
for(var/belly_class in vore_icon_bellies)
|
for(var/belly_class in vore_icon_bellies)
|
||||||
@@ -56,6 +58,7 @@
|
|||||||
if(vore_fullness < 0)
|
if(vore_fullness < 0)
|
||||||
vore_fullness = 0
|
vore_fullness = 0
|
||||||
vore_fullness = min(vore_capacity, vore_fullness)
|
vore_fullness = min(vore_capacity, vore_fullness)
|
||||||
|
updating_fullness = FALSE
|
||||||
return new_fullness
|
return new_fullness
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -2,9 +2,6 @@
|
|||||||
if(!returning)
|
if(!returning)
|
||||||
if(updating_fullness)
|
if(updating_fullness)
|
||||||
return
|
return
|
||||||
updating_fullness = TRUE
|
|
||||||
spawn(2)
|
|
||||||
updating_fullness = FALSE
|
|
||||||
var/previous_stomach_fullness = vore_fullness_ex["stomach"]
|
var/previous_stomach_fullness = vore_fullness_ex["stomach"]
|
||||||
var/previous_taur_fullness = vore_fullness_ex["taur belly"]
|
var/previous_taur_fullness = vore_fullness_ex["taur belly"]
|
||||||
//update_vore_tail_sprite()
|
//update_vore_tail_sprite()
|
||||||
|
|||||||
Reference in New Issue
Block a user