Don't consider npc type for attitudes #660
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Special handling for npc type friend in
GameScript::personAttitude
is preventing a guru from having the default dialog lines. The "don't talk to me" Gurus have this dialog check:This is a problem for Baal Tyon who has npc type friend and therefore the attitude check returns false. Other gurus are npc type main and dialogs have no issues.
For testing:
goto vob gur_1210_baaltyon
In
GameScript::isFriendlyFire
there's the checkif(personAttitude(src, dst)==ATT_FRIENDLY)
. Don't know if this should check for npc type now instead of attitude considering that like for gururs npc type seems a bit arbitrary.