Make the fishing loot table be generated from the fish items
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user