Add cooking pot from farmer's delight !
This commit is contained in:
@@ -1431,6 +1431,9 @@ function death_message(name: string, cause: string) {
|
||||
return `${name} fell out of the world`;
|
||||
case "starve":
|
||||
return `${name} starved to death`;
|
||||
// standing on something hot, like a lit stove
|
||||
case "hot_floor":
|
||||
return `${name} discovered the floor was lava`;
|
||||
default:
|
||||
return `${name} died`;
|
||||
}
|
||||
|
||||
@@ -467,6 +467,11 @@ export class ModRuntime {
|
||||
if (!item) throw new Error(`unknown item ${id}`);
|
||||
return item.max_stack ?? 64;
|
||||
},
|
||||
tool: (id) => {
|
||||
const item = EverythingRegistry.get<ItemRegistry>("items", id);
|
||||
if (!item) throw new Error(`unknown item ${id}`);
|
||||
return item.tool_type;
|
||||
},
|
||||
},
|
||||
recipes: {
|
||||
furnace_result: (input) => {
|
||||
@@ -482,6 +487,7 @@ export class ModRuntime {
|
||||
);
|
||||
return recipe && { result: recipe.result, material_count: recipe.material.count };
|
||||
},
|
||||
list: (type) => structuredClone(game().recipes.by_type.get(type) ?? []),
|
||||
},
|
||||
containers: {
|
||||
create: (size) => {
|
||||
|
||||
Reference in New Issue
Block a user