Mercurial > sypikslang
changeset 15:8865ba0c9c38
Add cost to products
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Sun, 06 May 2012 17:04:10 +0200 |
parents | 9d61abb3cfaf |
children | af1bfeb648cb |
files | gamelib/products.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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