# HG changeset patch # User Neil Muller # Date 1336316650 -7200 # Node ID 8865ba0c9c38258fe4cb2bab3b2abb9f23207a7e # Parent 9d61abb3cfaf9334091d69e427c7fe5125ee818f Add cost to products diff -r 9d61abb3cfaf -r 8865ba0c9c38 gamelib/products.py --- a/gamelib/products.py Sun May 06 15:58:03 2012 +0200 +++ b/gamelib/products.py Sun May 06 17:04:10 2012 +0200 @@ -5,6 +5,7 @@ NAME = None PREREQUISITES = () ACQUISITION_CHANCE = 0.8 + COST = 0 def __init__(self): self.points = 0 @@ -15,6 +16,7 @@ class MachineGun(Product): NAME = "Machine gun" + COST = 100 class TeslaGun(Product): @@ -22,6 +24,7 @@ PREREQUISITES = ( (research.Tesla, 1), ) + COST = 300 class DoomsdayVirus(Product): @@ -29,3 +32,4 @@ PREREQUISITES = ( (research.Biogenetics, 5), ) + COST = 1000