Giant chesplate
This commit is contained in:
@@ -18,14 +18,14 @@ async function setup() {
|
||||
|
||||
Deno.test("the power glove and feral claws go in the hands slot, and only work while worn", async () => {
|
||||
const t = await setup();
|
||||
// the hands slot is the only curios one, after the player's own menu's
|
||||
// the hands slot is the second curios one, after the body slot, which are after the player's own menu's
|
||||
t.send(1, { type: "click", menu: 0, slot: 0, button: 0, shift: true });
|
||||
t.game.tick();
|
||||
assertEquals(t.alice.attribute(ATTRIBUTES.attack_damage), 1 + 4);
|
||||
|
||||
// swapped for the claws by hand: the glove's damage goes, the claws' speed comes
|
||||
t.send(1, { type: "click", menu: 0, slot: 1, button: 0 });
|
||||
t.send(1, { type: "click", menu: 0, slot: PLAYER_MENU_EXTRA, button: 0 });
|
||||
t.send(1, { type: "click", menu: 0, slot: PLAYER_MENU_EXTRA + 1, button: 0 });
|
||||
t.game.tick();
|
||||
assertEquals(t.alice.attribute(ATTRIBUTES.attack_damage), 1);
|
||||
assertEquals(t.alice.attribute(ATTRIBUTES.attack_speed), 4 * 1.3);
|
||||
@@ -35,7 +35,7 @@ Deno.test("worn artifacts work again after rejoining, and say what they do", asy
|
||||
const t = await setup();
|
||||
t.send(1, { type: "click", menu: 0, slot: 0, button: 0, shift: true });
|
||||
const worn = t.take(1).findLast((m: Msg) => m.type === "container" && m.container === "extra").items;
|
||||
assertEquals(worn[0].lore, "When worn:\n+4 Attack Damage");
|
||||
assertEquals(worn[1].lore, "When worn:\n+4 Attack Damage");
|
||||
|
||||
t.game.on_disconnect(1);
|
||||
t.join(1, "alice");
|
||||
|
||||
Reference in New Issue
Block a user