From 0d66593e14a479370cf16f9094417d2f6c028456 Mon Sep 17 00:00:00 2001 From: Arokha Sieyes Date: Sat, 24 Feb 2018 14:53:53 -0500 Subject: [PATCH] Remove unnecessary SA code They sleep in life() when nobody is around now --- code/modules/vore/eating/simple_animal_vr.dm | 32 -------------------- 1 file changed, 32 deletions(-) diff --git a/code/modules/vore/eating/simple_animal_vr.dm b/code/modules/vore/eating/simple_animal_vr.dm index 7aed86ab0e..8ffc08ad37 100644 --- a/code/modules/vore/eating/simple_animal_vr.dm +++ b/code/modules/vore/eating/simple_animal_vr.dm @@ -49,38 +49,6 @@ if(confirm == "Disable") B.digest_mode = "Hold" -/mob/living/simple_animal/proc/away_from_players() - //Reduces the amount of logging spam by only allowing procs to continue if they have a player nearby to listen. - //A return of 0 means that it is not away from players. - // This is a stripped down version of the proc get_mobs_and_objs_in_view_fast() - var/turf/T = get_turf(src) - if(!T) return 1 // If the turf doesn't exist, we don't want the proc running regardless - - // Quickly grabs the mob's hearing range to check from - var/list/hear = dview(world.view,T,INVISIBILITY_MAXIMUM) - var/list/hearturfs = list() - for(var/thing in hear) - if(istype(thing,/mob)) - hearturfs += get_turf(thing) - - //Check each player to see if they're inside said 'hearing range' turfs - for(var/mob in player_list) - if(!istype(mob, /mob)) - crash_with("There is a null or non-mob reference inside player_list.") - continue - if(get_turf(mob) in hearturfs) - return 0 - return 1 - - -mob/living/simple_animal/custom_emote() - if (away_from_players()) return - . = ..() - -mob/living/simple_animal/say() - if (away_from_players()) return - . = ..() - /mob/living/simple_animal/attackby(var/obj/item/O, var/mob/user) if (istype(O, /obj/item/weapon/newspaper) && !(ckey || (hostile && faction != user.faction)) && isturf(user.loc)) if (retaliate && prob(vore_pounce_chance/2)) // This is a gamble!