diff --git a/packages/engine/registry/__init__.py b/packages/engine/registry/__init__.py index bf299c7..78a5730 100644 --- a/packages/engine/registry/__init__.py +++ b/packages/engine/registry/__init__.py @@ -550,7 +550,7 @@ def execute_potion_effect(potion_id: str, state: CombatState, if not potion: return {"success": False, "error": f"Unknown potion: {potion_id}"} - has_sacred_bark = state.has_relic("SacredBark") + has_sacred_bark = state.has_relic("Sacred Bark") potency = potion.get_effective_potency(has_sacred_bark) target = None diff --git a/tests/conftest.py b/tests/conftest.py index 981fe19..f999205 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -9,10 +9,6 @@ """ import pytest -import sys - -# Ensure project root is in path -sys.path.insert(0, '/Users/jackswitzer/Desktop/SlayTheSpireRL') from packages.engine.state.combat import ( CombatState, EntityState, EnemyCombatState, diff --git a/tests/test_potion_effects_full.py b/tests/test_potion_effects_full.py index 0d0c485..03d7413 100644 --- a/tests/test_potion_effects_full.py +++ b/tests/test_potion_effects_full.py @@ -53,7 +53,7 @@ def combat_with_sacred_bark(): deck=["Strike", "Strike", "Defend", "Defend"], energy=3, max_energy=3, - relics=["SacredBark"], + relics=["Sacred Bark"], potions=["", "", ""], ) diff --git a/tests/test_potion_registry.py b/tests/test_potion_registry.py index 5e71844..08d1383 100644 --- a/tests/test_potion_registry.py +++ b/tests/test_potion_registry.py @@ -66,7 +66,7 @@ def test_fire_potion_deals_20_damage(self): def test_fire_potion_with_sacred_bark(self): """Fire Potion with Sacred Bark should deal 40 damage.""" - state = self._create_combat_state(relics=["SacredBark"]) + state = self._create_combat_state(relics=["Sacred Bark"]) initial_hp = state.enemies[0].hp result = execute_potion_effect("Fire Potion", state, target_idx=0) @@ -116,7 +116,7 @@ def test_block_potion_gains_12_block(self): def test_block_potion_with_sacred_bark(self): """Block Potion with Sacred Bark should gain 24 block.""" - state = self._create_combat_state(relics=["SacredBark"]) + state = self._create_combat_state(relics=["Sacred Bark"]) result = execute_potion_effect("Block Potion", state, target_idx=-1) @@ -153,7 +153,7 @@ def test_strength_potion_gains_2_strength(self): def test_strength_potion_with_sacred_bark(self): """Strength Potion with Sacred Bark should gain 4 Strength.""" - state = self._create_combat_state(relics=["SacredBark"]) + state = self._create_combat_state(relics=["Sacred Bark"]) result = execute_potion_effect("Strength Potion", state, target_idx=-1) @@ -199,7 +199,7 @@ def test_weak_potion_applies_3_weak(self): def test_weak_potion_with_sacred_bark(self): """Weak Potion with Sacred Bark should apply 6 Weak.""" - state = self._create_combat_state(relics=["SacredBark"]) + state = self._create_combat_state(relics=["Sacred Bark"]) result = execute_potion_effect("Weak Potion", state, target_idx=0) @@ -236,7 +236,7 @@ def test_energy_potion_gains_2_energy(self): def test_energy_potion_with_sacred_bark(self): """Energy Potion with Sacred Bark should gain 4 energy.""" - state = self._create_combat_state(relics=["SacredBark"]) + state = self._create_combat_state(relics=["Sacred Bark"]) assert state.energy == 3 result = execute_potion_effect("Energy Potion", state, target_idx=-1) @@ -274,7 +274,7 @@ def test_combat_runner_sacred_bark_doubles_potency(self): """CombatRunner with Sacred Bark should double potion potency.""" run = create_watcher_run("TEST123", ascension=0) run.potion_slots[0].potion_id = "Strength Potion" - run.relics.append(type("Relic", (), {"id": "SacredBark"})()) + run.relics.append(type("Relic", (), {"id": "Sacred Bark"})()) rng = Random(12345) enemies = [JawWorm(ai_rng=rng, ascension=0, hp_rng=rng)] @@ -422,7 +422,7 @@ def _create_combat_state(self, potions, relics=None): def test_blessing_of_forge_not_doubled(self): """Blessing of the Forge should upgrade hand, not doubled by Sacred Bark.""" - state = self._create_combat_state(["BlessingOfTheForge"], relics=["SacredBark"]) + state = self._create_combat_state(["BlessingOfTheForge"], relics=["Sacred Bark"]) state.hand = ["Strike", "Defend"] result = execute_potion_effect("BlessingOfTheForge", state, target_idx=-1) @@ -434,7 +434,7 @@ def test_blessing_of_forge_not_doubled(self): def test_gamblers_brew_not_doubled(self): """Gambler's Brew should reshuffle hand, not doubled by Sacred Bark.""" - state = self._create_combat_state(["GamblersBrew"], relics=["SacredBark"]) + state = self._create_combat_state(["GamblersBrew"], relics=["Sacred Bark"]) state.hand = ["Card1", "Card2"] state.draw_pile = ["Card3", "Card4"] diff --git a/tests/test_potion_sacred_bark.py b/tests/test_potion_sacred_bark.py index 408c658..f62d4e8 100644 --- a/tests/test_potion_sacred_bark.py +++ b/tests/test_potion_sacred_bark.py @@ -2,8 +2,6 @@ Test Sacred Bark and new potion implementations. """ import pytest -import sys -sys.path.insert(0, '/Users/jackswitzer/Desktop/SlayTheSpireRL') from packages.engine.combat_engine import CombatEngine from packages.engine.state.combat import CombatState, EntityState, EnemyCombatState