From 9e8961aa6c777a687b9248994fea34b6c9ad2dca Mon Sep 17 00:00:00 2001 From: nwjgit Date: Mon, 26 Aug 2024 00:23:48 -0500 Subject: [PATCH] fix loot tables --- src/simulation/monsters/low/t-z/ZombiePirate.ts | 8 +++++--- src/simulation/openables/ZombiePiratesLocker.ts | 6 ++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/simulation/monsters/low/t-z/ZombiePirate.ts b/src/simulation/monsters/low/t-z/ZombiePirate.ts index 270f0061f..ebb7d2799 100644 --- a/src/simulation/monsters/low/t-z/ZombiePirate.ts +++ b/src/simulation/monsters/low/t-z/ZombiePirate.ts @@ -4,6 +4,11 @@ import SimpleMonster from "../../../../structures/SimpleMonster"; export const ZombiePirateTable = new LootTable() .every("Bones") + /* Pre-roll */ + .oneIn(2, new LootTable()) // 'Nothing' drop + .oneIn(24, "Zombie pirate key") + .oneIn(20_000, "Teleport anchoring scroll") + /* Runes */ .add("Blood rune", [30, 60], 4) .add("Death rune", [30, 90], 4) @@ -31,13 +36,10 @@ export const ZombiePirateTable = new LootTable() .add("Blighted super restore(4)", [1, 3], 12) /* Other */ - .add(new LootTable(), 1, 181) // 'Nothing' drop - .add("Zombie pirate key", 1, 15) .add("Coins", [1_000, 8_000], 12) .add("Cannonball", [20, 100], 12) .add("Gold ore", [5, 15], 12) .add("Adamant seeds", [5, 10], 8) - .oneIn(20_000, "Teleport anchoring scroll") /* Tertiary */ .tertiary(5000, "Zombie champion scroll"); diff --git a/src/simulation/openables/ZombiePiratesLocker.ts b/src/simulation/openables/ZombiePiratesLocker.ts index bd3eeea14..32c44dcbc 100644 --- a/src/simulation/openables/ZombiePiratesLocker.ts +++ b/src/simulation/openables/ZombiePiratesLocker.ts @@ -2,6 +2,9 @@ import LootTable from "../../structures/LootTable"; import SimpleOpenable from "../../structures/SimpleOpenable"; const ZombiePirateLocker = new LootTable() + /* Pre-roll */ + .oneIn(275, "Teleport anchoring scroll") + /* Runes */ .add("Blood rune", [60, 120], 4) .add("Death rune", [60, 180], 4) @@ -32,8 +35,7 @@ const ZombiePirateLocker = new LootTable() .add("Coins", [2_000, 16_000], 12) .add("Cannonball", [40, 200], 12) .add("Gold ore", [10, 30], 12) - .add("Adamant seeds", [10, 20], 8) - .oneIn(275, "Teleport anchoring scroll"); + .add("Adamant seeds", [10, 20], 8); export default new SimpleOpenable({ id: 29_449,