mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
Recycler ignores incorporeal mobs (#90977)
## About The Pull Request Incorporeal mobs do not interact with the recycler. ## Why It's Good For The Game Makes sense. Also you can run back and forth into one as revenant to make splat noises repeatedly. Now that is fixed. ## Changelog 🆑 Rhials fix: Revenants can no longer be fake-eaten by the recycler. /🆑
This commit is contained in:
@@ -196,11 +196,17 @@
|
||||
if(living_detected) // First, check if we have any living beings detected.
|
||||
if(obj_flags & EMAGGED)
|
||||
for(var/CRUNCH in crunchy_nom) // Eat them and keep going because we don't care about safety.
|
||||
if(isliving(CRUNCH)) // MMIs and brains will get eaten like normal items
|
||||
if(!is_operational) //we ran out of power after recycling a large amount to living stuff, time to stop
|
||||
break
|
||||
crush_living(CRUNCH)
|
||||
use_energy(active_power_usage)
|
||||
if(!isliving(CRUNCH)) // MMIs and brains will get eaten like normal items
|
||||
continue
|
||||
|
||||
var/mob/living/living_mob = CRUNCH
|
||||
if(living_mob.incorporeal_move)
|
||||
continue
|
||||
|
||||
if(!is_operational) //we ran out of power after recycling a large amount to living stuff, time to stop
|
||||
break
|
||||
crush_living(CRUNCH)
|
||||
use_energy(active_power_usage)
|
||||
else // Stop processing right now without eating anything.
|
||||
emergency_stop()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user