From: Simon Cross Date: Sat, 10 Sep 2016 11:04:17 +0000 (+0200) Subject: Rescale intensity. X-Git-Tag: tabakrolletjie-v1.0.0~124 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=e544ee168243127f9d6b6ef4379775dacc3e1079;p=tabakrolletjie.git Rescale intensity. --- diff --git a/tabakrolletjie/lights.py b/tabakrolletjie/lights.py index 1eaba7c..fef2b44 100644 --- a/tabakrolletjie/lights.py +++ b/tabakrolletjie/lights.py @@ -214,8 +214,8 @@ class BaseLight(object): if ncolour == 1: self._fitting_image = loader.load_image( - "48", self.FITTING_IMG, - transform=Multiply(colour=fitting_colours[0])) + "48", self.FITTING_IMG, + transform=Multiply(colour=fitting_colours[0])) else: if self._colour_mult_image is None: self._colour_mult_image = pygame.surface.Surface((48, 48)) @@ -224,8 +224,8 @@ class BaseLight(object): sector = loader.load_image( "48", "light_mask_%d_%d.png" % (ncolour, i + 1), transform=Multiply(colour=fitting_colours[i])) - self._colour_mult_image.blit(sector, (0,0), None, 0) - + self._colour_mult_image.blit(sector, (0, 0), None, 0) + self._fitting_image = loader.load_image( "48", self.FITTING_IMG, transform=MultiplyImage(image=self._colour_mult_image)) @@ -244,7 +244,7 @@ class BaseLight(object): return 0.0 area = math.pi * (self.ray_manager.max_radius ** 2) # radius area = area * (self.ray_manager.spread / (2 * math.pi)) # spread - return 5 * area * self.intensity + return 5 * area * self.intensity / 6400 # 80x80 unit area def base_damage(self): return 5 * self.intensity