Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a decorator to handle modifiable values #6

Open
mrroach opened this issue Feb 2, 2014 · 1 comment
Open

Create a decorator to handle modifiable values #6

mrroach opened this issue Feb 2, 2014 · 1 comment

Comments

@mrroach
Copy link
Owner

mrroach commented Feb 2, 2014

program strength, cost, and other stuff are all currently repeating a pretty simple pattern that should be wrappable in a decorator. Something like:

class Program
  @property
  @Modifiable(modifiers.ProgramStrengthModifier)
  def strength(self):
    return self.STRENGTH
@mrroach
Copy link
Owner Author

mrroach commented Feb 4, 2014

decorator created but not yet universally applied (@modifiers.modifiable)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant