From c23c87b56fd568956d263bb8b8c5d26fbd8d01ee Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Fri, 17 Jul 2026 19:54:21 -0400 Subject: feat: add test for mob aggro --- internal/game/sys_energy_test.go | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'internal/game/sys_energy_test.go') diff --git a/internal/game/sys_energy_test.go b/internal/game/sys_energy_test.go index a1a5dab..72ae223 100644 --- a/internal/game/sys_energy_test.go +++ b/internal/game/sys_energy_test.go @@ -120,24 +120,6 @@ func TestMoveTicks(t *testing.T) { } } -func TestGracefulCountCapeExcludesFullSet(t *testing.T) { - // Cape of Agility shares the back slot — 5 graceful pieces + cape = 5, - // not 6, so no full-set bonus. - p := player.New("h") - p.Equipment[item.SlotBack] = capeOfAgilityID - p.Equipment[item.SlotHead] = "graceful_hat" - p.Equipment[item.SlotTorso] = "graceful_torso" - p.Equipment[item.SlotLegs] = "graceful_legs" - p.Equipment[item.SlotHands] = "graceful_gloves" - p.Equipment[item.SlotFeet] = "graceful_boots" - if got := gracefulCount(p); got != 5 { - t.Errorf("5 graceful + cape: count=%d want 5", got) - } - if hasCapeOfAgility(p) != true { - t.Error("should detect cape of agility") - } -} - func TestEnergyRegenIdle(t *testing.T) { g := energyTestGame() p := player.New("idle") -- cgit v1.2.3