mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
moved battlenpc loading to db (still doesnt load for some reason)
This commit is contained in:
@@ -75,10 +75,6 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai.controllers
|
||||
if (owner.GetState() != SetActorStatePacket.MAIN_STATE_ACTIVE)
|
||||
owner.ChangeState(SetActorStatePacket.MAIN_STATE_ACTIVE);
|
||||
|
||||
|
||||
// todo: check speed/is able to move
|
||||
// todo: too far, path to player if mob, message if player
|
||||
// owner.ResetMoveSpeeds();
|
||||
owner.moveState = 2;
|
||||
lastActionTime = DateTime.Now;
|
||||
battleStartTime = lastActionTime;
|
||||
|
@@ -19,7 +19,7 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai.controllers
|
||||
|
||||
public override void Update(DateTime tick)
|
||||
{
|
||||
// todo: handle player stuff on tick
|
||||
// todo: handle pet stuff on tick
|
||||
}
|
||||
|
||||
public override void ChangeTarget(Character target)
|
||||
|
@@ -21,10 +21,8 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai.controllers
|
||||
|
||||
public override void Update(DateTime tick)
|
||||
{
|
||||
// todo: handle player stuff on tick
|
||||
if (owner.newMainState != owner.currentMainState)
|
||||
{
|
||||
//owner.updateFlags = ActorUpdateFlags.Combat;
|
||||
if (owner.newMainState == SetActorStatePacket.MAIN_STATE_ACTIVE)
|
||||
{
|
||||
owner.Engage();
|
||||
@@ -48,8 +46,6 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai.controllers
|
||||
var canEngage = this.owner.aiContainer.InternalEngage(target);
|
||||
if (canEngage)
|
||||
{
|
||||
// todo: check speed/is able to move
|
||||
// todo: too far, path to player if mob, message if player
|
||||
if (owner.statusEffects.HasStatusEffect(StatusEffectId.Sleep))
|
||||
{
|
||||
// That command cannot be performed.
|
||||
|
Reference in New Issue
Block a user