Skip to content

Commit

Permalink
refactor: rename /drop_chances to /drop_rates
Browse files Browse the repository at this point in the history
  • Loading branch information
maduck committed Feb 23, 2021
1 parent a810b41 commit 7a041b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ async def edit_tower_floor(self, message, floor, scroll_ii, scroll_iii, scroll_i
e.add_field(name='Edit Tower (Floor)', value=edit_text)
await self.answer(message, e)

async def drop_chances(self, message, lang, **kwargs):
async def drop_rates(self, message, lang, **kwargs):
drop_chances = self.expander.get_drop_chances(lang)
e = self.views.render_drop_chances(drop_chances, lang)
await self.answer(message, e)
Expand Down
2 changes: 1 addition & 1 deletion command_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class OptionType(Enum):
'options': [STANDARD_OPTIONS['lang']],
},
{
'function': 'drop_chances',
'function': 'drop_rates',
'pattern': re.compile(DEFAULT_PATTERN + 'drop_(rate|chance)s?$', MATCH_OPTIONS),
'description': 'Chest drop chances',
'options': [STANDARD_OPTIONS['lang']],
Expand Down

0 comments on commit 7a041b7

Please sign in to comment.