We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6e30b3 commit 5a5956fCopy full SHA for 5a5956f
db/attack.py
@@ -167,13 +167,15 @@ def perform(self):
167
),
168
169
) # Modifier decreases if winner level > loser level, increases otherwise
170
- self.gold_penalty = int(
171
- min(
172
- (
173
- loser.gold
174
- * (self.GOLD_PENALTY_FACTOR_BASE * self.gold_penalty_modifier)
175
- ),
176
- self.GOLD_PENALTY_MAX,
+ self.gold_penalty = abs(
+ int(
+ min(
+ (
+ loser.gold
+ * (self.GOLD_PENALTY_FACTOR_BASE * self.gold_penalty_modifier)
+ ),
177
+ self.GOLD_PENALTY_MAX,
178
+ )
179
)
180
181
0 commit comments