blacklist some animals from being targeted by sentience events

This commit is contained in:
Dip
2020-11-03 19:35:21 -03:00
parent c7bc366210
commit 93f79c20f6
+10
View File
@@ -1,3 +1,11 @@
/var/list/blacklisted_sentient_animals = typecacheof(list(
/mob/living/simple_animal/slime,
/mob/living/simple_animal/hostile/megafauna,
/mob/living/simple_animal/hostile/blob,
/mob/living/simple_animal/jacq,
/mob/living/simple_animal/holodeck_monkey,
/mob/living/simple_animal/astral))
/datum/round_event_control/sentience
name = "Random Human-level Intelligence"
typepath = /datum/round_event/ghost_role/sentience
@@ -33,6 +41,8 @@
var/turf/T = get_turf(L)
if(!T || !is_station_level(T.z))
continue
if(is_type_in_typecache(L, blacklisted_sentient_animals))
continue
if(!(L in GLOB.player_list) && !L.mind)
potential += L