Skip to content

Commit c024bce

Browse files
authored
Merge pull request #5856 from psikomonkie/issue-5828-dropship-kill-credits
Issue 5828: Kill Credits for killed but not totally destroyed turrets & dropships
2 parents ceeb1a7 + ccf90bc commit c024bce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

MekHQ/src/mekhq/campaign/ResolveScenarioTracker.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ public void processGame() {
370370
} else if (wreck.getOwner().isEnemyOf(client.getLocalPlayer())) {
371371
// MekHQ doesn't support gun emplacements, so we don't want the player salvaging them
372372
if (wreck instanceof GunEmplacement) {
373+
appendKillCredit(wreck);
373374
continue;
374375
}
375376

@@ -381,7 +382,7 @@ public void processGame() {
381382
dropShipBonus = dropShipBonus.plus(
382383
generateNewTestUnit(wreck).getSellValue().multipliedBy(dropShipBonusPercentage));
383384
}
384-
385+
appendKillCredit(wreck);
385386
continue;
386387
}
387388

0 commit comments

Comments
 (0)