arnoao1 / hazel-and-friends-fork

project-24-s1-hazel-and-friends fork created by Aston
3 stars 0 forks source link

Implementation of viewing inventory, item checker and item based endings #32

Closed batcsg1 closed 3 months ago

batcsg1 commented 3 months ago

Inventory can be viewed by typing 'v' in methods "Task1" and "Right" Within the exit method when a user chooses rifle, key, water, vest or the pistol the choice is passed on as parameter to a static bool called "ItemChecker". The "ItemChecker" bool will be set to true when the specified is in the inventory, and false when it isn't.

When the user selects rifle, water or vest (if either of them are in the inventory), the user will be shown a message and then die. But if either items aren't in the inventory, the ending will pop up asking the user if they want to play again.

If the user selects the key or the pistol (and if either item is in the inventory), the user will also be shown a message but NOT die and the ending will pop up as usual, asking the user if they want to play again.