1 parent 3258452 commit f283a36Copy full SHA for f283a36
1 file changed
src/core/execution/AttackExecution.ts
@@ -13,6 +13,7 @@ import {
13
} from "../game/Game";
14
import { TileRef } from "../game/GameMap";
15
import { PseudoRandom } from "../PseudoRandom";
16
+import { assertNever } from "../Util";
17
import { FlatBinaryHeap } from "./utils/FlatBinaryHeap"; // adjust path if needed
18
19
const malusForRetreat = 25;
@@ -168,6 +169,8 @@ export class AttackExecution implements Execution {
168
169
case Difficulty.Impossible:
170
relationChange = -100;
171
break;
172
+ default:
173
+ assertNever(difficulty);
174
}
175
this.target.updateRelation(this._owner, relationChange);
176
0 commit comments