Rename engine to cubi
This commit is contained in:
@@ -31,15 +31,15 @@ async function setup() {
|
||||
format_version: 1,
|
||||
item: {
|
||||
id: JAR,
|
||||
texture: "engine:missing",
|
||||
texture: "cubi:missing",
|
||||
max_stack: 16,
|
||||
fluid_container: { capacity: 250, full_max_stack: 4 },
|
||||
layers: [{ texture: "engine:break_0", tint: "fluid" }, { texture: "engine:break_1", tint: "#ff0000" }],
|
||||
layers: [{ texture: "cubi:break_0", tint: "fluid" }, { texture: "cubi:break_1", tint: "#ff0000" }],
|
||||
},
|
||||
});
|
||||
write("items/flask.json", {
|
||||
format_version: 1,
|
||||
item: { id: FLASK, texture: "engine:missing", base_sell_value: 2, fluid_container: { capacity: 1000 } },
|
||||
item: { id: FLASK, texture: "cubi:missing", base_sell_value: 2, fluid_container: { capacity: 1000 } },
|
||||
});
|
||||
const t = await test_game(dir);
|
||||
Deno.removeSync(dir, { recursive: true });
|
||||
@@ -69,9 +69,9 @@ Deno.test("a layer tinted fluid is drawn in the fluid's color while there's one,
|
||||
stack.data = data;
|
||||
return item_layers(stack);
|
||||
};
|
||||
const red = { texture: "engine:break_1", color: [1, 0, 0] };
|
||||
const red = { texture: "cubi:break_1", color: [1, 0, 0] };
|
||||
assertEquals(jar(), [red]);
|
||||
assertEquals(jar(FULL), [{ texture: "engine:break_0", color: [0xa0 / 255, 0x52 / 255, 0x2d / 255] }, red]);
|
||||
assertEquals(jar(FULL), [{ texture: "cubi:break_0", color: [0xa0 / 255, 0x52 / 255, 0x2d / 255] }, red]);
|
||||
});
|
||||
|
||||
Deno.test("a full fluid container sells for its own value and its fluid's, rounded up", async () => {
|
||||
|
||||
Reference in New Issue
Block a user