mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
stubbed item use state (needs to actually look up the item and get its reuse stuff)
- added tables to load mobs from (probably dont import besides server_battlenpc_genus.sql) - added field to server_battle_commands for commands usable by both monsters and players (probably arent any really)
This commit is contained in:
@@ -44,6 +44,13 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai
|
||||
Miss = 0x08
|
||||
}
|
||||
|
||||
public enum BattleCommandValidUser : byte
|
||||
{
|
||||
All,
|
||||
Player,
|
||||
Monster
|
||||
}
|
||||
|
||||
class BattleCommand
|
||||
{
|
||||
public ushort id;
|
||||
@@ -75,6 +82,7 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai
|
||||
public int aoeRange;
|
||||
|
||||
public TargetFind targetFind;
|
||||
public BattleCommandValidUser validUser;
|
||||
|
||||
public BattleCommand(ushort id, string name)
|
||||
{
|
||||
@@ -100,12 +108,10 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai
|
||||
|
||||
public bool IsValidTarget(Character user, Character target)
|
||||
{
|
||||
// todo: set box length..
|
||||
targetFind = new TargetFind(user);
|
||||
|
||||
if (aoeType == TargetFindAOEType.Box)
|
||||
{
|
||||
// todo: read box width from sql
|
||||
targetFind.SetAOEBox(validTarget, aoeTarget, range, aoeRange);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user