Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added npcLooksLikeObject option in appraisal response #467

Closed
wants to merge 1 commit into from
Closed

Added npcLooksLikeObject option in appraisal response #467

wants to merge 1 commit into from

Conversation

OptimShi
Copy link
Collaborator

  • Added npcLooksLikeObject option in appraisal response (Note that no objects in ACE_World are currently set with this bool property)
  • Replaced some "unknown" bitfields with proper variable names in PlayerDescription.

@@ -144,7 +144,9 @@ public GameEventIdentifyObjectResponse(Session session, WorldObject obj)
flags |= IdentifyResponseFlags.StringStatsTable;
}

if (obj.ItemType == ItemType.Creature)
// if PropertyPool.NpcLooksLikeObject == true, do not treat as creature data
var npcLooksLikeObject = propertiesBool.FirstOrDefault(x => x.PropertyId == (uint)PropertyBool.NpcLooksLikeObject)?.PropertyValue;
Copy link
Contributor

@ddevec ddevec Jul 17, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you make this a property of WorldObject/AceObject, instead of reading it directly from propertiesBool? In general we don't want to mess with properties outside of those classes (with rare exceptions -- like when we have to wholesale send them to the client).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants