Mercurial > sypikslang
diff gamelib/gamestate.py @ 135:8d1cf98e39b5
Reputation decays over time
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Thu, 10 May 2012 17:07:06 +0200 |
parents | 31ab0af26bb5 |
children | fb8037bc22f1 |
line wrap: on
line diff
--- a/gamelib/gamestate.py Thu May 10 17:06:48 2012 +0200 +++ b/gamelib/gamestate.py Thu May 10 17:07:06 2012 +0200 @@ -66,6 +66,9 @@ mission_results = [] for mission, equipment in self.cur_missions: mission_results.append(mission.attempt(equipment, self)) + if not self.cur_missions and self.reputation > 0: + # If you're not doing stuff, you're not in the news + self.reputation -= M_VALS[self.milestone] # Do the science self.points -= len(self.cur_allocation) if self.points < 0: