Mercurial > sypikslang
changeset 135:8d1cf98e39b5
Reputation decays over time
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Thu, 10 May 2012 17:07:06 +0200 |
parents | 208a79a49c26 |
children | 1a648d07d67e |
files | gamelib/gamestate.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
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: