diff gamelib/gamestate.py @ 82:b0d97d51df51

Hook up simplistic equipment screen
author Neil Muller <drnlmuller@gmail.com>
date Wed, 09 May 2012 16:51:26 +0200
parents 59afe9f92383
children d93e1ea2bd0d
line wrap: on
line diff
--- a/gamelib/gamestate.py	Wed May 09 13:03:39 2012 +0200
+++ b/gamelib/gamestate.py	Wed May 09 16:51:26 2012 +0200
@@ -43,6 +43,12 @@
                      if x.SCIENCE_TYPE == 'schematic' and x.COST <= self.money]
         return available
 
+    def get_all_equipment(self):
+        """Return a list of equipment we could produce, regardless of cost"""
+        equipment = [x for x in self.lab.science
+                     if x.SCIENCE_TYPE == 'schematic']
+        return equipment
+
     def get_available_missions(self):
         """Return a list of missions we can feasibly attempt"""
         available = [x for x in self.missions if x.can_attempt(self)]