Add ActionLanded to make some checks cleaner.

Split physical and magic text id dictionaries.

Add calculation for resists.
This commit is contained in:
Yogurt 2019-05-27 16:52:56 -07:00
parent d0dca62a91
commit f6104812a5
3 changed files with 76 additions and 43 deletions

View file

@ -195,9 +195,12 @@ namespace FFXIVClassic_Map_Server.packets.send.actor.battle
Evade = 1,
Parry = 2,
Block = 3,
Resist = 4,
Hit = 5,
Crit = 6
SingleResist = 4,
DoubleResist = 5,
TripleResist = 6,
FullResist = 7,
Hit = 8,
Crit = 9
}
//Type of action
@ -387,5 +390,11 @@ namespace FFXIVClassic_Map_Server.packets.send.actor.battle
{
return (ushort)hitType;
}
//Whether this action didn't miss, and wasn't evaded or resisted
public bool ActionLanded()
{
return hitType > HitType.Evade && hitType != HitType.SingleResist && hitType != HitType.DoubleResist && hitType != HitType.FullResist;
}
}
}