Skip to content

Commit

Permalink
enemy units or buildings that may contain units will be considered th…
Browse files Browse the repository at this point in the history
…reatening

(new problem: the owner should consider the actual units inside)
  • Loading branch information
soundmud committed Jan 18, 2024
1 parent e7b928e commit be67889
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions soundrts/worldunit.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@ def get_observed_squares(self, strict=False):

@property
def menace(self):
if self.damage:
return self.damage
if self.transport_capacity:
return self.transport_capacity * PRECISION * 2
return self.damage

@property
Expand Down

0 comments on commit be67889

Please sign in to comment.