Mercurial > sypikslang
diff gamelib/missions.py @ 33:12c33aac7684
Gate certain missions by reputation.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sun, 06 May 2012 21:27:33 +0200 |
parents | 00aff02bc6fc |
children | 20ed2843adec |
line wrap: on
line diff
--- a/gamelib/missions.py Sun May 06 20:57:04 2012 +0200 +++ b/gamelib/missions.py Sun May 06 21:27:33 2012 +0200 @@ -35,6 +35,7 @@ NAME = "Generic Mission" SHORT_DESCRIPTION = None LONG_DESCRIPTION = None + MINIMUM_REPUTATION = None available = True def __init__(self, init_data=None): @@ -73,6 +74,7 @@ " successfully threatening the largest country in the world" \ " are great, but the risks are significant. Without " \ "some serious firepower, the chances of success are small." + MINIMUM_REPUTATION = 100 def __init__(self, init_data=None): # Track prior approaches to this mission @@ -145,6 +147,7 @@ SHORT_DESCRIPTION = "Monuments to other people? Intolerable" LONG_DESCRIPTION = "While potentially expensive, destroying" \ " major monument is a good way to secure your reputation." + MINIMUM_REPUTATION = 20 def attempt(self, equipment, state): if not self.available: