-- Enemy combat stats from balanceall grid (tiered targets, DoT-aware path for burn/poison).
-- fire_demon: tuned with burn enabled (grid dot branch in cmd/balanceall).

-- Older init snapshots may lack per-level columns; align with current schema before UPDATEs.
ALTER TABLE public.enemies ADD COLUMN IF NOT EXISTS hp_per_level double precision DEFAULT 6.0 NOT NULL;
ALTER TABLE public.enemies ADD COLUMN IF NOT EXISTS attack_per_level double precision DEFAULT 1.8 NOT NULL;
ALTER TABLE public.enemies ADD COLUMN IF NOT EXISTS defense_per_level double precision DEFAULT 1.5 NOT NULL;
ALTER TABLE public.enemies ADD COLUMN IF NOT EXISTS xp_per_level double precision DEFAULT 2.0 NOT NULL;
ALTER TABLE public.enemies ADD COLUMN IF NOT EXISTS gold_per_level double precision DEFAULT 1.2 NOT NULL;

UPDATE enemies SET hp = 94, max_hp = 94, hp_per_level = 7.8681, attack = 20, attack_per_level = 2.7054 WHERE type = 'wolf';
UPDATE enemies SET hp = 102, max_hp = 102, hp_per_level = 8.2826, attack = 25, attack_per_level = 2.3190 WHERE type = 'boar';
UPDATE enemies SET hp = 107, max_hp = 107, hp_per_level = 6.9412, attack = 28, attack_per_level = 2.5898 WHERE type = 'zombie';
UPDATE enemies SET hp = 118, max_hp = 118, hp_per_level = 12.0614, attack = 24, attack_per_level = 2.7373 WHERE type = 'spider';
UPDATE enemies SET hp = 113, max_hp = 113, hp_per_level = 7.1338, attack = 27, attack_per_level = 2.6581 WHERE type = 'orc';
UPDATE enemies SET hp = 132, max_hp = 132, hp_per_level = 8.5586, attack = 28, attack_per_level = 2.2939 WHERE type = 'skeleton_archer';
UPDATE enemies SET hp = 105, max_hp = 105, hp_per_level = 5.7476, attack = 32, attack_per_level = 2.4140 WHERE type = 'battle_lizard';
UPDATE enemies SET hp = 177, max_hp = 177, hp_per_level = 11.7200, attack = 25, attack_per_level = 2.6587 WHERE type = 'fire_demon';
UPDATE enemies SET hp = 208, max_hp = 208, hp_per_level = 7.5649, attack = 37, attack_per_level = 3.0394 WHERE type = 'ice_guardian';
UPDATE enemies SET hp = 149, max_hp = 149, hp_per_level = 4.1663, attack = 24, attack_per_level = 1.8339 WHERE type = 'skeleton_king';
UPDATE enemies SET hp = 349, max_hp = 349, hp_per_level = 8.0285, attack = 45, attack_per_level = 3.1288 WHERE type = 'water_element';
UPDATE enemies SET hp = 338, max_hp = 338, hp_per_level = 6.1288, attack = 50, attack_per_level = 3.5033 WHERE type = 'forest_warden';
UPDATE enemies SET hp = 583, max_hp = 583, hp_per_level = 11.1055, attack = 48, attack_per_level = 2.9104 WHERE type = 'lightning_titan';
