We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eac5d44 + c87a824 commit 17dae66Copy full SHA for 17dae66
godot/src/combat/Rewards.gd
@@ -24,7 +24,7 @@ func _add_reward(battler: Battler):
24
# Appends dictionaries with the form { 'item': Item.tres, 'amount': amount } of dropped items to the drops array.
25
experience_earned += battler.drops.experience
26
for drop in battler.drops.get_drops():
27
- if drop.chance - randf() > drop.chance:
+ if drop.chance < 1 and randf() >= drop.chance:
28
continue
29
var amount: int = (
30
1
0 commit comments