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:
Tahir Akhlaq
2017-09-05 05:05:25 +01:00
parent 4978813c27
commit 68a2d5f0b9
26 changed files with 615 additions and 179 deletions

View File

@@ -384,7 +384,7 @@ namespace FFXIVClassic_Map_Server.Actors
}
}
// todo: for zones override this to seach contentareas (assuming flag is passed)
// todo: for zones override this to search contentareas (assuming flag is passed)
public virtual List<T> GetAllActors<T>() where T : Actor
{
lock (mActorList)

View File

@@ -166,25 +166,19 @@ namespace FFXIVClassic_Map_Server.actors.area
public override void Update(DateTime tick)
{
// todo: again, this is retarded but debug stuff
base.Update(tick);
// todo: again, this is retarded but debug stuff
var diffTime = tick - lastUpdate;
// arbitrary cap
if (diffTime.TotalMilliseconds >= 33)
{
}
if (diffTime.TotalSeconds >= 10)
{
if (this.pathCalls > 0)
{
Program.Log.Error("Number of pathfinding calls {0} average time {1}", pathCalls, pathCallTime / pathCalls);
Program.Log.Debug("Number of pathfinding calls {0} average time {1}ms", pathCalls, (float)(pathCallTime / pathCalls));
}
// todo: this is stupid debug stuff that needs to fuck off
lastUpdate = tick;
}
}
}
}