// ============================================
// PHASE 3 - THIEF MOD CONFIG + KubeJS INTEGRATION
// ============================================

// --------- FILE: thief-config.toml ---------
// À placer dans config/thief-server.toml

[crime]
    # Crimes LIGHT: crops, hay, lantern, campfire
    light_reputation_loss = 25
    
    # Crimes MEDIUM: chests, barrels, beds, job blocks
    medium_reputation_loss = 50  # ← AUGMENTÉ (normalement ~25)
    
    # Crimes HEAVY: bells
    heavy_reputation_loss = 100  # ← AUGMENTÉ (normalement ~50)

[witness]
    # Distance de détection (en blocs)
    detection_distance = 20
    
    # Applique à tous les villages
    enable_witness_system = true

[reputation]
    # Niveau où Iron Golem attaque
    attack_threshold = "hateful"  # hateful < unwelcome < distrusted < neutral
    
    # Penalty supplémentaire pour chest
    chest_stealing_multiplier = 1.5

[mechanics]
    # Les coffres des villages sont prioritaires
    prioritize_village_chests = true
    
    # Sneak = -33% detection
    sneaking_detection_reduction = 0.33
    
    # Dark = -25% detection
    darkness_detection_reduction = 0.25

# --------- KubeJS INTEGRATION ---------
// À ajouter dans server_scripts/thief_integration.js

ServerEvents.recipes(event => {
    // Crafting Lockpick dans KubeJS
    event.shapeless('lockpick:lockpick', [
        'minecraft:stick',
        'minecraft:iron_ingot',
        'minecraft:copper_ingot'
    ]).id('lockpick:lockpick_craft')
    
    console.log('✅ Thief Integration: Lockpick craft enregistré')
})

// --------- GAMEPLAY FLOW ---------
/*
SCÉNARIO HARDCORE:

1. Spawn à 3 coeurs
   → Chercher Coeur de Paraglider en monde
   
2. Find Village
   → Repérer le Blacksmith
   → Chest = LOCKED (mod lockpick)
   
3. Craft Lockpick
   → Faut des ressources: Stick (facile) + Iron Ingot + Copper Ingot
   → BUT PROBLÈME: Iron Ingot nécessite Blast Furnace (qui est dans le village!)
   → SOLUTION: Piller crafting materials d'abord
   
4. Tentative vol chest
   → Village Witness = Villagois présents
   → Si détecté = Reputation LOSS (Thief mod)
   → Sneak pour éviter détection
   → Déverrouiller chest avec Lockpick
   
5. Gain Blast Furnace
   → Placer & utiliser pour lingots chauds
   → Lancer automation Create
   
6. LATE GAME
   → Steel automation (TFMG)
   → Massive factory building
   → War avec villages ou friendly trading?
   
BALANCE HARDCORE:
- 3 coeurs = mourir facile
- Bruit attire mobs (détection en cours)
- Reputation = conséquence pour vol
- Lockpick = investissement de ressources
- Blast Furnace = bottleneck mineur
*/

// --------- ITEMS À CRÉER EN KubeJS STARTUP ---------
/*
StartupEvents.registry('item', event => {
    event.create('lockpick:lockpick', 'basic')
        .rarity('uncommon')
        .maxStackSize(16)
        .maxDamage(0)
        .texture('lockpick:item/lockpick')
})
*/
