Skip to content

Commit f950d40

Browse files
committed
Maladaptive: fix all boss monsters becoming Abominants
(Of all the bugs I've introduced to my own code this year, this one might be the most exciting to experience in real usage.)
1 parent 148766c commit f950d40

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

drlm-maladaptive/ZSCRIPT.zs

+14
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@ class rlmal_EventHandler : StaticEventHandler
239239
name tn = 'RLCyberdemon';
240240
event.replacement = (class<Actor>)(tn);
241241
}
242+
243+
break;
242244
case RLMAL_CAT_NIGHTMARE:
243245
if (RandomPick[rlmal](0, 1, 2, 3) == 0)
244246
{
@@ -250,6 +252,8 @@ class rlmal_EventHandler : StaticEventHandler
250252
name tn = 'RLNightmareCyberdemon';
251253
event.replacement = (class<Actor>)(tn);
252254
}
255+
256+
break;
253257
case RLMAL_CAT_CYBERNETIC:
254258
if (RandomPick[rlmal](0, 1, 2, 3) == 0)
255259
{
@@ -261,11 +265,14 @@ class rlmal_EventHandler : StaticEventHandler
261265
name tn = 'RLCyberneticCyberdemon';
262266
event.replacement = (class<Actor>)(tn);
263267
}
268+
269+
break;
264270
case RLMAL_CAT_ARMAGGEDON:
265271
{
266272
// TODO: an armageddon cyberdemon may be added here eventually.
267273
name tn = 'RLAbominant';
268274
event.replacement = (class<Actor>)(tn);
275+
break;
269276
}
270277
}
271278

@@ -284,6 +291,8 @@ class rlmal_EventHandler : StaticEventHandler
284291
name tn = 'RLSpiderMastermind';
285292
event.replacement = (class<Actor>)(tn);
286293
}
294+
295+
break;
287296
case RLMAL_CAT_NIGHTMARE:
288297
if (RandomPick[rlmal](0, 1, 2, 3) == 0)
289298
{
@@ -295,6 +304,8 @@ class rlmal_EventHandler : StaticEventHandler
295304
name tn = 'RLNightmareSpiderMastermind';
296305
event.replacement = (class<Actor>)(tn);
297306
}
307+
308+
break;
298309
case RLMAL_CAT_CYBERNETIC:
299310
if (RandomPick[rlmal](0, 1, 2, 3) == 0)
300311
{
@@ -306,11 +317,14 @@ class rlmal_EventHandler : StaticEventHandler
306317
name tn = 'RLCyberneticSpiderMastermind';
307318
event.replacement = (class<Actor>)(tn);
308319
}
320+
321+
break;
309322
case RLMAL_CAT_ARMAGGEDON:
310323
{
311324
// TODO: an armageddon mastermind may be added here eventually.
312325
name tn = 'RLAbominant';
313326
event.replacement = (class<Actor>)(tn);
327+
break;
314328
}
315329
}
316330

0 commit comments

Comments
 (0)