{
  "melee_combat": {
    "attack_types": {
      "light_attack": {
        "stamina_cost": 10,
        "damage_multiplier": 1.0,
        "speed": 0.4,
        "speed_unit": "seconds",
        "combo_window": 0.6,
        "combo_window_unit": "seconds",
        "animation_cancel": false,
        "can_interrupt": true
      },
      "heavy_attack": {
        "stamina_cost": 25,
        "damage_multiplier": 2.2,
        "speed": 1.0,
        "speed_unit": "seconds",
        "charge_time": 0.5,
        "charge_time_unit": "seconds",
        "armor_penetration": 0.15,
        "stagger_chance": 0.6,
        "can_be_charged_further": true,
        "max_charge_time": 2.0,
        "max_charge_multiplier": 3.0
      },
      "sprint_attack": {
        "stamina_cost": 30,
        "damage_multiplier": 1.8,
        "speed": 0.6,
        "speed_unit": "seconds",
        "requires_sprint_duration": 0.5,
        "stagger_chance": 0.4
      },
      "jump_attack": {
        "stamina_cost": 20,
        "damage_multiplier": 1.5,
        "speed": 0.8,
        "speed_unit": "seconds",
        "aoe_radius": 2.0,
        "stagger_chance": 0.3
      }
    },
    "combo_system": [
      {
        "name": "Swift Flurry",
        "sequence": ["light", "light", "light"],
        "damage_multiplier": 3.5,
        "stamina_cost": 28,
        "final_hit_bonus": 1.5,
        "unlock_requirement": {
          "skill": "one_handed",
          "level": 5
        },
        "description": "Three rapid strikes with the final blow dealing bonus damage"
      },
      {
        "name": "Crushing Blow",
        "sequence": ["light", "light", "heavy"],
        "damage_multiplier": 4.8,
        "stamina_cost": 40,
        "final_hit_bonus": 2.2,
        "stagger_guaranteed": true,
        "unlock_requirement": {
          "skill": "two_handed",
          "level": 10
        },
        "description": "Two quick strikes followed by a devastating overhead slam"
      },
      {
        "name": "Whirlwind",
        "sequence": ["heavy", "light", "light", "light"],
        "damage_multiplier": 5.5,
        "stamina_cost": 50,
        "aoe_radius": 3.0,
        "unlock_requirement": {
          "skill": "one_handed",
          "level": 20
        },
        "description": "A spinning attack that hits all nearby enemies"
      },
      {
        "name": "Shield Bash Combo",
        "sequence": ["block", "light", "light", "heavy"],
        "damage_multiplier": 5.0,
        "stamina_cost": 55,
        "stun_duration": 1.0,
        "requires_shield": true,
        "unlock_requirement": {
          "skill": "block",
          "level": 15
        },
        "description": "Bash with shield to stun, then follow up with a punishing chain"
      },
      {
        "name": "Executioner's Chain",
        "sequence": ["heavy", "heavy", "light", "light", "heavy"],
        "damage_multiplier": 8.5,
        "stamina_cost": 80,
        "final_hit_bonus": 3.0,
        "armor_penetration": 0.25,
        "unlock_requirement": {
          "skill": "two_handed",
          "level": 30
        },
        "description": "A brutal five-hit chain ending with an armor-piercing finisher"
      },
      {
        "name": "Dual Fang",
        "sequence": ["light", "light", "light", "light"],
        "damage_multiplier": 5.2,
        "stamina_cost": 36,
        "requires_dual_wield": true,
        "bleed_chance": 0.4,
        "unlock_requirement": {
          "skill": "dual_wield",
          "level": 12
        },
        "description": "Rapid alternating strikes with both weapons, chance to cause bleeding"
      },
      {
        "name": "Rising Dragon",
        "sequence": ["dodge", "light", "heavy"],
        "damage_multiplier": 4.2,
        "stamina_cost": 45,
        "launch_enemy": true,
        "unlock_requirement": {
          "skill": "one_handed",
          "level": 25
        },
        "description": "Dodge into an uppercut slash that launches smaller enemies"
      }
    ],
    "blocking": {
      "stamina_cost_per_block": 15,
      "damage_reduction": 0.6,
      "shield_bonus": 0.25,
      "total_with_shield": 0.85,
      "stagger_threshold": 50,
      "stagger_recovery_time": 1.2,
      "block_angle": 120,
      "block_angle_unit": "degrees",
      "shield_types": {
        "buckler": {
          "block_bonus": 0.1,
          "weight": "light",
          "parry_window_bonus_ms": 50
        },
        "kite_shield": {
          "block_bonus": 0.25,
          "weight": "medium",
          "parry_window_bonus_ms": 0
        },
        "tower_shield": {
          "block_bonus": 0.4,
          "weight": "heavy",
          "parry_window_bonus_ms": -50,
          "movement_penalty": 0.2
        }
      }
    },
    "parrying": {
      "window_ms": 200,
      "stamina_cost": 5,
      "successful_parry_stun_duration": 1.5,
      "successful_parry_stun_duration_unit": "seconds",
      "damage_reflect": 0.3,
      "perfect_parry_window_ms": 100,
      "perfect_parry_damage_reflect": 0.6,
      "perfect_parry_stamina_restore": 10,
      "parry_skill_scaling": "window_ms + (parry_skill * 2)",
      "max_window_ms": 350
    },
    "dodge": {
      "stamina_cost": 20,
      "i_frames_ms": 300,
      "cooldown": 0.5,
      "cooldown_unit": "seconds",
      "distance": 3.0,
      "distance_unit": "units",
      "directional": true,
      "dodge_types": {
        "side_step": {
          "distance": 2.5,
          "i_frames_ms": 250,
          "stamina_cost": 15
        },
        "back_roll": {
          "distance": 4.0,
          "i_frames_ms": 350,
          "stamina_cost": 25
        },
        "forward_dash": {
          "distance": 3.5,
          "i_frames_ms": 200,
          "stamina_cost": 22
        }
      }
    },
    "weapon_categories": {
      "one_handed_sword": { "base_damage": 20, "attack_speed": 1.0, "range": 2.5 },
      "two_handed_sword": { "base_damage": 35, "attack_speed": 0.7, "range": 3.5 },
      "dagger": { "base_damage": 12, "attack_speed": 1.5, "range": 1.5 },
      "mace": { "base_damage": 25, "attack_speed": 0.85, "range": 2.0, "armor_penetration": 0.1 },
      "war_hammer": { "base_damage": 42, "attack_speed": 0.55, "range": 3.0, "armor_penetration": 0.2 },
      "spear": { "base_damage": 22, "attack_speed": 0.9, "range": 4.5 },
      "axe": { "base_damage": 28, "attack_speed": 0.8, "range": 2.5, "bleed_chance": 0.15 }
    }
  },
  "ranged_combat": {
    "weapon_types": {
      "bow": {
        "draw_time": 1.2,
        "draw_time_unit": "seconds",
        "base_damage": 25,
        "max_range": 80,
        "max_range_unit": "units",
        "effective_range": 50,
        "projectile_speed": 40,
        "projectile_speed_unit": "units_per_second",
        "gravity": 9.81,
        "stamina_per_shot": 15,
        "can_move_while_drawn": true,
        "movement_penalty_while_drawn": 0.5,
        "draw_stages": {
          "quick_release": { "draw_time": 0.3, "damage_multiplier": 0.5 },
          "half_draw": { "draw_time": 0.6, "damage_multiplier": 0.75 },
          "full_draw": { "draw_time": 1.2, "damage_multiplier": 1.0 },
          "overdrawn": { "draw_time": 2.0, "damage_multiplier": 1.15, "stamina_drain_per_sec": 5 }
        }
      },
      "crossbow": {
        "reload_time": 2.0,
        "reload_time_unit": "seconds",
        "base_damage": 40,
        "max_range": 60,
        "effective_range": 45,
        "projectile_speed": 60,
        "projectile_speed_unit": "units_per_second",
        "gravity": 4.9,
        "stamina_per_shot": 8,
        "armor_penetration": 0.15,
        "can_pre_load": true,
        "movement_penalty_while_reloading": 0.7,
        "scope_zoom": 2.0
      },
      "throwing_weapons": {
        "wind_up": 0.3,
        "wind_up_unit": "seconds",
        "base_damage": 18,
        "max_range": 30,
        "effective_range": 20,
        "projectile_speed": 25,
        "projectile_speed_unit": "units_per_second",
        "gravity": 12.0,
        "stamina_per_shot": 12,
        "stack_size": 20,
        "quick_throw": true,
        "subtypes": {
          "throwing_knife": { "damage_bonus": 0, "speed_bonus": 5, "bleed_chance": 0.2 },
          "throwing_axe": { "damage_bonus": 8, "speed_bonus": -5, "stagger_chance": 0.3 },
          "javelin": { "damage_bonus": 12, "speed_bonus": -8, "armor_penetration": 0.1 }
        }
      }
    },
    "projectile_physics": {
      "drag_coefficient": 0.01,
      "wind_influence": 0.05,
      "arc_calculation": "parabolic",
      "trajectory_formula": "y = y0 + vy*t - 0.5*g*t^2, x = x0 + vx*t*(1-drag*t)",
      "max_simulation_steps": 200,
      "collision_detection": "raycast_per_frame",
      "penetration_chance": 0.1,
      "ricochet_chance": 0.05,
      "ricochet_damage_retained": 0.4
    },
    "ammunition_types": {
      "iron_arrow": {
        "damage_bonus": 0,
        "special_effect": "none",
        "crafting_cost": { "iron_ingot": 1, "wood": 2 },
        "craft_quantity": 10,
        "weight": 0.1,
        "rarity": "common"
      },
      "steel_arrow": {
        "damage_bonus": 5,
        "special_effect": "none",
        "armor_penetration_bonus": 0.05,
        "crafting_cost": { "steel_ingot": 1, "wood": 2 },
        "craft_quantity": 10,
        "weight": 0.12,
        "rarity": "common"
      },
      "elven_arrow": {
        "damage_bonus": 10,
        "special_effect": "increased_accuracy",
        "accuracy_bonus": 0.15,
        "crafting_cost": { "moonstone_ingot": 1, "elven_wood": 2 },
        "craft_quantity": 8,
        "weight": 0.08,
        "rarity": "uncommon"
      },
      "explosive_bolt": {
        "damage_bonus": 15,
        "special_effect": "explosion",
        "explosion_radius": 4.0,
        "explosion_damage": 30,
        "crafting_cost": { "steel_ingot": 1, "fire_salts": 2, "dwarven_oil": 1 },
        "craft_quantity": 5,
        "weight": 0.3,
        "rarity": "rare",
        "crossbow_only": true
      },
      "poison_dart": {
        "damage_bonus": 2,
        "special_effect": "poison",
        "poison_damage_per_tick": 3,
        "poison_duration": 8.0,
        "poison_tick_interval": 1.0,
        "crafting_cost": { "iron_ingot": 1, "deathbell": 2, "nightshade": 1 },
        "craft_quantity": 6,
        "weight": 0.05,
        "rarity": "uncommon"
      },
      "fire_arrow": {
        "damage_bonus": 8,
        "special_effect": "burn",
        "burn_damage_per_tick": 4,
        "burn_duration": 4.0,
        "burn_tick_interval": 0.5,
        "ignites_environment": true,
        "crafting_cost": { "iron_ingot": 1, "wood": 2, "fire_salts": 1 },
        "craft_quantity": 8,
        "weight": 0.15,
        "rarity": "uncommon"
      },
      "frost_arrow": {
        "damage_bonus": 6,
        "special_effect": "freeze",
        "slow_percentage": 0.3,
        "slow_duration": 3.0,
        "crafting_cost": { "iron_ingot": 1, "wood": 2, "frost_salts": 1 },
        "craft_quantity": 8,
        "weight": 0.15,
        "rarity": "uncommon"
      },
      "lightning_bolt_ammo": {
        "damage_bonus": 12,
        "special_effect": "chain_lightning",
        "chain_targets": 2,
        "chain_damage_falloff": 0.5,
        "crafting_cost": { "dwarven_metal": 2, "void_salts": 1 },
        "craft_quantity": 4,
        "weight": 0.2,
        "rarity": "rare",
        "crossbow_only": true
      }
    },
    "hit_zones": {
      "headshot_multiplier": 2.5,
      "limb_shot_multiplier": 0.8,
      "torso_multiplier": 1.0,
      "hand_multiplier": 0.6,
      "disarm_chance_on_hand_hit": 0.1,
      "leg_shot_slow_chance": 0.25,
      "leg_shot_slow_duration": 2.0,
      "leg_shot_slow_amount": 0.3
    },
    "aim_assist": {
      "enabled_on_gamepad": true,
      "aim_assist_radius": 1.5,
      "aim_assist_strength": 0.3,
      "disabled_on_legendary_difficulty": true
    }
  },
  "magic_combat": {
    "spell_schools": {
      "destruction": {
        "description": "Offensive elemental magic dealing direct damage to enemies",
        "governing_attribute": "intelligence",
        "spells": [
          {
            "name": "Firebolt",
            "description": "Launches a bolt of fire that deals moderate damage on impact",
            "mana_cost": 20,
            "cooldown": 1.0,
            "cast_time": 0.5,
            "damage": 25,
            "range": 40,
            "aoe_radius": 0,
            "level_requirement": 1,
            "element": "fire",
            "projectile_speed": 35
          },
          {
            "name": "Fireball",
            "description": "A large sphere of fire that explodes on impact, damaging all nearby enemies",
            "mana_cost": 45,
            "cooldown": 3.0,
            "cast_time": 1.0,
            "damage": 50,
            "range": 35,
            "aoe_radius": 5.0,
            "level_requirement": 10,
            "element": "fire",
            "projectile_speed": 25,
            "burn_chance": 0.4,
            "burn_duration": 4.0
          },
          {
            "name": "Flame Wall",
            "description": "Creates a wall of fire that damages enemies passing through it",
            "mana_cost": 60,
            "cooldown": 8.0,
            "cast_time": 1.2,
            "damage_per_tick": 15,
            "tick_interval": 0.5,
            "duration": 6.0,
            "range": 20,
            "wall_length": 10.0,
            "wall_height": 3.0,
            "level_requirement": 18,
            "element": "fire"
          },
          {
            "name": "Ice Spike",
            "description": "Fires a sharp shard of ice that damages and slows the target",
            "mana_cost": 22,
            "cooldown": 1.2,
            "cast_time": 0.6,
            "damage": 20,
            "range": 45,
            "aoe_radius": 0,
            "level_requirement": 1,
            "element": "ice",
            "slow_amount": 0.25,
            "slow_duration": 3.0,
            "projectile_speed": 38
          },
          {
            "name": "Frost Nova",
            "description": "Releases a burst of frost around the caster, freezing nearby enemies",
            "mana_cost": 55,
            "cooldown": 6.0,
            "cast_time": 0.8,
            "damage": 35,
            "range": 0,
            "aoe_radius": 8.0,
            "level_requirement": 15,
            "element": "ice",
            "freeze_duration": 2.5,
            "slow_after_freeze": 0.4,
            "slow_duration_after": 3.0
          },
          {
            "name": "Lightning Bolt",
            "description": "A bolt of lightning that strikes instantly with a chance to stun",
            "mana_cost": 30,
            "cooldown": 1.5,
            "cast_time": 0.4,
            "damage": 30,
            "range": 50,
            "aoe_radius": 0,
            "level_requirement": 8,
            "element": "lightning",
            "stun_chance": 0.2,
            "stun_duration": 1.0,
            "instant_hit": true
          },
          {
            "name": "Chain Lightning",
            "description": "Lightning that jumps between multiple enemies, dealing reduced damage per jump",
            "mana_cost": 65,
            "cooldown": 5.0,
            "cast_time": 0.8,
            "damage": 40,
            "range": 40,
            "aoe_radius": 0,
            "level_requirement": 22,
            "element": "lightning",
            "max_chain_targets": 4,
            "chain_damage_falloff": 0.75,
            "chain_range": 8.0,
            "stun_chance": 0.15
          },
          {
            "name": "Meteor Strike",
            "description": "Calls down a massive meteor from the sky, devastating a large area",
            "mana_cost": 120,
            "cooldown": 20.0,
            "cast_time": 2.5,
            "damage": 150,
            "range": 50,
            "aoe_radius": 12.0,
            "level_requirement": 35,
            "element": "fire",
            "impact_stagger": true,
            "burn_chance": 0.8,
            "burn_duration": 6.0,
            "ground_fire_duration": 4.0,
            "ground_fire_damage_per_tick": 10
          }
        ]
      },
      "restoration": {
        "description": "Healing and protective magic that mends wounds and shields allies",
        "governing_attribute": "wisdom",
        "spells": [
          {
            "name": "Heal",
            "description": "Restores a moderate amount of health to the caster or a targeted ally",
            "mana_cost": 18,
            "cooldown": 1.0,
            "cast_time": 0.6,
            "heal_amount": 30,
            "range": 15,
            "aoe_radius": 0,
            "level_requirement": 1,
            "element": "holy",
            "can_target_self": true
          },
          {
            "name": "Greater Heal",
            "description": "A powerful heal that restores a large amount of health",
            "mana_cost": 40,
            "cooldown": 3.0,
            "cast_time": 1.2,
            "heal_amount": 75,
            "range": 15,
            "aoe_radius": 0,
            "level_requirement": 12,
            "element": "holy",
            "can_target_self": true
          },
          {
            "name": "Regeneration",
            "description": "Applies a heal-over-time effect to the target",
            "mana_cost": 25,
            "cooldown": 2.0,
            "cast_time": 0.5,
            "heal_per_tick": 8,
            "tick_interval": 1.0,
            "duration": 10.0,
            "range": 15,
            "aoe_radius": 0,
            "level_requirement": 6,
            "element": "holy",
            "can_target_self": true
          },
          {
            "name": "Purify",
            "description": "Removes all negative status effects from the target",
            "mana_cost": 30,
            "cooldown": 5.0,
            "cast_time": 0.8,
            "heal_amount": 10,
            "range": 15,
            "aoe_radius": 0,
            "level_requirement": 10,
            "element": "holy",
            "removes_debuffs": true,
            "max_debuffs_removed": 99,
            "can_target_self": true
          },
          {
            "name": "Holy Shield",
            "description": "Creates a protective barrier that absorbs incoming damage",
            "mana_cost": 50,
            "cooldown": 12.0,
            "cast_time": 1.0,
            "shield_amount": 80,
            "duration": 15.0,
            "range": 15,
            "aoe_radius": 0,
            "level_requirement": 16,
            "element": "holy",
            "can_target_self": true,
            "damage_reduction_while_active": 0.1
          },
          {
            "name": "Resurrection",
            "description": "Revives a fallen ally with partial health",
            "mana_cost": 100,
            "cooldown": 60.0,
            "cast_time": 3.0,
            "heal_amount": 0,
            "revive_health_percent": 0.3,
            "range": 10,
            "aoe_radius": 0,
            "level_requirement": 28,
            "element": "holy",
            "requires_companion_down": true
          },
          {
            "name": "Mass Heal",
            "description": "Heals all allies within a large radius",
            "mana_cost": 70,
            "cooldown": 10.0,
            "cast_time": 1.5,
            "heal_amount": 45,
            "range": 0,
            "aoe_radius": 12.0,
            "level_requirement": 22,
            "element": "holy",
            "affects_caster": true
          },
          {
            "name": "Divine Judgment",
            "description": "Calls down holy light that heals allies and damages undead enemies in the area",
            "mana_cost": 90,
            "cooldown": 15.0,
            "cast_time": 2.0,
            "heal_amount": 60,
            "damage_to_undead": 100,
            "damage_to_others": 40,
            "range": 30,
            "aoe_radius": 10.0,
            "level_requirement": 32,
            "element": "holy"
          }
        ]
      },
      "conjuration": {
        "description": "Summoning magic that calls forth creatures and bound weapons",
        "governing_attribute": "intelligence",
        "spells": [
          {
            "name": "Summon Skeleton",
            "description": "Raises a skeletal warrior to fight alongside you",
            "mana_cost": 30,
            "cooldown": 5.0,
            "cast_time": 1.5,
            "damage": 0,
            "range": 10,
            "aoe_radius": 0,
            "level_requirement": 1,
            "element": "dark",
            "summon_health": 50,
            "summon_damage": 10,
            "summon_duration": 30.0,
            "max_summons": 1
          },
          {
            "name": "Summon Wolf",
            "description": "Calls a spectral wolf companion with high speed and moderate damage",
            "mana_cost": 40,
            "cooldown": 8.0,
            "cast_time": 1.5,
            "damage": 0,
            "range": 10,
            "aoe_radius": 0,
            "level_requirement": 6,
            "element": "arcane",
            "summon_health": 70,
            "summon_damage": 15,
            "summon_speed": 1.5,
            "summon_duration": 45.0,
            "max_summons": 1
          },
          {
            "name": "Summon Elemental",
            "description": "Conjures an elemental of fire, ice, or lightning depending on the caster's strongest element",
            "mana_cost": 65,
            "cooldown": 15.0,
            "cast_time": 2.0,
            "damage": 0,
            "range": 10,
            "aoe_radius": 0,
            "level_requirement": 18,
            "element": "varies",
            "summon_health": 120,
            "summon_damage": 25,
            "summon_duration": 60.0,
            "summon_has_spells": true,
            "max_summons": 1
          },
          {
            "name": "Bound Weapon",
            "description": "Conjures a spectral weapon that scales with conjuration skill",
            "mana_cost": 35,
            "cooldown": 3.0,
            "cast_time": 0.8,
            "damage": 0,
            "range": 0,
            "aoe_radius": 0,
            "level_requirement": 8,
            "element": "arcane",
            "weapon_damage": 28,
            "weapon_duration": 60.0,
            "weapon_types_available": ["sword", "bow", "axe"],
            "banishes_summoned_enemies": true
          },
          {
            "name": "Soul Trap",
            "description": "If the target dies within the duration, captures its soul for enchanting",
            "mana_cost": 25,
            "cooldown": 2.0,
            "cast_time": 0.5,
            "damage": 5,
            "range": 30,
            "aoe_radius": 0,
            "level_requirement": 10,
            "element": "dark",
            "trap_duration": 10.0
          },
          {
            "name": "Raise Dead",
            "description": "Reanimates a fallen enemy to fight for you temporarily",
            "mana_cost": 55,
            "cooldown": 20.0,
            "cast_time": 2.0,
            "damage": 0,
            "range": 15,
            "aoe_radius": 0,
            "level_requirement": 20,
            "element": "dark",
            "max_reanimate_level": 25,
            "reanimate_duration": 60.0,
            "reanimate_health_percent": 0.5,
            "max_summons": 1
          },
          {
            "name": "Summon Daedra",
            "description": "Summons a powerful Daedric warrior with devastating melee attacks",
            "mana_cost": 100,
            "cooldown": 30.0,
            "cast_time": 3.0,
            "damage": 0,
            "range": 10,
            "aoe_radius": 0,
            "level_requirement": 30,
            "element": "dark",
            "summon_health": 250,
            "summon_damage": 45,
            "summon_duration": 45.0,
            "summon_armor": 80,
            "max_summons": 1,
            "chance_to_turn_hostile": 0.05
          },
          {
            "name": "Conjure Familiar",
            "description": "Summons a small magical familiar that scouts ahead and marks enemies",
            "mana_cost": 15,
            "cooldown": 3.0,
            "cast_time": 0.5,
            "damage": 0,
            "range": 10,
            "aoe_radius": 0,
            "level_requirement": 1,
            "element": "arcane",
            "summon_health": 20,
            "summon_damage": 5,
            "summon_duration": 60.0,
            "detection_radius": 20.0,
            "marks_enemies": true,
            "max_summons": 1
          }
        ]
      },
      "alteration": {
        "description": "Magic that manipulates the physical world and enhances the caster's body",
        "governing_attribute": "intelligence",
        "spells": [
          {
            "name": "Mage Armor",
            "description": "Surrounds the caster in a magical shield that increases armor rating",
            "mana_cost": 25,
            "cooldown": 0.5,
            "cast_time": 0.8,
            "damage": 0,
            "range": 0,
            "aoe_radius": 0,
            "level_requirement": 1,
            "element": "arcane",
            "armor_bonus": 40,
            "duration": 60.0
          },
          {
            "name": "Telekinesis",
            "description": "Allows the caster to grab and throw objects or enemies at range",
            "mana_cost": 15,
            "cooldown": 1.0,
            "cast_time": 0.3,
            "damage": 10,
            "range": 25,
            "aoe_radius": 0,
            "level_requirement": 5,
            "element": "arcane",
            "throw_damage": 20,
            "max_object_weight": 50,
            "channeled": true,
            "mana_per_second": 8
          },
          {
            "name": "Transmute",
            "description": "Converts one material into another (iron to silver, silver to gold)",
            "mana_cost": 40,
            "cooldown": 3.0,
            "cast_time": 2.0,
            "damage": 0,
            "range": 0,
            "aoe_radius": 0,
            "level_requirement": 12,
            "element": "arcane",
            "non_combat": true
          },
          {
            "name": "Slow Fall",
            "description": "Reduces falling speed and negates fall damage for the duration",
            "mana_cost": 20,
            "cooldown": 1.0,
            "cast_time": 0.2,
            "damage": 0,
            "range": 0,
            "aoe_radius": 0,
            "level_requirement": 8,
            "element": "arcane",
            "duration": 15.0,
            "fall_speed_multiplier": 0.2,
            "fall_damage_negation": true
          },
          {
            "name": "Water Breathing",
            "description": "Allows the target to breathe underwater indefinitely",
            "mana_cost": 15,
            "cooldown": 1.0,
            "cast_time": 0.5,
            "damage": 0,
            "range": 10,
            "aoe_radius": 0,
            "level_requirement": 6,
            "element": "arcane",
            "duration": 120.0,
            "can_target_self": true
          },
          {
            "name": "Paralyze",
            "description": "Freezes a target in place, unable to move or act",
            "mana_cost": 60,
            "cooldown": 10.0,
            "cast_time": 1.0,
            "damage": 0,
            "range": 30,
            "aoe_radius": 0,
            "level_requirement": 22,
            "element": "arcane",
            "paralyze_duration": 4.0,
            "affects_bosses": false,
            "boss_duration": 1.0
          },
          {
            "name": "Mass Paralyze",
            "description": "Paralyzes all enemies in a wide area around the caster",
            "mana_cost": 110,
            "cooldown": 25.0,
            "cast_time": 2.0,
            "damage": 0,
            "range": 0,
            "aoe_radius": 10.0,
            "level_requirement": 35,
            "element": "arcane",
            "paralyze_duration": 3.0,
            "affects_bosses": false,
            "boss_duration": 0.5
          },
          {
            "name": "Stone Skin",
            "description": "Hardens the caster's skin, massively increasing armor but reducing speed",
            "mana_cost": 50,
            "cooldown": 15.0,
            "cast_time": 1.0,
            "damage": 0,
            "range": 0,
            "aoe_radius": 0,
            "level_requirement": 18,
            "element": "arcane",
            "armor_bonus": 120,
            "damage_reduction": 0.3,
            "movement_speed_penalty": 0.25,
            "duration": 20.0
          }
        ]
      },
      "illusion": {
        "description": "Mind-affecting magic that manipulates perception and emotions",
        "governing_attribute": "wisdom",
        "spells": [
          {
            "name": "Calm",
            "description": "Soothes a hostile creature, causing it to stop attacking temporarily",
            "mana_cost": 20,
            "cooldown": 4.0,
            "cast_time": 0.6,
            "damage": 0,
            "range": 25,
            "aoe_radius": 0,
            "level_requirement": 1,
            "element": "arcane",
            "max_target_level": 10,
            "duration": 15.0,
            "breaks_on_damage": true
          },
          {
            "name": "Fear",
            "description": "Causes the target to flee in terror",
            "mana_cost": 25,
            "cooldown": 5.0,
            "cast_time": 0.5,
            "damage": 0,
            "range": 25,
            "aoe_radius": 0,
            "level_requirement": 4,
            "element": "arcane",
            "max_target_level": 12,
            "duration": 8.0,
            "flee_speed_multiplier": 1.3
          },
          {
            "name": "Frenzy",
            "description": "Drives the target into a rage, causing it to attack anything nearby",
            "mana_cost": 30,
            "cooldown": 6.0,
            "cast_time": 0.6,
            "damage": 0,
            "range": 25,
            "aoe_radius": 0,
            "level_requirement": 8,
            "element": "arcane",
            "max_target_level": 14,
            "duration": 20.0,
            "damage_bonus_to_target": 0.15
          },
          {
            "name": "Invisibility",
            "description": "Renders the caster completely invisible for a duration",
            "mana_cost": 55,
            "cooldown": 15.0,
            "cast_time": 1.0,
            "damage": 0,
            "range": 0,
            "aoe_radius": 0,
            "level_requirement": 18,
            "element": "arcane",
            "duration": 20.0,
            "breaks_on_attack": true,
            "breaks_on_interact": true,
            "detection_reduction": 1.0
          },
          {
            "name": "Muffle",
            "description": "Silences the caster's movement, making footsteps inaudible",
            "mana_cost": 15,
            "cooldown": 1.0,
            "cast_time": 0.3,
            "damage": 0,
            "range": 0,
            "aoe_radius": 0,
            "level_requirement": 3,
            "element": "arcane",
            "duration": 45.0,
            "noise_reduction": 1.0
          },
          {
            "name": "Clairvoyance",
            "description": "Reveals the path to the current quest objective",
            "mana_cost": 10,
            "cooldown": 0.5,
            "cast_time": 0.5,
            "damage": 0,
            "range": 0,
            "aoe_radius": 0,
            "level_requirement": 1,
            "element": "arcane",
            "duration": 30.0,
            "shows_path": true,
            "reveals_hidden_objects": true,
            "non_combat": true
          },
          {
            "name": "Mass Hysteria",
            "description": "Causes all nearby enemies to flee in uncontrollable panic",
            "mana_cost": 85,
            "cooldown": 20.0,
            "cast_time": 1.5,
            "damage": 0,
            "range": 0,
            "aoe_radius": 12.0,
            "level_requirement": 30,
            "element": "arcane",
            "max_target_level": 25,
            "duration": 10.0,
            "flee_speed_multiplier": 1.5,
            "confusion_chance": 0.3
          },
          {
            "name": "Shadow Clone",
            "description": "Creates an illusory copy of the caster that draws enemy attention",
            "mana_cost": 45,
            "cooldown": 12.0,
            "cast_time": 0.8,
            "damage": 0,
            "range": 5,
            "aoe_radius": 0,
            "level_requirement": 20,
            "element": "arcane",
            "clone_health": 1,
            "clone_duration": 15.0,
            "clone_draws_aggro": true,
            "clone_damage": 0,
            "explodes_on_death": true,
            "explosion_damage": 20,
            "explosion_radius": 4.0
          }
        ]
      }
    },
    "spell_scaling": {
      "formula": "base_damage * (1 + intelligence * 0.03 + skill_level * 0.02)",
      "intelligence_coefficient": 0.03,
      "skill_level_coefficient": 0.02,
      "max_skill_level": 100,
      "mastery_bonus_at_max": 0.25,
      "overcharge_mechanic": {
        "enabled": true,
        "extra_mana_cost_multiplier": 1.5,
        "damage_bonus": 0.3,
        "cast_time_increase": 0.5
      }
    },
    "elemental_interactions": {
      "fire_melts_ice": {
        "result": "steam_cloud",
        "effect": "blind",
        "duration": 3.0,
        "aoe_radius": 4.0,
        "miss_chance_in_steam": 0.5
      },
      "lightning_in_water": {
        "result": "electrified_water",
        "effect": "stun_and_damage",
        "stun_duration": 2.0,
        "damage_multiplier": 1.5,
        "aoe_radius": 6.0
      },
      "ice_on_fire_enemy": {
        "result": "thermal_shock",
        "effect": "bonus_damage",
        "damage_multiplier": 1.3,
        "removes_burn": true
      },
      "fire_on_frozen_enemy": {
        "result": "shatter",
        "effect": "bonus_damage_and_unfreeze",
        "damage_multiplier": 2.0,
        "removes_freeze": true
      },
      "ice_slows": {
        "result": "chilled",
        "effect": "movement_slow",
        "slow_amount": 0.3,
        "attack_speed_slow": 0.15,
        "duration": 4.0,
        "stacking": true,
        "freeze_at_stacks": 3
      },
      "lightning_on_metal_armor": {
        "result": "conducted",
        "effect": "bonus_damage",
        "damage_multiplier": 1.25,
        "stun_chance_bonus": 0.15
      },
      "fire_on_oil": {
        "result": "oil_fire",
        "effect": "area_burn",
        "damage_per_tick": 20,
        "duration": 8.0,
        "aoe_radius": 5.0
      },
      "poison_and_fire": {
        "result": "toxic_cloud",
        "effect": "aoe_poison_damage",
        "damage_per_tick": 8,
        "duration": 5.0,
        "aoe_radius": 6.0,
        "reduces_visibility": true
      }
    },
    "mana_regeneration": {
      "base_regen_per_second": 2.0,
      "wisdom_bonus": 0.05,
      "in_combat_penalty": 0.5,
      "meditation_multiplier": 3.0,
      "meditation_requires_stationary": true
    }
  },
  "stealth_system": {
    "detection_formula": "base_detection * (1 - sneak_skill * 0.01) * light_level * movement_speed_factor * armor_noise_factor",
    "base_detection_range": 30.0,
    "base_detection_range_unit": "units",
    "detection_accumulation_rate": 10.0,
    "detection_decay_rate": 5.0,
    "detection_thresholds": {
      "unaware": { "min": 0, "max": 29 },
      "suspicious": { "min": 30, "max": 69 },
      "alert": { "min": 70, "max": 99 },
      "detected": { "min": 100, "max": 100 }
    },
    "light_levels": {
      "dark": { "factor": 0.2, "description": "Deep shadows, caves without torches, moonless night" },
      "dim": { "factor": 0.5, "description": "Torchlit areas, twilight, moonlit outdoors" },
      "normal": { "factor": 0.8, "description": "Overcast daylight, well-lit interiors" },
      "bright": { "factor": 1.0, "description": "Direct sunlight, near bonfires or magical light" }
    },
    "movement_speed_factors": {
      "stationary": { "factor": 0.0, "description": "Standing completely still" },
      "crouching_slow": { "factor": 0.3, "speed_multiplier": 0.25 },
      "crouching": { "factor": 0.5, "speed_multiplier": 0.5 },
      "walking": { "factor": 0.8, "speed_multiplier": 0.7 },
      "running": { "factor": 1.2, "speed_multiplier": 1.0 },
      "sprinting": { "factor": 1.5, "speed_multiplier": 1.4 }
    },
    "armor_noise": {
      "cloth": { "factor": 0.2, "description": "Robes, cloth garments" },
      "leather": { "factor": 0.4, "description": "Light leather armor" },
      "studded_leather": { "factor": 0.55, "description": "Reinforced leather with metal studs" },
      "chainmail": { "factor": 0.7, "description": "Chain links, jingles when moving" },
      "plate": { "factor": 1.0, "description": "Heavy plate armor, very noisy" }
    },
    "sneak_attack_multipliers": {
      "melee": {
        "multiplier": 3.0,
        "description": "Melee sneak attacks deal triple damage"
      },
      "ranged": {
        "multiplier": 2.0,
        "description": "Ranged sneak attacks deal double damage"
      },
      "dagger_bonus": {
        "multiplier": 2.0,
        "stacks_with": "melee",
        "total_with_melee": 6.0,
        "description": "Daggers get an additional multiplier on top of melee sneak bonus"
      },
      "poison_bonus": {
        "multiplier": 1.5,
        "stacks_with": "all",
        "description": "Poison damage is multiplied during sneak attacks"
      }
    },
    "pickpocket_formula": {
      "base_formula": "base_chance + (pickpocket_skill * 0.5) - (item_weight * 2) - (item_value * 0.1) + (target_distracted * 20)",
      "base_chance": 30,
      "max_chance": 95,
      "min_chance": 5,
      "detection_on_failure": true,
      "skill_bonus_per_level": 0.5,
      "item_weight_penalty": 2.0,
      "item_value_penalty": 0.1,
      "distracted_bonus": 20,
      "sleeping_bonus": 40
    },
    "lockpicking_difficulty_tiers": {
      "novice": {
        "tier": 1,
        "sweet_spot_angle": 30,
        "sweet_spot_unit": "degrees",
        "max_attempts": 15,
        "skill_requirement": 0,
        "experience_reward": 10
      },
      "apprentice": {
        "tier": 2,
        "sweet_spot_angle": 22,
        "sweet_spot_unit": "degrees",
        "max_attempts": 12,
        "skill_requirement": 15,
        "experience_reward": 20
      },
      "adept": {
        "tier": 3,
        "sweet_spot_angle": 15,
        "sweet_spot_unit": "degrees",
        "max_attempts": 10,
        "skill_requirement": 40,
        "experience_reward": 40
      },
      "expert": {
        "tier": 4,
        "sweet_spot_angle": 8,
        "sweet_spot_unit": "degrees",
        "max_attempts": 8,
        "skill_requirement": 65,
        "experience_reward": 70
      },
      "master": {
        "tier": 5,
        "sweet_spot_angle": 4,
        "sweet_spot_unit": "degrees",
        "max_attempts": 5,
        "skill_requirement": 85,
        "experience_reward": 120
      }
    },
    "sound_propagation": {
      "footstep_radius": {
        "barefoot": 5.0,
        "cloth": 8.0,
        "leather": 12.0,
        "chainmail": 18.0,
        "plate": 25.0
      },
      "footstep_radius_unit": "units",
      "combat_noise_radius": {
        "melee_hit": 30.0,
        "melee_miss": 15.0,
        "bow_shot": 20.0,
        "crossbow_shot": 35.0,
        "shield_block": 25.0,
        "kill_sound": 20.0
      },
      "spell_noise_radius": {
        "silent_spells": 0.0,
        "whisper_spells": 5.0,
        "normal_spells": 25.0,
        "loud_spells": 40.0,
        "explosion_spells": 60.0
      },
      "environmental_modifiers": {
        "indoor_echo": 1.3,
        "outdoor_open": 0.8,
        "rain_masking": 0.6,
        "wind_masking": 0.7,
        "crowd_masking": 0.5
      },
      "sound_decay_formula": "volume * (1 / (distance * 0.1 + 1))"
    },
    "enemy_vision": {
      "front_cone_angle": 120,
      "peripheral_cone_angle": 180,
      "peripheral_detection_multiplier": 0.3,
      "vertical_angle_limit": 60,
      "darkness_range_reduction": 0.4
    }
  },
  "enemy_ai": {
    "states": {
      "patrol": {
        "description": "Following a predefined patrol route",
        "movement_speed": 0.4,
        "awareness_radius": 20.0,
        "attack_patterns": "none",
        "behavior": "follow_waypoints",
        "idle_pause_chance": 0.2,
        "idle_pause_duration_range": [2.0, 5.0]
      },
      "idle": {
        "description": "Standing in place or performing ambient actions",
        "movement_speed": 0.0,
        "awareness_radius": 15.0,
        "attack_patterns": "none",
        "behavior": "ambient_actions",
        "look_around_interval": 8.0
      },
      "suspicious": {
        "description": "Noticed something unusual, investigating cautiously",
        "movement_speed": 0.5,
        "awareness_radius": 25.0,
        "attack_patterns": "none",
        "behavior": "investigate_last_stimulus",
        "investigation_duration": 10.0,
        "voice_line_trigger": "suspicious"
      },
      "alert": {
        "description": "Highly aware, actively searching for threats",
        "movement_speed": 0.7,
        "awareness_radius": 35.0,
        "attack_patterns": "ready",
        "behavior": "active_search",
        "weapon_drawn": true,
        "calls_for_backup": true,
        "backup_call_radius": 30.0,
        "search_duration": 20.0
      },
      "combat": {
        "description": "Actively engaging the player in combat",
        "movement_speed": 0.8,
        "awareness_radius": 40.0,
        "attack_patterns": "full",
        "behavior": "engage_target",
        "weapon_drawn": true,
        "strafe_enabled": true,
        "dodge_enabled": true,
        "block_enabled": true
      },
      "flee": {
        "description": "Running away from combat when health is critically low",
        "movement_speed": 1.2,
        "awareness_radius": 10.0,
        "attack_patterns": "none",
        "behavior": "run_to_safety",
        "flee_health_threshold": 0.15,
        "seek_allies": true,
        "use_healing_items": true
      },
      "search": {
        "description": "Lost sight of target, searching last known position",
        "movement_speed": 0.6,
        "awareness_radius": 30.0,
        "attack_patterns": "ready",
        "behavior": "search_last_known_position",
        "search_pattern": "expanding_spiral",
        "search_duration": 30.0,
        "voice_line_trigger": "searching"
      },
      "return": {
        "description": "Giving up search and returning to original position",
        "movement_speed": 0.5,
        "awareness_radius": 20.0,
        "attack_patterns": "none",
        "behavior": "return_to_origin",
        "heightened_awareness_duration": 15.0,
        "leash_distance": 60.0
      }
    },
    "transition_conditions": {
      "patrol_to_suspicious": {
        "condition": "detection_level > 30%",
        "or_condition": "heard_noise_in_range",
        "transition_time": 0.5
      },
      "patrol_to_idle": {
        "condition": "reached_patrol_endpoint",
        "idle_duration_range": [3.0, 8.0]
      },
      "idle_to_patrol": {
        "condition": "idle_timer_expired",
        "transition_time": 0.3
      },
      "idle_to_suspicious": {
        "condition": "detection_level > 30%",
        "or_condition": "heard_noise_in_range",
        "transition_time": 0.5
      },
      "suspicious_to_alert": {
        "condition": "detection_level > 70%",
        "or_condition": "found_evidence",
        "transition_time": 0.3
      },
      "suspicious_to_patrol": {
        "condition": "investigation_timer_expired AND detection_level < 15%",
        "transition_time": 2.0
      },
      "alert_to_combat": {
        "condition": "detection_level >= 100%",
        "or_condition": "took_damage",
        "transition_time": 0.1
      },
      "alert_to_search": {
        "condition": "search_timer_expired AND no_target_visible",
        "transition_time": 1.0
      },
      "combat_to_flee": {
        "condition": "health_percent < flee_threshold AND not_boss",
        "transition_time": 0.2,
        "cowardice_check": true
      },
      "combat_to_search": {
        "condition": "target_not_visible_for > 5s",
        "transition_time": 1.0
      },
      "flee_to_combat": {
        "condition": "health_recovered OR cornered OR ally_nearby",
        "transition_time": 0.3
      },
      "search_to_combat": {
        "condition": "detection_level >= 100%",
        "transition_time": 0.1
      },
      "search_to_return": {
        "condition": "search_timer_expired AND detection_level < 10%",
        "transition_time": 1.5
      },
      "return_to_suspicious": {
        "condition": "detection_level > 20%",
        "transition_time": 0.5
      },
      "return_to_patrol": {
        "condition": "reached_origin_position",
        "transition_time": 1.0
      }
    },
    "difficulty_scaling": {
      "easy": {
        "enemy_level_offset": -3,
        "damage_scaling": 0.7,
        "health_scaling": 0.8,
        "detection_speed_multiplier": 0.6,
        "ai_reaction_delay": 0.5,
        "attack_frequency_multiplier": 0.7,
        "block_chance_modifier": -0.2,
        "loot_multiplier": 0.8,
        "experience_multiplier": 0.8
      },
      "normal": {
        "enemy_level_offset": 0,
        "damage_scaling": 1.0,
        "health_scaling": 1.0,
        "detection_speed_multiplier": 1.0,
        "ai_reaction_delay": 0.3,
        "attack_frequency_multiplier": 1.0,
        "block_chance_modifier": 0.0,
        "loot_multiplier": 1.0,
        "experience_multiplier": 1.0
      },
      "hard": {
        "enemy_level_offset": 3,
        "damage_scaling": 1.4,
        "health_scaling": 1.5,
        "detection_speed_multiplier": 1.3,
        "ai_reaction_delay": 0.15,
        "attack_frequency_multiplier": 1.3,
        "block_chance_modifier": 0.15,
        "loot_multiplier": 1.3,
        "experience_multiplier": 1.3
      },
      "legendary": {
        "enemy_level_offset": 5,
        "damage_scaling": 2.0,
        "health_scaling": 2.5,
        "detection_speed_multiplier": 1.6,
        "ai_reaction_delay": 0.05,
        "attack_frequency_multiplier": 1.5,
        "block_chance_modifier": 0.3,
        "loot_multiplier": 1.8,
        "experience_multiplier": 1.8,
        "enemies_use_potions": true,
        "enemies_coordinate_attacks": true
      }
    },
    "enemy_archetypes": {
      "warrior": {
        "preferred_range": 2.5,
        "health_multiplier": 1.0,
        "damage_multiplier": 1.0,
        "armor_multiplier": 1.2,
        "attack_patterns": ["light_combo", "heavy_attack", "shield_bash", "power_strike"],
        "special_abilities": ["battle_cry", "shield_wall"],
        "behavior_notes": "Balanced fighter, uses shield effectively, moderate aggression"
      },
      "archer": {
        "preferred_range": 25.0,
        "health_multiplier": 0.7,
        "damage_multiplier": 1.1,
        "armor_multiplier": 0.6,
        "attack_patterns": ["aimed_shot", "quick_shot", "volley", "retreat_shot"],
        "special_abilities": ["rain_of_arrows", "poison_arrow"],
        "behavior_notes": "Maintains distance, repositions frequently, switches to dagger at close range"
      },
      "mage": {
        "preferred_range": 20.0,
        "health_multiplier": 0.6,
        "damage_multiplier": 1.4,
        "armor_multiplier": 0.3,
        "attack_patterns": ["firebolt_spam", "frost_nova_if_close", "lightning_bolt", "ward_when_attacked"],
        "special_abilities": ["teleport_blink", "mana_shield", "elemental_burst"],
        "behavior_notes": "Glass cannon, teleports away when threatened, uses elemental weaknesses"
      },
      "assassin": {
        "preferred_range": 1.5,
        "health_multiplier": 0.65,
        "damage_multiplier": 1.6,
        "armor_multiplier": 0.4,
        "attack_patterns": ["backstab", "dual_strike", "poison_attack", "vanish_reposition"],
        "special_abilities": ["smoke_bomb", "shadow_step", "mark_for_death"],
        "behavior_notes": "Stealthy, opens with sneak attack, vanishes and repositions when detected"
      },
      "berserker": {
        "preferred_range": 3.0,
        "health_multiplier": 1.3,
        "damage_multiplier": 1.5,
        "armor_multiplier": 0.5,
        "attack_patterns": ["frenzied_strikes", "leaping_attack", "whirlwind", "ground_slam"],
        "special_abilities": ["enrage", "blood_frenzy", "unstoppable_charge"],
        "behavior_notes": "Extremely aggressive, gets stronger at low health, rarely blocks or dodges"
      },
      "healer": {
        "preferred_range": 15.0,
        "health_multiplier": 0.8,
        "damage_multiplier": 0.6,
        "armor_multiplier": 0.5,
        "attack_patterns": ["holy_bolt", "smite", "heal_ally", "shield_ally"],
        "special_abilities": ["mass_heal", "resurrection", "divine_protection"],
        "behavior_notes": "Prioritizes healing allies, stays behind front line, must be killed early",
        "heal_priority": "lowest_health_ally"
      },
      "tank": {
        "preferred_range": 2.0,
        "health_multiplier": 2.0,
        "damage_multiplier": 0.7,
        "armor_multiplier": 2.0,
        "attack_patterns": ["shield_slam", "taunt", "heavy_swing", "ground_pound"],
        "special_abilities": ["fortify", "rallying_cry", "iron_skin"],
        "behavior_notes": "Absorbs damage, protects allies, taunts player to focus on them"
      },
      "summoner": {
        "preferred_range": 25.0,
        "health_multiplier": 0.7,
        "damage_multiplier": 0.8,
        "armor_multiplier": 0.4,
        "attack_patterns": ["summon_minion", "direct_minions", "dark_bolt", "life_drain"],
        "special_abilities": ["mass_summon", "empower_minions", "sacrifice_minion"],
        "behavior_notes": "Weak alone but dangerous with minions, flees when minions die",
        "max_active_summons": 3,
        "summon_cooldown": 8.0
      },
      "necromancer": {
        "preferred_range": 22.0,
        "health_multiplier": 0.75,
        "damage_multiplier": 1.0,
        "armor_multiplier": 0.35,
        "attack_patterns": ["raise_corpse", "death_bolt", "soul_drain", "bone_wall"],
        "special_abilities": ["mass_resurrect", "death_nova", "lich_form"],
        "behavior_notes": "Raises fallen enemies to fight again, gets stronger in areas with corpses"
      }
    },
    "boss_mechanics": {
      "phase_system": {
        "description": "Bosses transition through combat phases as health decreases",
        "phase_thresholds": [1.0, 0.7, 0.4, 0.15],
        "phase_transition_invulnerability_duration": 2.0,
        "phase_transition_animation": true,
        "new_abilities_per_phase": true,
        "stat_scaling_per_phase": {
          "phase_1": { "damage_multiplier": 1.0, "speed_multiplier": 1.0 },
          "phase_2": { "damage_multiplier": 1.2, "speed_multiplier": 1.1 },
          "phase_3": { "damage_multiplier": 1.5, "speed_multiplier": 1.25 },
          "phase_4": { "damage_multiplier": 1.8, "speed_multiplier": 1.4 }
        }
      },
      "enrage_timer": {
        "enabled": true,
        "default_timer_seconds": 300,
        "enrage_damage_multiplier": 3.0,
        "enrage_speed_multiplier": 1.5,
        "warning_at_seconds_remaining": 30,
        "visual_indicator": "red_aura_intensifying"
      },
      "special_attack_patterns": {
        "ground_slam": {
          "telegraph_time": 1.5,
          "damage": 80,
          "aoe_radius": 8.0,
          "shockwave_speed": 15.0,
          "stagger_duration": 2.0
        },
        "charge_attack": {
          "telegraph_time": 1.0,
          "damage": 60,
          "charge_distance": 20.0,
          "charge_speed": 25.0,
          "wall_stun_duration": 3.0
        },
        "breath_attack": {
          "telegraph_time": 0.8,
          "damage_per_tick": 20,
          "cone_angle": 60,
          "cone_range": 15.0,
          "duration": 3.0,
          "element": "varies"
        },
        "summon_adds": {
          "telegraph_time": 2.0,
          "add_count": 4,
          "add_type": "varies",
          "add_health_percent_of_boss": 0.1,
          "cooldown": 30.0
        },
        "arena_hazard": {
          "telegraph_time": 2.5,
          "hazard_types": ["fire_floor", "falling_rocks", "poison_clouds", "lightning_strikes"],
          "safe_zone_count": 2,
          "duration": 8.0,
          "damage_per_tick": 15
        }
      },
      "boss_resistances": {
        "crowd_control_duration_multiplier": 0.3,
        "stagger_threshold_multiplier": 3.0,
        "knockback_resistance": 0.8,
        "status_effect_duration_multiplier": 0.5
      }
    },
    "group_tactics": {
      "flanking_enabled": true,
      "flanking_damage_bonus": 0.2,
      "surround_threshold": 3,
      "leader_coordination": true,
      "retreat_signal_propagation": 15.0,
      "max_simultaneous_attackers": 3
    }
  },
  "damage_formula": {
    "formula": "base_damage * weapon_modifier * skill_bonus * (1 - armor_reduction) * critical_multiplier * elemental_modifier * difficulty_modifier",
    "components": {
      "base_damage": {
        "description": "Weapon base damage + strength_bonus (melee) or dexterity_bonus (ranged) or intelligence_bonus (magic)",
        "melee_stat_scaling": "base_weapon_damage + (strength * 0.5)",
        "ranged_stat_scaling": "base_weapon_damage + (dexterity * 0.4)",
        "magic_stat_scaling": "base_spell_damage * (1 + intelligence * 0.03 + skill_level * 0.02)"
      },
      "weapon_modifier": {
        "description": "Quality and enchantment bonus of the weapon",
        "quality_tiers": {
          "broken": 0.5,
          "worn": 0.75,
          "normal": 1.0,
          "fine": 1.15,
          "superior": 1.3,
          "exquisite": 1.45,
          "legendary": 1.7,
          "mythic": 2.0
        },
        "enchantment_bonus_range": [0.05, 0.5]
      },
      "skill_bonus": {
        "description": "Bonus from relevant weapon/magic skill level",
        "formula": "1 + (skill_level * 0.005)",
        "max_skill_level": 100,
        "max_bonus": 1.5
      },
      "difficulty_modifier": {
        "easy": 1.3,
        "normal": 1.0,
        "hard": 0.8,
        "legendary": 0.6
      }
    },
    "armor_reduction": {
      "formula": "armor_value / (armor_value + 100)",
      "type": "diminishing_returns",
      "examples": {
        "armor_0": 0.0,
        "armor_50": 0.333,
        "armor_100": 0.5,
        "armor_200": 0.667,
        "armor_500": 0.833
      },
      "armor_cap": 0.85,
      "armor_penetration_formula": "effective_armor = armor * (1 - penetration_percent)",
      "flat_armor_reduction_applied_first": true
    },
    "critical_system": {
      "base_crit_chance": 0.05,
      "base_crit_damage": 1.5,
      "luck_bonus_formula": "luck * 0.005",
      "max_crit_chance": 0.60,
      "skill_crit_bonuses": {
        "one_handed": { "bonus_per_10_levels": 0.01, "max_bonus": 0.10 },
        "two_handed": { "bonus_per_10_levels": 0.015, "max_bonus": 0.15 },
        "dagger": { "bonus_per_10_levels": 0.02, "max_bonus": 0.20 },
        "bow": { "bonus_per_10_levels": 0.012, "max_bonus": 0.12 },
        "crossbow": { "bonus_per_10_levels": 0.008, "max_bonus": 0.08 },
        "destruction_magic": { "bonus_per_10_levels": 0.01, "max_bonus": 0.10 }
      },
      "crit_damage_bonuses": {
        "assassin_perk": 0.5,
        "berserker_perk": 0.3,
        "precision_perk": 0.25,
        "enchantment_max": 0.5
      }
    },
    "elemental_damage_types": {
      "fire": {
        "color": "#FF4500",
        "status_effect": "burn",
        "application_chance": 0.25,
        "strong_against": ["ice", "nature"],
        "weak_against": ["fire", "water"]
      },
      "ice": {
        "color": "#00BFFF",
        "status_effect": "freeze",
        "application_chance": 0.20,
        "strong_against": ["lightning", "nature"],
        "weak_against": ["ice", "fire"]
      },
      "lightning": {
        "color": "#FFD700",
        "status_effect": "stun",
        "application_chance": 0.15,
        "strong_against": ["water", "metal_armor"],
        "weak_against": ["lightning", "earth"]
      },
      "poison": {
        "color": "#32CD32",
        "status_effect": "poison",
        "application_chance": 0.30,
        "strong_against": ["nature", "beast"],
        "weak_against": ["undead", "construct"]
      },
      "holy": {
        "color": "#FFFACD",
        "status_effect": "purify",
        "application_chance": 0.20,
        "strong_against": ["undead", "dark", "demon"],
        "weak_against": ["holy", "construct"]
      },
      "dark": {
        "color": "#4B0082",
        "status_effect": "curse",
        "application_chance": 0.20,
        "strong_against": ["holy", "human"],
        "weak_against": ["dark", "undead"]
      },
      "arcane": {
        "color": "#9932CC",
        "status_effect": "mana_burn",
        "application_chance": 0.15,
        "strong_against": ["magic_users"],
        "weak_against": ["arcane"]
      }
    },
    "resistances_and_vulnerabilities": {
      "description": "Resistance reduces elemental damage, vulnerability increases it",
      "resistance_formula": "elemental_damage * (1 - resistance_percent)",
      "vulnerability_formula": "elemental_damage * (1 + vulnerability_percent)",
      "cap_resistance": 0.80,
      "cap_vulnerability": 1.0,
      "enemy_type_defaults": {
        "undead": {
          "fire": -0.25,
          "ice": 0.25,
          "lightning": 0.0,
          "poison": 0.75,
          "holy": -0.50,
          "dark": 0.50,
          "arcane": 0.0
        },
        "beast": {
          "fire": -0.20,
          "ice": -0.15,
          "lightning": -0.10,
          "poison": -0.30,
          "holy": 0.0,
          "dark": 0.0,
          "arcane": 0.25
        },
        "demon": {
          "fire": 0.50,
          "ice": -0.25,
          "lightning": 0.0,
          "poison": 0.25,
          "holy": -0.50,
          "dark": 0.50,
          "arcane": -0.15
        },
        "construct": {
          "fire": 0.0,
          "ice": 0.0,
          "lightning": -0.40,
          "poison": 0.80,
          "holy": 0.50,
          "dark": 0.50,
          "arcane": -0.20
        },
        "dragon": {
          "fire": 0.50,
          "ice": 0.25,
          "lightning": 0.25,
          "poison": 0.40,
          "holy": 0.0,
          "dark": 0.0,
          "arcane": -0.15
        },
        "elemental_fire": {
          "fire": 0.80,
          "ice": -0.50,
          "lightning": 0.0,
          "poison": 0.60,
          "holy": 0.0,
          "dark": 0.0,
          "arcane": 0.0
        },
        "elemental_ice": {
          "fire": -0.50,
          "ice": 0.80,
          "lightning": 0.0,
          "poison": 0.60,
          "holy": 0.0,
          "dark": 0.0,
          "arcane": 0.0
        },
        "human": {
          "fire": 0.0,
          "ice": 0.0,
          "lightning": 0.0,
          "poison": 0.0,
          "holy": 0.0,
          "dark": 0.0,
          "arcane": 0.0
        }
      }
    },
    "damage_variance": {
      "enabled": true,
      "variance_range": 0.1,
      "formula": "final_damage * random(0.9, 1.1)"
    },
    "level_scaling": {
      "damage_per_level": 0.02,
      "formula": "final_damage * (1 + (attacker_level - 1) * 0.02)",
      "level_difference_penalty": {
        "per_level_below": 0.05,
        "max_penalty": 0.50,
        "per_level_above": 0.03,
        "max_bonus": 0.30
      }
    }
  },
  "status_effects": {
    "effects": {
      "poison": {
        "type": "damage_over_time",
        "damage_per_tick": 3,
        "tick_interval": 1.0,
        "duration": 5.0,
        "total_damage": 15,
        "can_kill": true,
        "visual_indicator": "green_particles",
        "icon_color": "#32CD32",
        "reduces_healing_received": 0.2
      },
      "burn": {
        "type": "damage_over_time",
        "damage_per_tick": 5,
        "tick_interval": 0.5,
        "duration": 4.0,
        "total_damage": 40,
        "can_kill": true,
        "visual_indicator": "flame_particles",
        "icon_color": "#FF4500",
        "spreads_to_nearby": true,
        "spread_radius": 2.0,
        "spread_chance": 0.15
      },
      "freeze": {
        "type": "crowd_control",
        "damage_per_tick": 0,
        "duration": 3.0,
        "movement_speed_modifier": -0.5,
        "attack_speed_modifier": -0.25,
        "cannot_act": false,
        "visual_indicator": "ice_encasement",
        "icon_color": "#00BFFF",
        "breakable_by_damage_threshold": 30
      },
      "stun": {
        "type": "crowd_control",
        "damage_per_tick": 0,
        "duration": 2.0,
        "cannot_act": true,
        "cannot_move": true,
        "visual_indicator": "stars_circling_head",
        "icon_color": "#FFD700",
        "boss_duration_multiplier": 0.3
      },
      "bleed": {
        "type": "damage_over_time",
        "damage_per_tick": 4,
        "tick_interval": 1.0,
        "duration": 6.0,
        "total_damage": 24,
        "can_kill": false,
        "minimum_health_percent": 0.01,
        "visual_indicator": "blood_drip_particles",
        "icon_color": "#8B0000",
        "movement_leaves_blood_trail": true
      },
      "curse": {
        "type": "debuff",
        "damage_per_tick": 0,
        "duration": 10.0,
        "stat_modifier_all": -0.2,
        "visual_indicator": "dark_aura",
        "icon_color": "#4B0082",
        "prevents_healing_potions": false,
        "reduces_experience_gain": 0.5
      },
      "weakness": {
        "type": "debuff",
        "damage_per_tick": 0,
        "duration": 8.0,
        "damage_taken_modifier": 0.3,
        "visual_indicator": "cracked_armor_overlay",
        "icon_color": "#CD853F",
        "armor_reduction_percent": 0.2
      },
      "silence": {
        "type": "crowd_control",
        "damage_per_tick": 0,
        "duration": 5.0,
        "cannot_cast_spells": true,
        "cannot_use_shouts": true,
        "visual_indicator": "muted_symbol",
        "icon_color": "#808080"
      },
      "fear": {
        "type": "crowd_control",
        "damage_per_tick": 0,
        "duration": 4.0,
        "forces_flee": true,
        "flee_speed_multiplier": 1.3,
        "cannot_attack": true,
        "visual_indicator": "shadow_tendrils",
        "icon_color": "#2F4F4F",
        "breaks_on_damage_chance": 0.25
      },
      "slow": {
        "type": "debuff",
        "damage_per_tick": 0,
        "duration": 6.0,
        "movement_speed_modifier": -0.3,
        "attack_speed_modifier": -0.15,
        "visual_indicator": "blue_tint_on_legs",
        "icon_color": "#4682B4"
      },
      "regeneration": {
        "type": "heal_over_time",
        "heal_per_tick": 5,
        "tick_interval": 1.0,
        "duration": 8.0,
        "total_heal": 40,
        "visual_indicator": "green_glow",
        "icon_color": "#00FF7F"
      },
      "shield": {
        "type": "buff",
        "absorb_amount": 50,
        "duration": 10.0,
        "visual_indicator": "golden_barrier",
        "icon_color": "#FFD700",
        "blocks_status_effects": false,
        "remaining_absorb_visible": true
      },
      "mana_burn": {
        "type": "debuff",
        "mana_drain_per_tick": 5,
        "tick_interval": 1.0,
        "duration": 5.0,
        "damage_from_drained_mana": 0.5,
        "visual_indicator": "arcane_drain_particles",
        "icon_color": "#9932CC"
      },
      "blind": {
        "type": "crowd_control",
        "damage_per_tick": 0,
        "duration": 3.0,
        "miss_chance_increase": 0.5,
        "reduces_awareness_radius": 0.75,
        "visual_indicator": "screen_fog_effect",
        "icon_color": "#696969"
      },
      "enrage": {
        "type": "buff_and_debuff",
        "damage_dealt_modifier": 0.3,
        "damage_taken_modifier": 0.2,
        "attack_speed_modifier": 0.2,
        "duration": 10.0,
        "visual_indicator": "red_aura",
        "icon_color": "#FF0000"
      }
    },
    "stacking_rules": {
      "damage_over_time": {
        "max_stacks": 3,
        "stacking_behavior": "independent_timers",
        "description": "Each application runs its own timer, up to 3 simultaneous instances"
      },
      "crowd_control": {
        "max_stacks": 1,
        "stacking_behavior": "refresh_duration",
        "description": "Reapplication refreshes the duration, does not stack"
      },
      "debuffs": {
        "max_stacks": 2,
        "stacking_behavior": "strongest_wins",
        "description": "The strongest version of the debuff takes priority, up to 2 different sources"
      },
      "buffs": {
        "max_stacks": 1,
        "stacking_behavior": "refresh_and_strengthen",
        "description": "Reapplication refreshes duration; if from stronger source, upgrades the value"
      }
    },
    "immunity_periods": {
      "stun_immunity_after_stun": 3.0,
      "fear_immunity_after_fear": 5.0,
      "freeze_immunity_after_freeze": 4.0,
      "knockback_immunity_after_knockback": 2.0,
      "boss_cc_immunity_window": 8.0,
      "diminishing_returns": {
        "enabled": true,
        "first_application": 1.0,
        "second_application_within_window": 0.5,
        "third_application_within_window": 0.25,
        "immune_after_third": true,
        "diminishing_window": 15.0
      }
    },
    "cleanse_mechanics": {
      "purify_spell": {
        "removes": "all_negative",
        "max_effects_removed": 99,
        "mana_cost": 30,
        "cooldown": 5.0
      },
      "antidote_potion": {
        "removes": ["poison", "bleed"],
        "max_effects_removed": 3,
        "grants_immunity_duration": 5.0
      },
      "fire_resistance_potion": {
        "removes": ["burn"],
        "max_effects_removed": 1,
        "grants_resistance_duration": 30.0,
        "resistance_amount": 0.5
      },
      "dispel_scroll": {
        "removes": ["curse", "weakness", "silence", "slow"],
        "max_effects_removed": 2
      },
      "natural_cleanse": {
        "submerge_in_water": {
          "removes": ["burn"],
          "instant": true
        },
        "stand_near_fire": {
          "removes": ["freeze"],
          "time_required": 2.0
        }
      }
    },
    "interaction_rules": {
      "burn_plus_freeze": {
        "result": "steam",
        "effect_name": "blind",
        "aoe_radius": 4.0,
        "duration": 3.0,
        "removes_both_original": true,
        "description": "Fire and ice cancel out, producing a steam cloud that blinds"
      },
      "poison_plus_fire": {
        "result": "toxic_cloud",
        "effect_name": "toxic_cloud",
        "aoe_radius": 5.0,
        "damage_per_tick": 6,
        "tick_interval": 0.5,
        "duration": 4.0,
        "removes_both_original": true,
        "description": "Poison ignites into a toxic cloud dealing area damage"
      },
      "bleed_plus_poison": {
        "result": "infected_wound",
        "effect_name": "infected_wound",
        "damage_per_tick": 8,
        "tick_interval": 1.0,
        "duration": 8.0,
        "healing_received_reduction": 0.5,
        "removes_both_original": true,
        "description": "Poison enters the bloodstream through open wounds for amplified effect"
      },
      "stun_plus_freeze": {
        "result": "shatter_ready",
        "effect_name": "shatter_ready",
        "duration": 3.0,
        "next_hit_bonus_damage": 2.0,
        "removes_both_original": false,
        "description": "Target is both stunned and frozen, next physical hit deals double damage"
      },
      "burn_plus_slow": {
        "result": "heat_exhaustion",
        "effect_name": "heat_exhaustion",
        "stamina_drain_per_second": 8,
        "movement_speed_modifier": -0.5,
        "duration": 5.0,
        "removes_both_original": true,
        "description": "The combination drains stamina rapidly and further reduces speed"
      },
      "lightning_plus_water": {
        "result": "electrified",
        "effect_name": "electrified",
        "damage_multiplier": 1.5,
        "stun_duration": 2.0,
        "aoe_radius": 6.0,
        "affects_all_in_water": true,
        "description": "Lightning conducts through water, stunning and damaging all within it"
      },
      "curse_plus_holy": {
        "result": "nullify",
        "effect_name": "nullified",
        "removes_both_original": true,
        "small_aoe_damage": 15,
        "aoe_radius": 3.0,
        "description": "Holy and dark energies cancel each other out in a small explosion"
      }
    },
    "environmental_effects": {
      "rain": {
        "applies_wet": true,
        "wet_lightning_vulnerability": 0.25,
        "wet_fire_resistance": 0.15,
        "reduces_burn_duration": 0.5
      },
      "sandstorm": {
        "applies_blind_chance": 0.1,
        "accuracy_penalty": 0.15,
        "ranged_damage_penalty": 0.1
      },
      "blizzard": {
        "applies_slow_over_time": true,
        "slow_buildup_per_second": 0.05,
        "freeze_threshold": 1.0,
        "fire_spells_reduced": 0.2
      }
    }
  }
}