comparison gamelib/lab.py @ 115:ef63532cac13

Rearrange SCIENCE a bit.
author Jeremy Thurgood <firxen@gmail.com>
date Wed, 09 May 2012 23:10:29 +0200
parents 182fce9f70b6
children 14917385a0fd
comparison
equal deleted inserted replaced
114:0cdd13622355 115:ef63532cac13
41 # We always get all starting schematics. 41 # We always get all starting schematics.
42 for schematic in self.new_schematics[:]: 42 for schematic in self.new_schematics[:]:
43 if schematic.STARTING_PRODUCT: 43 if schematic.STARTING_PRODUCT:
44 self._gain_science(schematic()) 44 self._gain_science(schematic())
45 45
46 # We get three random sciences with no prerequisites. 46 # We start with Physics, because it's not Philately.
47 new_science = [] 47 physics = research.Physics()
48 for _ in range(3): 48 self._gain_science(physics)
49 new_science = [physics]
50
51 # We get two other random sciences with no prerequisites.
52 for _ in range(2):
49 science = choice(self.find_new_research())() 53 science = choice(self.find_new_research())()
50 self._gain_science(science) 54 self._gain_science(science)
51 new_science.append(science) 55 new_science.append(science)
52 56
53 # Add a point to each of our sciences, and see if we get schematics. 57 # Add a point to each of our sciences, and see if we get schematics.