mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
Fixes bugs related to picking shit from empty belly content lists.
-Makes digestion modes "finish" once everything unprotected is gone. -This also means your guts will no longer permagurgle fruitlessly while nothing but a shitty ID in there.
This commit is contained in:
@@ -25,6 +25,8 @@
|
|||||||
if(digest_mode == DM_DIGEST || digest_mode == DM_DIGEST_NUMB || digest_mode == DM_ITEMWEAK)
|
if(digest_mode == DM_DIGEST || digest_mode == DM_DIGEST_NUMB || digest_mode == DM_ITEMWEAK)
|
||||||
var/list/touchable_items = internal_contents - items_preserved
|
var/list/touchable_items = internal_contents - items_preserved
|
||||||
var/mob/living/silicon/robot/s_owner = null
|
var/mob/living/silicon/robot/s_owner = null
|
||||||
|
if(!length(touchable_items))
|
||||||
|
return
|
||||||
|
|
||||||
if(prob(50)) //Was SO OFTEN. AAAA.
|
if(prob(50)) //Was SO OFTEN. AAAA.
|
||||||
var/churnsound = pick(digestion_sounds)
|
var/churnsound = pick(digestion_sounds)
|
||||||
@@ -222,6 +224,8 @@
|
|||||||
if(digest_mode == DM_STRIPDIGEST) // Only gurgle the gear off your prey.
|
if(digest_mode == DM_STRIPDIGEST) // Only gurgle the gear off your prey.
|
||||||
var/list/touchable_items = internal_contents - items_preserved
|
var/list/touchable_items = internal_contents - items_preserved
|
||||||
var/mob/living/silicon/robot/s_owner = null
|
var/mob/living/silicon/robot/s_owner = null
|
||||||
|
if(!length(touchable_items))
|
||||||
|
return
|
||||||
|
|
||||||
if(prob(50))
|
if(prob(50))
|
||||||
var/churnsound = pick(digestion_sounds)
|
var/churnsound = pick(digestion_sounds)
|
||||||
|
|||||||
Reference in New Issue
Block a user