-- Sync enemies table with server defaults (model/enemy.go): stats, narrower level bands, correct abilities.
-- Apply on staging/production so DB matches code-used templates after LoadEnemyTemplates at startup.

UPDATE enemies SET
    name = 'Forest Wolf',
    hp = 60, max_hp = 60, attack = 11, defense = 5, speed = 1.8, crit_chance = 0.05,
    min_level = 1, max_level = 3, xp_reward = 1, gold_reward = 1,
    special_abilities = '{}', is_elite = false
WHERE type = 'wolf';

UPDATE enemies SET
    name = 'Wild Boar',
    hp = 74, max_hp = 74, attack = 19, defense = 8, speed = 0.8, crit_chance = 0.08,
    min_level = 2, max_level = 4, xp_reward = 1, gold_reward = 1,
    special_abilities = '{}', is_elite = false
WHERE type = 'boar';

UPDATE enemies SET
    name = 'Rotting Zombie',
    hp = 108, max_hp = 108, attack = 17, defense = 8, speed = 0.5, crit_chance = 0.00,
    min_level = 3, max_level = 6, xp_reward = 1, gold_reward = 1,
    special_abilities = '{poison}', is_elite = false
WHERE type = 'zombie';

UPDATE enemies SET
    name = 'Cave Spider',
    hp = 44, max_hp = 44, attack = 17, defense = 4, speed = 2.0, crit_chance = 0.15,
    min_level = 4, max_level = 7, xp_reward = 1, gold_reward = 1,
    special_abilities = '{critical}', is_elite = false
WHERE type = 'spider';

UPDATE enemies SET
    name = 'Orc Warrior',
    hp = 118, max_hp = 118, attack = 22, defense = 13, speed = 1.0, crit_chance = 0.05,
    min_level = 5, max_level = 9, xp_reward = 1, gold_reward = 1,
    special_abilities = '{burst}', is_elite = false
WHERE type = 'orc';

UPDATE enemies SET
    name = 'Skeleton Archer',
    hp = 96, max_hp = 96, attack = 24, defense = 11, speed = 1.3, crit_chance = 0.06,
    min_level = 6, max_level = 11, xp_reward = 1, gold_reward = 1,
    special_abilities = '{dodge}', is_elite = false
WHERE type = 'skeleton_archer';

UPDATE enemies SET
    name = 'Battle Lizard',
    hp = 148, max_hp = 148, attack = 25, defense = 19, speed = 0.7, crit_chance = 0.03,
    min_level = 7, max_level = 13, xp_reward = 1, gold_reward = 1,
    special_abilities = '{regen}', is_elite = false
WHERE type = 'battle_lizard';

UPDATE enemies SET
    name = 'Fire Demon',
    hp = 128, max_hp = 128, attack = 24, defense = 13, speed = 1.2, crit_chance = 0.10,
    min_level = 10, max_level = 15, xp_reward = 1, gold_reward = 1,
    special_abilities = '{burn}', is_elite = true
WHERE type = 'fire_demon';

UPDATE enemies SET
    name = 'Ice Guardian',
    hp = 245, max_hp = 245, attack = 28, defense = 26, speed = 0.7, crit_chance = 0.04,
    min_level = 12, max_level = 17, xp_reward = 1, gold_reward = 1,
    special_abilities = '{ice_slow}', is_elite = true
WHERE type = 'ice_guardian';

UPDATE enemies SET
    name = 'Skeleton King',
    hp = 365, max_hp = 365, attack = 42, defense = 28, speed = 0.9, crit_chance = 0.08,
    min_level = 15, max_level = 21, xp_reward = 1, gold_reward = 1,
    special_abilities = '{regen,summon}', is_elite = true
WHERE type = 'skeleton_king';

UPDATE enemies SET
    name = 'Water Element',
    hp = 455, max_hp = 455, attack = 37, defense = 22, speed = 0.8, crit_chance = 0.05,
    min_level = 18, max_level = 24, xp_reward = 2, gold_reward = 1,
    special_abilities = '{slow}', is_elite = true
WHERE type = 'water_element';

UPDATE enemies SET
    name = 'Forest Warden',
    hp = 610, max_hp = 610, attack = 34, defense = 37, speed = 0.5, crit_chance = 0.03,
    min_level = 20, max_level = 26, xp_reward = 2, gold_reward = 1,
    special_abilities = '{regen}', is_elite = true
WHERE type = 'forest_warden';

UPDATE enemies SET
    name = 'Lightning Titan',
    hp = 565, max_hp = 565, attack = 49, defense = 28, speed = 1.5, crit_chance = 0.12,
    min_level = 25, max_level = 32, xp_reward = 3, gold_reward = 2,
    special_abilities = '{stun,chain_lightning}', is_elite = true
WHERE type = 'lightning_titan';
