Tooltip api

This commit is contained in:
2026-11-05 23:06:37 -03:00
parent 9bc8fd992a
commit 34f001285d
15 changed files with 264 additions and 81 deletions
-3
View File
@@ -80,9 +80,6 @@ Deno.test("a full fluid container sells for its own value and its fluid's, round
// a jar of syrup is 2.5, and a flask of it is the flask's 2 and the syrup's 10
assertEquals([value(JAR), value(JAR, FULL)], [undefined, 3]);
assertEquals([value(FLASK), value(FLASK, FULL)], [2, 12]);
const jar = new ItemStack(JAR);
jar.data = FULL;
assertEquals(item_tooltip(jar).map((line) => line.text), ["Jar", "Syrup, 250 mB", "3"]);
});
Deno.test("exchange_held puts the result in the hand from a stack of one, and in the inventory from more", async () => {