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