Progether / JAdventure

Java text adventure game.
https://progether.github.io/JAdventure/
GNU General Public License v3.0
309 stars 245 forks source link

when buy things with Guide,it will always loop.[BUG] #232

Closed caonh3cu closed 9 years ago

caonh3cu commented 9 years ago

the record(win8.1/dos):

[1] What is Syllia? [2] Where should I go? [3] Do you have anything to sell me that can help out? [4] Goodbye 1 A place of wonder and awe... Well it used to be at least, until these damn monst ers invaded. Now it's all about fighting the monsters. There's not fun any more. .. [1] Where should I go? [2] Do you have anything to sell me that can help out? [3] Goodbye 1 Hurry upstairs! This is no place for you and I'm sure your superiors will be won dering where you are. [1] Do you have anything to sell me that can help out? [2] Goodbye 1 Actually now that you mention it, I have collected some things in my journeys that may help you out. Here, look through them and see what you like [1] Buy from Guide [2] Sell to Guide [3] Exit 1 Guide's items: Guide's gold:100

You have 0 gold coins. What do you want to buy? h Either this item doesn't exist or this character does not own that item [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit exit [1] Buy from Guide [2] Sell to Guide [3] Exit 1 Guide's items: Guide's gold:100

You have 0 gold coins. What do you want to buy? no Either this item doesn't exist or this character does not own that item [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit

I don't know what '' means. [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit 2 tCAT's items: Guide's gold:100

You have 0 gold coins. What do you want to sell? s Either this item doesn't exist or this character does not own that item [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit h I don't know what 'h' means. [1] Buy from Guide [2] Sell to Guide [3] Exit help I don't know what 'help' means. [1] Buy from Guide [2] Sell to Guide [3] Exit 0 I don't know what '0' means. [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit 1 Guide's items: Guide's gold:100

You have 0 gold coins. What do you want to buy? milk You do not have enough money! [1] Buy from Guide [2] Sell to Guide [3] Exit 2 tCAT's items: Guide's gold:100

You have 0 gold coins. What do you want to sell? 3 Either this item doesn't exist or this character does not own that item [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide3

[2] Sell to Guide [3] Exit [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit 3 3 [1] Buy from Guide [2] Sell to Guide [3] Exit [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit 2 tCAT's items: Guide's gold:100

You have 0 gold coins. What do you want to sell? milk You have sold a milk for 5 gold coins. You now have 5 gold coins remaining. [1] Buy from Guide [2] Sell to Guide [3] Exit 1 Guide's items: Guide's gold:95

You have 5 gold coins. What do you want to buy? milk You have bought a milk for 5 gold coins. You now have 0 gold coins remaining. [1] Buy from Guide [2] Sell to Guide [3] Exit 3 [1] Buy from Guide [2] Sell to Guide [3] Exit

paddatrapper commented 9 years ago

The exit command was not being recognised. Fixed, thanks!