Make the fishing loot table be generated from the fish items

This commit is contained in:
2026-10-11 11:40:44 -03:00
parent 5a59a63862
commit ab2b8e6545
9 changed files with 86 additions and 47 deletions
+5
View File
@@ -779,6 +779,7 @@ export class ModRuntime {
},
items: {
exists: (id) => EverythingRegistry.get("items", id) !== undefined,
ids: () => EverythingRegistry.entries("items").map(([id]) => id),
max_stack: (id) => {
const item = EverythingRegistry.get<ItemRegistry>("items", id);
if (!item) throw new Error(`unknown item ${id}`);
@@ -856,6 +857,10 @@ export class ModRuntime {
setup_only("loot modifiers");
this.loot.modify(mod, table, fn);
},
register_table: (id, table) => {
setup_only("loot tables");
this.loot.register_table(mod, id, table);
},
},
containers: {
create: (size) => {