Mercurial > sypikslang
comparison gamelib/tests/repl_game.py @ 33:12c33aac7684
Gate certain missions by reputation.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sun, 06 May 2012 21:27:33 +0200 |
parents | 355aa7592492 |
children | 52913ba12988 |
comparison
equal
deleted
inserted
replaced
32:00aff02bc6fc | 33:12c33aac7684 |
---|---|
36 equipment.COST) | 36 equipment.COST) |
37 | 37 |
38 def display_missions(self): | 38 def display_missions(self): |
39 print "Missions:" | 39 print "Missions:" |
40 self.missions = [] | 40 self.missions = [] |
41 for mission in self.game.missions: | 41 for mission in self.game.get_available_missions(): |
42 self.missions.append(mission) | 42 self.missions.append(mission) |
43 print " %s. %s\n %s" % ( | 43 print " %s. %s\n %s" % ( |
44 len(self.missions), mission.NAME, mission.SHORT_DESCRIPTION) | 44 len(self.missions), mission.NAME, mission.SHORT_DESCRIPTION) |
45 | 45 |
46 def display_state(self): | 46 def display_state(self): |