Change the asset keys

This commit is contained in:
2026-11-04 21:54:01 -03:00
parent ba4b2a8798
commit 4683b09e10
20 changed files with 39 additions and 39 deletions
+2 -2
View File
@@ -49,9 +49,9 @@ Deno.test("what the player wears is drawn on them too, with the atlas, in among
await test_game("mods");
const skin = { width: 64, height: 64, tex: "skin" } as unknown as Texture;
const atlas = { width: 256, height: 256, tex: "atlas" } as unknown as Texture;
AssetManager.instance.assets["bworld:textures"] = atlas as never;
AssetManager.instance.assets["cubi:textures"] = atlas as never;
// where each texture is in the atlas, none known: the renderer falls back to a spot of its own
AssetManager.instance.assets["bworld:textures_info"] = {} as never;
AssetManager.instance.assets["cubi:textures_info"] = {} as never;
const plain = gui_player_faces(skin, false, 0, 0);
const gloved = gui_player_faces(skin, false, 0, 0, [new ItemStack("artifacts:power_glove", 1)]);
assert(plain.every((face) => face.texture === skin));