libram 0.11.12 → 0.11.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib.js +9 -5
- package/package.json +1 -1
package/dist/lib.js
CHANGED
|
@@ -348,10 +348,14 @@ export function getZapGroup(item) {
|
|
|
348
348
|
return Object.keys(getRelated(item, "zap")).map((i) => Item.get(i));
|
|
349
349
|
}
|
|
350
350
|
const banishSource = (banisher) => {
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
351
|
+
switch (banisher.toLowerCase()) {
|
|
352
|
+
case "saber force":
|
|
353
|
+
return $skill `Use the Force`;
|
|
354
|
+
case "nanorhino":
|
|
355
|
+
return $skill `Unleash Nanites`;
|
|
356
|
+
case "sea *dent":
|
|
357
|
+
return $skill `Sea *dent: Throw a Lightning Bolt`;
|
|
358
|
+
}
|
|
355
359
|
const item = toItem(banisher);
|
|
356
360
|
if ($items `none, training scroll: Snokebomb, tomayohawk-style reflex hammer`.includes(item)) {
|
|
357
361
|
return toSkill(banisher);
|
|
@@ -1294,7 +1298,7 @@ export function adventureTargetToWeightedMap(target) {
|
|
|
1294
1298
|
if (target instanceof Monster)
|
|
1295
1299
|
return new Map([[target, 1]]);
|
|
1296
1300
|
if (target instanceof Location) {
|
|
1297
|
-
return new Map(Object.entries(target).map(([monster, rate]) => tuple(toMonster(monster), rate)));
|
|
1301
|
+
return new Map(Object.entries(appearanceRates(target, true)).map(([monster, rate]) => tuple(toMonster(monster), rate)));
|
|
1298
1302
|
}
|
|
1299
1303
|
return target;
|
|
1300
1304
|
}
|