clintbellanger / flare

Free Libre Action Roleplaying Engine
http://clintbellanger.net/rpg/
GNU General Public License v3.0
166 stars 41 forks source link

Change the logic if a talker dialog should be shown or not depending #919

Closed hean01 closed 11 years ago

hean01 commented 11 years ago

on if NPC have anything to say or not, this is very neat if a NPC is both vendor and talker, if he has nothing to say you get into shop without a talker dialog.

This fixes a bug were the last dialog node 0 always is choosen to be displayed (chooseDialogNode()) if no other dialogs matches. Also if dialog index 0 have requires_not which evaluates false it will be chown anyway.