renamed tables for consistency

- added magic.lua (todo: enumerate modifiers and stuff)
- moved aggro handling to session position update
- some cleanup
This commit is contained in:
Tahir Akhlaq 2017-08-29 01:15:12 +01:00
parent 6c74222b68
commit f4016e1a12
25 changed files with 539 additions and 442 deletions

View file

@ -78,8 +78,7 @@ namespace FFXIVClassic.Common
public static float GetAngle(float x, float z, float x2, float z2)
{
var angle = (float)(Math.Atan((z2 - z) / (x2 - x)) * - Math.PI);
return x > x2 ? angle + (float)Math.PI : angle;
return (float)(Math.Atan2((z2 - z), (x2 - x)));
}
public Vector3 NewHorizontalVector(float angle, float extents)