Moved the data access layer to it's own file. Added a way to restart the bot fro…
…m chat. Updates to pankration.
Showing
4 changed files
with
1 additions
and
1 deletions
data.py
0 → 100644
This diff is collapsed.
Click to expand it.
No preview for this file type
hellsbot.py
100644 → 100755
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: | ... | ... |
-
Please register or sign in to post a comment