771720d3 by Barry

Moved the data access layer to it's own file. Added a way to restart the bot fro…

…m chat. Updates to pankration.
1 parent 775d749e
This diff is collapsed. Click to expand it.
No preview for this file type
This diff is collapsed. Click to expand it.
...@@ -119,7 +119,7 @@ class Pankration: ...@@ -119,7 +119,7 @@ class Pankration:
119 return monster_list 119 return monster_list
120 120
121 def hunt_monster(self, zone): 121 def hunt_monster(self, zone):
122 if random.randint(1, 100) > FIND_PERCENTAGE: 122 if random.randint(1, 100) < FIND_PERCENTAGE:
123 return HuntResponse(HuntResponse.SUCCESS, "You captured the monster!", 123 return HuntResponse(HuntResponse.SUCCESS, "You captured the monster!",
124 random.choice(self.get_monsters(zone))) 124 random.choice(self.get_monsters(zone)))
125 else: 125 else:
......