mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
abilities now use correct animation id (<3 azia)
- did stuff with magicstate/attackstate - fixed status effect tick - added regen status (todo: actually populate the table and use that name instead of enum's) - added baseStats to char (todo: add bonuses and stuff on top of those, set charaWork values to the calculated ones + bonus)
This commit is contained in:
@@ -91,7 +91,7 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai
|
||||
{
|
||||
var dest = owner.FindRandomPoint(x, y, z, minRange, maxRange);
|
||||
// todo: this is dumb..
|
||||
distanceFromPoint = owner.meleeRange;
|
||||
distanceFromPoint = owner.GetAttackRange();
|
||||
PreparePath(dest.X, dest.Y, dest.Z);
|
||||
}
|
||||
|
||||
@@ -148,14 +148,14 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai
|
||||
{
|
||||
float speed = GetSpeed();
|
||||
|
||||
float stepDistance = speed;
|
||||
float stepDistance = speed / 3;
|
||||
float distanceTo = Utils.Distance(owner.positionX, owner.positionY, owner.positionZ, point.X, point.Y, point.Z);
|
||||
|
||||
owner.LookAt(point.X, point.Y);
|
||||
|
||||
if (distanceTo <= distanceFromPoint + stepDistance)
|
||||
{
|
||||
if (distanceFromPoint <= 1.5f)
|
||||
if (distanceFromPoint <= owner.GetAttackRange())
|
||||
{
|
||||
owner.QueuePositionUpdate(point);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user