mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-14 00:23:29 +01:00
Vampire glare now fully affects people on the same tile as the vampire (#25016)
* Does the thing * Bleh * BLEH!
This commit is contained in:
@@ -222,9 +222,6 @@
|
||||
add_attack_logs(user, target, "(Vampire) Glared at")
|
||||
|
||||
/datum/spell/vampire/glare/proc/calculate_deviation(mob/victim, mob/attacker)
|
||||
// Are they on the same tile? We'll return partial deviation. This may be someone flashing while lying down
|
||||
if(victim.loc == attacker.loc)
|
||||
return DEVIATION_PARTIAL
|
||||
|
||||
// If the victim was looking at the attacker, this is the direction they'd have to be facing.
|
||||
var/attacker_to_victim = get_dir(attacker, victim)
|
||||
@@ -237,14 +234,15 @@
|
||||
// Attacker within 45 degrees of where the victim is facing.
|
||||
if(attacker_dir & attacker_to_victim)
|
||||
return DEVIATION_NONE
|
||||
|
||||
// Are they on the same tile? This is probably the victim crawling under the vampire, and looking down shouldn't be too tough.
|
||||
if(victim.loc == attacker.loc)
|
||||
return DEVIATION_NONE
|
||||
// # # #
|
||||
// - V - Attacker facing south
|
||||
// - - -
|
||||
// Victim at 135 or more degrees of where the victim is facing.
|
||||
if(attacker_dir & reverse_direction(attacker_to_victim))
|
||||
return DEVIATION_FULL
|
||||
|
||||
// - - -
|
||||
// # V # Attacker facing south
|
||||
// - - -
|
||||
|
||||
Reference in New Issue
Block a user