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

What to do if Monster dies? #7

Closed
aknobloch opened this issue Oct 24, 2016 · 1 comment
Closed

What to do if Monster dies? #7

aknobloch opened this issue Oct 24, 2016 · 1 comment

Comments

@aknobloch
Copy link
Owner

Need to handle case if Monster dies in battle. Item gets dropped into room, but we need to figure out how to alert that back to the UI thread. Problem exists in DamageHandler.attackMonster().

@aknobloch
Copy link
Owner Author

If the monster dies, the attackMonster() returns a -1 to indicate that the monster has died. The CombatMenu then interprets this and displays a message as well as returning the user to the RoomMenu.

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

No branches or pull requests

1 participant