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

Notify player when using non-existent item #41

Merged
merged 1 commit into from
Oct 22, 2017

Conversation

Shanmus4
Copy link
Contributor

When a player attempts to use an item that is not in their inventory, currently the game doesn't do anything at all.

Instead, there should be a message displayed that the item is not in the player's inventory, then call Sleep(SLEEP_MS) and redraw the screen.

When a player attempts to use an item that is not in their inventory, currently the game doesn't do anything at all.

Instead, there should be a message displayed that the item is not in the player's inventory, then call Sleep(SLEEP_MS) and redraw the screen.
@tagniam
Copy link
Owner

tagniam commented Oct 20, 2017

Hi @Shanmus4, could you also implement this when a player tries to use an item during a battle?

@mario51y1
Copy link
Contributor

Hi! Now when you try it too in battle it will display the error message. I've made that the Attack() function returns -2, and in function Battle I save the value that Attack() returns, so the enemy will only attack if the value is not -2

@tagniam
Copy link
Owner

tagniam commented Oct 20, 2017

Hey @mario51y1, make a pull request and I'll merge both yours and @Shanmus4's PR if it all works

@tagniam
Copy link
Owner

tagniam commented Oct 22, 2017

I'll merge this now since @mario51y1 is making good progress with his PR. Thanks @Shanmus4

@tagniam tagniam merged commit 3df555d into tagniam:master Oct 22, 2017
@tagniam tagniam mentioned this pull request Apr 6, 2018
Closed
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

Successfully merging this pull request may close these issues.

3 participants