mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 20:43:10 +01:00
Devour Fixes Pt. 5 (#4782)
Fixes #4780. Fixes an issue where SA adult slimes were improperly considered organic mobs. Fixes an issue where viscerators, malf drones, and spiderbots were not considered synthetic mobs.
This commit is contained in:
@@ -1040,19 +1040,23 @@ proc/is_blind(A)
|
||||
// It's not worth adding a proc for every single one of these types.
|
||||
/mob/living/simple_animal/find_type()
|
||||
. = ..()
|
||||
if (is_type_in_typecache(src, global.mtl_synthetic))
|
||||
if (is_type_in_typecache(src, SSmob.mtl_synthetic))
|
||||
. |= TYPE_SYNTHETIC
|
||||
|
||||
if (is_type_in_typecache(src, global.mtl_weird))
|
||||
if (is_type_in_typecache(src, SSmob.mtl_weird))
|
||||
. |= TYPE_WEIRD
|
||||
|
||||
// If it's not TYPE_SYNTHETIC or TYPE_WEIRD, we can assume it's TYPE_ORGANIC.
|
||||
if (!(. & (TYPE_SYNTHETIC|TYPE_WEIRD)))
|
||||
if (is_type_in_typecache(src, SSmob.mtl_incorporeal))
|
||||
. |= TYPE_INCORPOREAL
|
||||
|
||||
// If it's not TYPE_SYNTHETIC, TYPE_WEIRD or TYPE_INCORPOREAL, we can assume it's TYPE_ORGANIC.
|
||||
if (!(. & (TYPE_SYNTHETIC|TYPE_WEIRD|TYPE_INCORPOREAL)))
|
||||
. |= TYPE_ORGANIC
|
||||
|
||||
if (is_type_in_typecache(src, global.mtl_humanoid))
|
||||
if (is_type_in_typecache(src, SSmob.mtl_humanoid))
|
||||
. |= TYPE_HUMANOID
|
||||
|
||||
|
||||
/mob/living/proc/get_vessel(create = FALSE)
|
||||
if (!create)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user