stubbed some more states

- stubbed some ability stuff
- moved packet things to loop instead of session only
- added mob roaming and aggro
- todo: fix target find/detection/pathfinding speed/line of sight/line aoe length etc
- todo: see "// todo:" in code
This commit is contained in:
Tahir Akhlaq
2017-08-02 23:06:11 +01:00
parent c7b87c0d89
commit 68657e1edc
33 changed files with 1459 additions and 444 deletions

View File

@@ -9,7 +9,7 @@ using System.Threading.Tasks;
namespace FFXIVClassic_Map_Server.actors.chara.ai
{
enum StatusEffectId
enum StatusEffectId : uint
{
RageofHalone = 221021,
@@ -324,7 +324,7 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai
}
[Flags]
enum StatusEffectFlags
enum StatusEffectFlags : uint
{
None = 0x00,
Silent = 0x01, // dont display effect loss message
@@ -338,6 +338,7 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai
LoseOnDamageTaken = 0x100, // effects removed when owner takes damage
PreventAction = 0x200, // effects which prevent actions such as sleep/paralyze/petrify
Stealth = 0x400, // sneak/invis
}
enum StatusEffectOverwrite : byte
@@ -370,6 +371,7 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai
public StatusEffect(Character owner, uint id, UInt64 magnitude, uint tickMs, uint durationMs, byte tier = 0)
{
this.owner = owner;
this.source = owner;
this.id = (StatusEffectId)id;
this.magnitude = magnitude;
this.tickMs = tickMs;
@@ -390,6 +392,7 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai
public StatusEffect(Character owner, StatusEffect effect)
{
this.owner = owner;
this.source = owner;
this.id = effect.id;
this.magnitude = effect.magnitude;
this.tickMs = effect.tickMs;