mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 06:16:37 -04:00
small bug meant that there was a 67% chance NOT to capture defeated barbarian unit (#3450)
This commit is contained in:
parent
76e9f973c5
commit
099ee879cc
@ -190,7 +190,7 @@ object Battle {
|
||||
if (defender.isDefeated() && defender.getCivInfo().isBarbarian()
|
||||
&& attackedTile.improvement == Constants.barbarianEncampment
|
||||
&& attacker.getCivInfo().hasUnique("67% chance to earn 25 Gold and recruit a Barbarian unit from a conquered encampment")
|
||||
&& Random().nextDouble() > 0.67) {
|
||||
&& Random().nextDouble() < 0.67) {
|
||||
attacker.getCivInfo().placeUnitNearTile(attackedTile.position, defender.getName())
|
||||
attacker.getCivInfo().gold += 25
|
||||
attacker.getCivInfo().addNotification("A barbarian [${defender.getName()}] has joined us!", attackedTile.position, Color.RED)
|
||||
|
Loading…
x
Reference in New Issue
Block a user