Added property flags for actors. Cleaned up NPC constructor.

This commit is contained in:
Filip Maj 2016-07-24 10:21:45 -04:00
parent 4ef62a16ec
commit 2939683183
6 changed files with 60 additions and 17 deletions

View file

@ -198,6 +198,7 @@ namespace FFXIVClassic_Map_Server
id,
classPath,
displayNameId,
propertyFlags,
eventConditions
FROM gamedata_actor_class
WHERE classPath <> ''
@ -213,13 +214,15 @@ namespace FFXIVClassic_Map_Server
string classPath = reader.GetString("classPath");
uint nameId = reader.GetUInt32("displayNameId");
string eventConditions = null;
if (!reader.IsDBNull(3))
uint propertyFlags = reader.GetUInt32("propertyFlags");
if (!reader.IsDBNull(4))
eventConditions = reader.GetString("eventConditions");
else
eventConditions = "{}";
ActorClass actorClass = new ActorClass(id, classPath, nameId, eventConditions);
ActorClass actorClass = new ActorClass(id, classPath, nameId, propertyFlags, eventConditions);
actorClasses.Add(id, actorClass);
count++;
}