Mercurial > sypikslang
diff gamelib/missions.py @ 94:245ef50de84d
Sanity-check research, schematic and mission classes. (Ironic, no?)
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Wed, 09 May 2012 21:22:10 +0200 |
parents | 56b0a1c4de35 |
children | 0f437e0584f7 |
line wrap: on
line diff
--- a/gamelib/missions.py Wed May 09 21:16:53 2012 +0200 +++ b/gamelib/missions.py Wed May 09 21:22:10 2012 +0200 @@ -60,6 +60,10 @@ def get_data(self, key): return self.data.get(key, None) + @classmethod + def sanity_check(cls): + pass + def can_attempt(self, state): """Can we currently attempt the mission""" if self.get_data('completed'): @@ -292,7 +296,6 @@ def attempt_with(self, categorised, state): rep = randint(5, 10) - print categorised if cat.MIND_CONTROL in categorised: result = ( "Your creative use of science has paid off nicely.")