Make flight death chance not impossible.

The odds of random.random() returning exactly 1.0 are basically nil, and
that was the only way a non-solo flight could lose this.
This commit is contained in:
Dan Albert
2022-03-07 19:35:19 -08:00
parent 005090fbcd
commit 895a4eb0dc
2 changed files with 2 additions and 2 deletions

View File

@@ -92,7 +92,7 @@ class AirCombat(JoinableCombat):
for flight in winner:
assert isinstance(flight.state, InCombat)
if random.random() / flight.count >= 0.5:
if random.random() >= 0.5:
flight.kill(results, events)
else:
flight.state.exit_combat()