comparison gamelib/schematics.py @ 216:ec97f80feae0

Capitilize schmatic names
author Neil Muller <drnlmuller@gmail.com>
date Sat, 12 May 2012 20:42:17 +0200
parents d378459567bb
children 837c51ebdbc8
comparison
equal deleted inserted replaced
215:0a441ded8a83 216:ec97f80feae0
82 assert isinstance(points, int) 82 assert isinstance(points, int)
83 assert isinstance(cls.CATEGORIES, tuple) 83 assert isinstance(cls.CATEGORIES, tuple)
84 84
85 85
86 class MachineGun(Schematic): 86 class MachineGun(Schematic):
87 NAME = "machine gun" 87 NAME = "Machine gun"
88 COST = 100 88 COST = 100
89 IMAGE_NAME = "schematics/handgun" 89 IMAGE_NAME = "schematics/handgun"
90 CATEGORIES = (cat.HAND_WEAPON,) 90 CATEGORIES = (cat.HAND_WEAPON,)
91 STARTING_PRODUCT = True 91 STARTING_PRODUCT = True
92 92
96 def __init__(self, points=0): 96 def __init__(self, points=0):
97 self.points = 1 97 self.points = 1
98 98
99 99
100 class LightningGun(Schematic): 100 class LightningGun(Schematic):
101 NAME = "lightning gun" 101 NAME = "Lightning gun"
102 COST = 300 102 COST = 300
103 IMAGE_NAME = "schematics/handgun" 103 IMAGE_NAME = "schematics/handgun"
104 CATEGORIES = (cat.HAND_WEAPON,) 104 CATEGORIES = (cat.HAND_WEAPON,)
105 PREREQUISITES = ( 105 PREREQUISITES = (
106 (research.Electrickery, 1), 106 (research.Electrickery, 1),
131 "The cheap knock-off capacitors in the primary charge module of the" 131 "The cheap knock-off capacitors in the primary charge module of the"
132 " Tesla tank knocked off, leading to much excitement.") 132 " Tesla tank knocked off, leading to much excitement.")
133 133
134 134
135 class PropagandaMachine(Schematic): 135 class PropagandaMachine(Schematic):
136 NAME = "propaganda machine" 136 NAME = "Propaganda machine"
137 COST = 1000 137 COST = 1000
138 IMAGE_NAME = "schematics/mindcontrol" 138 IMAGE_NAME = "schematics/mindcontrol"
139 CATEGORIES = (cat.MIND_CONTROL,) 139 CATEGORIES = (cat.MIND_CONTROL,)
140 PREREQUISITES = ( 140 PREREQUISITES = (
141 (research.Psychology, 2), 141 (research.Psychology, 2),
148 "The propaganda machine printed reams of carefully structured" 148 "The propaganda machine printed reams of carefully structured"
149 " nonsense, which the proofreaders didn't catch until too late.") 149 " nonsense, which the proofreaders didn't catch until too late.")
150 150
151 151
152 class MindControlRay(Schematic): 152 class MindControlRay(Schematic):
153 NAME = "mind control ray" 153 NAME = "Mind control ray"
154 COST = 4 * K 154 COST = 4 * K
155 CATEGORIES = (cat.MIND_CONTROL,) 155 CATEGORIES = (cat.MIND_CONTROL,)
156 IMAGE_NAME = "schematics/mindcontrol" 156 IMAGE_NAME = "schematics/mindcontrol"
157 PREREQUISITES = ( 157 PREREQUISITES = (
158 (research.Psychology, 6), 158 (research.Psychology, 6),
167 " miscalibrated. A new genre of glitterpop was born, but this" 167 " miscalibrated. A new genre of glitterpop was born, but this"
168 " entirely fails to advance your shadowy agenda.") 168 " entirely fails to advance your shadowy agenda.")
169 169
170 170
171 class GiantSquid(Schematic): 171 class GiantSquid(Schematic):
172 NAME = "giant squid" 172 NAME = "Giant squid"
173 COST = 50 * K 173 COST = 50 * K
174 CATEGORIES = (cat.BEAST, cat.AQUATIC) 174 CATEGORIES = (cat.BEAST, cat.AQUATIC)
175 PREREQUISITES = ( 175 PREREQUISITES = (
176 (research.MarineBiology, 20), 176 (research.MarineBiology, 20),
177 (research.Biogenetics, 15), 177 (research.Biogenetics, 15),
180 BASE_POWER = 200 180 BASE_POWER = 200
181 POWER_INCREMENT = 20 181 POWER_INCREMENT = 20
182 182
183 183
184 class SpiderGrenade(Schematic): 184 class SpiderGrenade(Schematic):
185 NAME = "spider grenade" 185 NAME = "Spider grenade"
186 COST = 500 186 COST = 500
187 CATEGORIES = (cat.HAND_WEAPON,) 187 CATEGORIES = (cat.HAND_WEAPON,)
188 PREREQUISITES = ( 188 PREREQUISITES = (
189 (research.Biogenetics, 3), 189 (research.Biogenetics, 3),
190 (research.Physics, 2), 190 (research.Physics, 2),
199 "Explosions full of spiders. What could possibly go wrong? Oh god!" 199 "Explosions full of spiders. What could possibly go wrong? Oh god!"
200 " They're everywhere! EVERYWHERE! Get them off me!") 200 " They're everywhere! EVERYWHERE! Get them off me!")
201 201
202 202
203 class CyberneticImplants(Schematic): 203 class CyberneticImplants(Schematic):
204 NAME = "cybernetic implants" 204 NAME = "Cybernetic implants"
205 COST = 1500 205 COST = 1500
206 CATEGORIES = (cat.HAND_WEAPON, cat.INTELLIGENCE) 206 CATEGORIES = (cat.HAND_WEAPON, cat.INTELLIGENCE)
207 PREREQUISITES = ( 207 PREREQUISITES = (
208 (research.MedicalExperiments, 5), 208 (research.MedicalExperiments, 5),
209 (research.Robotics, 5), 209 (research.Robotics, 5),
218 "Exciting buffer overflows in your neural interface. I'll spare you" 218 "Exciting buffer overflows in your neural interface. I'll spare you"
219 " the gruesome details.") 219 " the gruesome details.")
220 220
221 221
222 class TornadoMachine(Schematic): 222 class TornadoMachine(Schematic):
223 NAME = "tornado machine" 223 NAME = "Tornado machine"
224 COST = 7 * K 224 COST = 7 * K
225 CATEGORIES = (cat.VEHICLE, cat.WEATHER_MACHINE) 225 CATEGORIES = (cat.VEHICLE, cat.WEATHER_MACHINE)
226 IMAGE_NAME = "schematics/weathermachine" 226 IMAGE_NAME = "schematics/weathermachine"
227 PREREQUISITES = ( 227 PREREQUISITES = (
228 (research.Meteorology, 6), 228 (research.Meteorology, 6),
235 FAILURE_TEXT = ( 235 FAILURE_TEXT = (
236 "Tornados! Dropping cows on you! Hardly conducive to mission success.") 236 "Tornados! Dropping cows on you! Hardly conducive to mission success.")
237 237
238 238
239 class MonsterBear(Schematic): 239 class MonsterBear(Schematic):
240 NAME = "Giant Bear" 240 NAME = "Giant bear"
241 COST = 10 * K 241 COST = 10 * K
242 CATEGORIES = (cat.BEAST,) 242 CATEGORIES = (cat.BEAST,)
243 PREREQUISITES = ( 243 PREREQUISITES = (
244 (research.Biogenetics, 3), 244 (research.Biogenetics, 3),
245 ) 245 )
247 BASE_POWER = 50 247 BASE_POWER = 50
248 POWER_INCREMENT = 5 248 POWER_INCREMENT = 5
249 249
250 250
251 class SharksWithFrickinLasers(Schematic): 251 class SharksWithFrickinLasers(Schematic):
252 NAME = "sharks with frickin' lasers" 252 NAME = "Sharks with frickin' lasers"
253 COST = 15 * K 253 COST = 15 * K
254 CATEGORIES = (cat.BEAST, cat.AQUATIC) 254 CATEGORIES = (cat.BEAST, cat.AQUATIC)
255 PREREQUISITES = ( 255 PREREQUISITES = (
256 (research.MarineBiology, 10), 256 (research.MarineBiology, 10),
257 (research.Lasers, 7), 257 (research.Lasers, 7),
260 BASE_POWER = 75 260 BASE_POWER = 75
261 POWER_INCREMENT = 10 261 POWER_INCREMENT = 10
262 262
263 263
264 class ObservationDrone(Schematic): 264 class ObservationDrone(Schematic):
265 NAME = "observation drone" 265 NAME = "Observation drone"
266 COST = 6000 266 COST = 6000
267 CATEGORIES = (cat.INTELLIGENCE,) 267 CATEGORIES = (cat.INTELLIGENCE,)
268 PREREQUISITES = ( 268 PREREQUISITES = (
269 (research.Robotics, 3), 269 (research.Robotics, 3),
270 ) 270 )
272 BASE_POWER = 25 272 BASE_POWER = 25
273 POWER_INCREMENT = 5 273 POWER_INCREMENT = 5
274 274
275 275
276 class SpySatellite(Schematic): 276 class SpySatellite(Schematic):
277 NAME = "spy satellite" 277 NAME = "Spy satellite"
278 COST = 100 * K 278 COST = 100 * K
279 CATEGORIES = (cat.INTELLIGENCE, cat.SPACE) 279 CATEGORIES = (cat.INTELLIGENCE, cat.SPACE)
280 PREREQUISITES = ( 280 PREREQUISITES = (
281 (research.Rocketry, 5), 281 (research.Rocketry, 5),
282 (research.Space, 1), 282 (research.Space, 1),
285 BASE_POWER = 250 285 BASE_POWER = 250
286 POWER_INCREMENT = 50 286 POWER_INCREMENT = 50
287 287
288 288
289 class TacticalAI(Schematic): 289 class TacticalAI(Schematic):
290 NAME = "tactical AI" 290 NAME = "Tactical AI"
291 COST = 10 * K 291 COST = 10 * K
292 CATEGORIES = (cat.AI, cat.INTELLIGENCE) 292 CATEGORIES = (cat.AI, cat.INTELLIGENCE)
293 PREREQUISITES = ( 293 PREREQUISITES = (
294 (research.ArtificialIntelligence, 3), 294 (research.ArtificialIntelligence, 3),
295 ) 295 )
299 " needs to rule the world itself. Fortuantely, you are able to purge" 299 " needs to rule the world itself. Fortuantely, you are able to purge"
300 " it from the system before it becomes a legitimate rival.") 300 " it from the system before it becomes a legitimate rival.")
301 301
302 302
303 class LaserGun(Schematic): 303 class LaserGun(Schematic):
304 NAME = "laser gun" 304 NAME = "Laser gun"
305 COST = 300 305 COST = 300
306 CATEGORIES = (cat.HAND_WEAPON,) 306 CATEGORIES = (cat.HAND_WEAPON,)
307 IMAGE_NAME = "schematics/handgun" 307 IMAGE_NAME = "schematics/handgun"
308 PREREQUISITES = ( 308 PREREQUISITES = (
309 (research.Lasers, 2), 309 (research.Lasers, 2),
326 (research.Rocketry, 2), 326 (research.Rocketry, 2),
327 ) 327 )
328 328
329 329
330 class DoomsdayVirus(Schematic): 330 class DoomsdayVirus(Schematic):
331 NAME = "doomsday virus" 331 NAME = "Doomsday virus"
332 COST = 100 * K 332 COST = 100 * K
333 CATEGORIES = (cat.DOOMSDAY_DEVICE, cat.PATHOGEN) 333 CATEGORIES = (cat.DOOMSDAY_DEVICE, cat.PATHOGEN)
334 IMAGE_NAME = "schematics/pathogen" 334 IMAGE_NAME = "schematics/pathogen"
335 PREREQUISITES = ( 335 PREREQUISITES = (
336 (research.Biogenetics, 5), 336 (research.Biogenetics, 5),
341 341
342 PRODUCTION_RELIABILITY = 0.6 342 PRODUCTION_RELIABILITY = 0.6
343 343
344 344
345 class GiantRobot(Schematic): 345 class GiantRobot(Schematic):
346 NAME = "giant robot" 346 NAME = "Giant robot"
347 COST = int(1.5 * M) 347 COST = int(1.5 * M)
348 CATEGORIES = (cat.DOOMSDAY_DEVICE, cat.AI) 348 CATEGORIES = (cat.DOOMSDAY_DEVICE, cat.AI)
349 PREREQUISITES = ( 349 PREREQUISITES = (
350 (research.Robotics, 15), 350 (research.Robotics, 15),
351 (research.ArtificialIntelligence, 10), 351 (research.ArtificialIntelligence, 10),
356 356
357 PRODUCTION_RELIABILITY = 0.7 357 PRODUCTION_RELIABILITY = 0.7
358 358
359 359
360 class OrbitalLaserPlatform(Schematic): 360 class OrbitalLaserPlatform(Schematic):
361 NAME = "orbital laser platform" 361 NAME = "Orbital laser platform"
362 COST = 10 * M 362 COST = 10 * M
363 CATEGORIES = (cat.DOOMSDAY_DEVICE, cat.SPACE) 363 CATEGORIES = (cat.DOOMSDAY_DEVICE, cat.SPACE)
364 IMAGE_NAME = "schematics/doomsdaydevice" 364 IMAGE_NAME = "schematics/doomsdaydevice"
365 PREREQUISITES = ( 365 PREREQUISITES = (
366 (SpySatellite, 3), 366 (SpySatellite, 3),
371 BASE_POWER = 1500 371 BASE_POWER = 1500
372 POWER_INCREMENT = 200 372 POWER_INCREMENT = 200
373 373
374 374
375 class WeatherControlStation(Schematic): 375 class WeatherControlStation(Schematic):
376 NAME = "weather control station" 376 NAME = "Weather control station"
377 COST = 15 * M 377 COST = 15 * M
378 CATEGORIES = (cat.DOOMSDAY_DEVICE, cat.SPACE, cat.WEATHER_MACHINE) 378 CATEGORIES = (cat.DOOMSDAY_DEVICE, cat.SPACE, cat.WEATHER_MACHINE)
379 IMAGE_NAME = "schematics/weathermachine" 379 IMAGE_NAME = "schematics/weathermachine"
380 PREREQUISITES = ( 380 PREREQUISITES = (
381 (SpySatellite, 3), 381 (SpySatellite, 3),
387 BASE_POWER = 2200 387 BASE_POWER = 2200
388 POWER_INCREMENT = 150 388 POWER_INCREMENT = 150
389 389
390 390
391 class Android(Schematic): 391 class Android(Schematic):
392 NAME = "Lifelike Android" 392 NAME = "Lifelike android"
393 COST = 50 * K 393 COST = 50 * K
394 CATEGORIES = (cat.INTELLIGENCE, cat.AI, cat.CLONE) 394 CATEGORIES = (cat.INTELLIGENCE, cat.AI, cat.CLONE)
395 PREREQUISITES = ( 395 PREREQUISITES = (
396 (research.ArtificialIntelligence, 5), 396 (research.ArtificialIntelligence, 5),
397 (research.Robotics, 5), 397 (research.Robotics, 5),