diff gamelib/buildings.py @ 199:696936621a93

Buildings can affect visual acuity.
author Jeremy Thurgood <firxen@gmail.com>
date Fri, 04 Sep 2009 19:49:30 +0000
parents 355eaae40b1f
children 636c3fafa32d
line wrap: on
line diff
--- a/gamelib/buildings.py	Fri Sep 04 19:34:01 2009 +0000
+++ b/gamelib/buildings.py	Fri Sep 04 19:49:30 2009 +0000
@@ -214,6 +214,8 @@
     MODIFY_GUN_RANGE = lambda s, x: (3*x)/2
     MODIFY_GUN_BASE_HIT = lambda s, x: x-5
     MODIFY_GUN_RANGE_PENALTY = lambda s, x: x-1
+    MODIFY_VISION_BONUS = lambda s, x: x+10
+    MODIFY_VISION_RANGE_PENALTY = lambda s, x: x-2
 
 def is_building(obj):
     """Return true if obj is a build class."""