Skip to content

Commit

Permalink
add some docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
jabdoa2 committed May 23, 2016
1 parent c05ac50 commit dccf984
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mpf/modes/bonus/code/bonus.py
@@ -1,9 +1,14 @@
"""Bonus mode for MPF."""
from mpf.core.mode import Mode


class Bonus(Mode):
"""Bonus mode for MPF.
Give a player bonus for his achievements. But only if the machine is not tilted."""

def __init__(self, machine, config, name, path):
"""Initialise bonus mode."""
super().__init__(machine, config, name, path)
self.bonus_score = None
self.settings = config.get("mode_settings")
Expand All @@ -12,6 +17,7 @@ def __init__(self, machine, config, name, path):
self.bonus_iterator = None

def mode_start(self, **kwargs):
"""Start the bonus mode."""
# TODO: reenable this when that attribute is back and working
# no bonus when machine is tilted
# if self.machine.game.tilted:
Expand Down

0 comments on commit dccf984

Please sign in to comment.