mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user