OK
This commit is contained in:
+4
-3
@@ -98,8 +98,9 @@ class Rat(Unit):
|
||||
self.game.units.pop(target_unit.id)
|
||||
|
||||
# Rat-specific behavior: spawn points
|
||||
self.game.spawn_unit(Point, death_position, value=score)
|
||||
|
||||
if score not in [None, 0]:
|
||||
self.game.spawn_unit(Point, death_position, value=score)
|
||||
|
||||
# Add blood stain directly to background
|
||||
self.game.add_blood_stain(death_position)
|
||||
|
||||
@@ -108,7 +109,7 @@ class Rat(Unit):
|
||||
direction = self.calculate_rat_direction()
|
||||
|
||||
sex = self.sex if self.age > AGE_THRESHOLD else "BABY"
|
||||
image = self.game.rat_assets[sex][direction]
|
||||
image = self.game.rat_assets_textures[sex][direction]
|
||||
image_size = self.game.render_engine.get_image_size(image)
|
||||
self.rat_image = image
|
||||
partial_x, partial_y = 0, 0
|
||||
|
||||
Reference in New Issue
Block a user