mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 21:44:35 +02:00
Added property flags for actors. Cleaned up NPC constructor.
This commit is contained in:
parent
4ef62a16ec
commit
2939683183
6 changed files with 60 additions and 17 deletions
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue