mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 12:35:33 +01:00
[MIRROR] Protects blob structures against bolts of animation [MDB IGNORE] (#9364)
* Protects blob structures against bolt of animation (#62690) * Protects blob structures against bolts of animation Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
This commit is contained in:
@@ -98,7 +98,8 @@
|
||||
O.forceMove(C)
|
||||
..()
|
||||
|
||||
GLOBAL_LIST_INIT(protected_objects, list(/obj/structure/table, /obj/structure/cable, /obj/structure/window))
|
||||
/// Mimics can't be made out of these objects
|
||||
GLOBAL_LIST_INIT(mimic_blacklist, list(/obj/structure/table, /obj/structure/cable, /obj/structure/window, /obj/structure/blob))
|
||||
|
||||
/mob/living/simple_animal/hostile/mimic/copy
|
||||
health = 100
|
||||
@@ -142,7 +143,7 @@ GLOBAL_LIST_INIT(protected_objects, list(/obj/structure/table, /obj/structure/ca
|
||||
faction |= "[REF(owner)]"
|
||||
|
||||
/mob/living/simple_animal/hostile/mimic/copy/proc/CheckObject(obj/O)
|
||||
if((isitem(O) || isstructure(O)) && !is_type_in_list(O, GLOB.protected_objects))
|
||||
if((isitem(O) || isstructure(O)) && !is_type_in_list(O, GLOB.mimic_blacklist))
|
||||
return TRUE
|
||||
return FALSE
|
||||
|
||||
|
||||
@@ -165,7 +165,7 @@
|
||||
..()
|
||||
|
||||
/atom/proc/animate_atom_living(mob/living/owner = null)
|
||||
if((isitem(src) || isstructure(src)) && !is_type_in_list(src, GLOB.protected_objects))
|
||||
if((isitem(src) || isstructure(src)) && !is_type_in_list(src, GLOB.mimic_blacklist))
|
||||
if(istype(src, /obj/structure/statue/petrified))
|
||||
var/obj/structure/statue/petrified/P = src
|
||||
if(P.petrified_mob)
|
||||
|
||||
Reference in New Issue
Block a user