Renames 'visible_atoms' and 'get_actual_viewers' procs to 'fov_view' and 'fov_viewers' (#12282)

* Renames 'visible_atoms' and 'get_actual_viewers' procs to 'fov_view' and 'fov_viewers'

* Ok, signals.
This commit is contained in:
Ghom
2020-05-18 02:04:15 +02:00
committed by GitHub
parent 335f5a37b9
commit 08280a853e
33 changed files with 49 additions and 49 deletions
@@ -194,7 +194,7 @@ Creating a chem with a low purity will make you permanently fall in love with so
if (M.ckey == creatorID && creatorName == M.real_name)//If the creator drinks it, they fall in love randomly. If someone else drinks it, the creator falls in love with them.
if(M.has_status_effect(STATUS_EFFECT_INLOVE))//Can't be enthralled when enthralled, so to speak.
return
var/list/seen = (M.visible_atoms(M.client?.view || world.view) - M) | viewers(M.client?.view || world.view, M)
var/list/seen = (M.fov_view(M.client?.view || world.view) - M) | viewers(M.client?.view || world.view, M)
for(var/victim in seen)
if(ishuman(victim))
var/mob/living/carbon/V = victim
@@ -213,7 +213,7 @@ Creating a chem with a low purity will make you permanently fall in love with so
var/mob/living/carbon/C = get_mob_by_key(creatorID)
if(M.has_status_effect(STATUS_EFFECT_INLOVE))
return
if(C.client && (M in C.visible_atoms(C.client.view)))
if(C.client && (M in C.fov_view(C.client.view)))
M.reagents.del_reagent(type)
FallInLove(C, M)
return
@@ -279,7 +279,7 @@ Creating a chem with a low purity will make you permanently fall in love with so
if(HAS_TRAIT(M, TRAIT_MINDSHIELD))
return ..()
if(!M.has_status_effect(STATUS_EFFECT_INLOVE))
var/list/seen = (M.visible_atoms(M.client?.view || world.view) - M) | viewers(M.client?.view || world.view, M)
var/list/seen = (M.fov_view(M.client?.view || world.view) - M) | viewers(M.client?.view || world.view, M)
for(var/victim in seen)
if((isanimal(victim)) || (!isliving(victim)))
seen -= victim
@@ -118,7 +118,7 @@
to_chat(M, "You find yourself unable to supress the desire to howl!")
M.emote("awoo")
if(prob(20))
var/list/seen = M.visible_atoms() - M //Sound and sight checkers
var/list/seen = M.fov_view() - M //Sound and sight checkers
for(var/victim in seen)
if(isanimal(victim) || !isliving(victim))
seen -= victim
@@ -139,7 +139,7 @@
to_chat(M, "You find yourself unable to supress the desire to howl!")
M.emote("awoo")
if(prob(5))
var/list/seen = M.visible_atoms() - M //Sound and sight checkers
var/list/seen = M.fov_view() - M //Sound and sight checkers
for(var/victim in seen)
if(isanimal(victim) || !isliving(victim))
seen -= victim