Outils pour utilisateurs

Outils du site


simulateur

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
simulateur [2026/10/05 17:31] – nanakisimulateur [2026/10/16 18:08] (Version actuelle) – nanaki
Ligne 1: Ligne 1:
 Bonjour, Bonjour,
-Voici le simulateur pour la saison 3. +Voici le simulateur pour la saison 3. \\ 
-N'hésitez pas à remonter des problèmes si il y a.+N'hésitez pas à remonter des problèmes si il y a.\\
 Le bouton import et export ne fonctionnent plus très bien, utiliser le bouton lien pour le moment. Le bouton import et export ne fonctionnent plus très bien, utiliser le bouton lien pour le moment.
  
Ligne 56: Ligne 56:
 } }
  
-.equipStats { margin-left:5px; }+.equipStats { 
 +    margin-left:5px; 
 +}
  
-.bonus,.special { color:#00ff00; } +.bonus,.special { 
-.malus { color:#ff3333; }+    color:#00ff00; 
 +} 
 + 
 +.malus { 
 +    color:#ff3333; 
 +} 
 + 
 +/* Magie interdite : rouge uniquement dans les bonus/malus */ 
 +.forbiddenMagic { 
 +    color:#ff3333; 
 +    font-weight:bold; 
 +}
  
 button { button {
Ligne 256: Ligne 269:
     e:[120,55,30],     e:[120,55,30],
     agi:[95,45,25],     agi:[95,45,25],
-    pui:[110,55,35], +    pui:[120,55,30], 
-    res:[110,55,35],+    res:[120,55,30],
     fm:[100,50,30],     fm:[100,50,30],
     p:[110,85,78],     p:[110,85,78],
Ligne 278: Ligne 291:
 {name:"Gladius",race:"all",slot:"rightHand",stats:{cc:1}}, {name:"Gladius",race:"all",slot:"rightHand",stats:{cc:1}},
 {name:"Sceptre",race:"all",slot:"rightHand",stats:{fm:1}}, {name:"Sceptre",race:"all",slot:"rightHand",stats:{fm:1}},
-{name:"Fustibale",race:"all",slot:"rightHand",stats:{ct:1,cc:-2}}, +{ 
-{name:"Arbalète de poing",race:"all",slot:"rightHand",stats:{f:12,ct:1}}, +    name:"Fustibale", 
-{name:"Torche",race:"all",slot:"rightHand",stats:{cc:-2,f:-2,feu:true}}, +    race:"all", 
-{name:"Lance barbelée",race:"all",slot:"rightHand",stats:{ct:1,f:1,cc:-1}}, +    slot:"rightHand", 
-{name:"Lance",race:"all",slot:"rightHand",stats:{ct:1,cc:-1}}, +    stats:{ct:1,cc:-2} 
-{name:"Rapière",race:"all",slot:"rightHand",stats:{cc:2,f:-1}}, +}, 
-{name:"Arc",race:"all",slot:"rightHand",stats:{ct:1,cc:-1}}, +{ 
-{name:"Arc long",race:"all",slot:"rightHand",stats:{ct:2,f:-1,cc:-2}}, +    name:"Arbalète de poing", 
-{name:"Bélier",race:"all",slot:"rightHand",stats:{demolition:10,cc:-2}}, +    race:"all", 
-{name:"Pioche",race:"all",slot:"rightHand",stats:{demolition:5}}, +    slot:"rightHand", 
-{name:"Catalyseur magique",race:"all",slot:"rightHand",stats:{magique:true,cc:-3,demolition:10}},+    stats:{f:12,ct:1} 
 +}, 
 +{ 
 +    name:"Torche", 
 +    race:"all", 
 +    slot:"rightHand", 
 +    stats:{cc:-2,f:-2,feu:true} 
 +}, 
 +{ 
 +    name:"Lance barbelée", 
 +    race:"all", 
 +    slot:"rightHand", 
 +    stats:{ct:1,f:1,cc:-1} 
 +}, 
 +{ 
 +    name:"Lance", 
 +    race:"all", 
 +    slot:"rightHand", 
 +    stats:{ct:1,cc:-1} 
 +}, 
 +{ 
 +    name:"Rapière", 
 +    race:"all", 
 +    slot:"rightHand", 
 +    stats:{cc:2,f:-1} 
 +}, 
 +{ 
 +    name:"Arc", 
 +    race:"all", 
 +    slot:"rightHand", 
 +    stats:{ct:1,cc:-1} 
 +}, 
 +{ 
 +    name:"Arc long", 
 +    race:"all", 
 +    slot:"rightHand", 
 +    stats:{ct:2,f:-1,cc:-2} 
 +}, 
 +{ 
 +    name:"Bélier", 
 +    race:"all", 
 +    slot:"rightHand", 
 +    stats:{demolition:10,cc:-2} 
 +}, 
 +{ 
 +    name:"Pioche", 
 +    race:"all", 
 +    slot:"rightHand", 
 +    stats:{demolition:5} 
 +}, 
 +{ 
 +    name:"Catalyseur magique", 
 +    race:"all", 
 +    slot:"rightHand", 
 +    stats:{fPui:true,cc:-3,demolition:10} 
 +},
  
-{name:"Targe",race:"all",slot:"leftHand",stats:{cc:1,agi:-1}}, +{ 
-{name:"Bouclier Parma",race:"all",slot:"leftHand",stats:{e:1,agi:-1}}, +    name:"Targe", 
-{name:"Écu brillant",race:"all",slot:"leftHand",stats:{res:1,agi:-1}},+    race:"all", 
 +    slot:"leftHand", 
 +    stats:{cc:1,agi:-1} 
 +}, 
 +{ 
 +    name:"Bouclier Parma", 
 +    race:"all", 
 +    slot:"leftHand", 
 +    stats:{e:1,agi:-1} 
 +}, 
 +{ 
 +    name:"Écu brillant", 
 +    race:"all", 
 +    slot:"leftHand", 
 +    stats:{res:1,agi:-1} 
 +},
  
-{name:"Armure matelassée",race:"all",slot:"body",stats:{e:1,agi:-1}}, +{ 
-{name:"Toge d'apprenti",race:"all",slot:"body",stats:{res:1,agi:-1}}, +    name:"Armure matelassée", 
-{name:"Ceinture",race:"all",slot:"body",stats:{r:1}},+    race:"all", 
 +    slot:"body", 
 +    stats:{e:1,agi:-1} 
 +}, 
 +{ 
 +    name:"Toge d'apprenti", 
 +    race:"all", 
 +    slot:"body", 
 +    stats:{res:1,agi:-1} 
 +}, 
 +{ 
 +    name:"Ceinture", 
 +    race:"all", 
 +    slot:"body", 
 +    stats:{r:1} 
 +},
  
-{name:"Cape de chasse",race:"all",slot:"cape",stats:{ct:1}},+{ 
 +    name:"Cape de chasse", 
 +    race:"all", 
 +    slot:"cape", 
 +    stats:{ct:1} 
 +},
  
-{name:"Couronne d'adonis",race:"all",slot:"head",stats:{rm:1}}, +{ 
-{name:"Visière",race:"all",slot:"head",stats:{p:1,cc:-1,fm:-1}}, +    name:"Couronne d'adonis", 
-{name:"Collier tressé",race:"all",slot:"head",stats:{pv:5,pm:5}},+    race:"all", 
 +    slot:"head", 
 +    stats:{rm:1} 
 +}, 
 +{ 
 +    name:"Visière", 
 +    race:"all", 
 +    slot:"head", 
 +    stats:{p:1,cc:-1,fm:-1} 
 +}, 
 +{ 
 +    name:"Collier tressé", 
 +    race:"all", 
 +    slot:"head", 
 +    stats:{pv:5,pm:5} 
 +},
  
-{name:"Bottes de marche",race:"all",slot:"feet",stats:{mvt:1}}, +{ 
-{name:"Sceptre de mage",race:"all",slot:"rightHand",stats:{pui:1,fm:1}}, +    name:"Bottes de marche", 
-{name:"Sarbacane",race:"all",slot:"rightHand",stats:{ct:1,f:10,cc:-1}}, +    race:"all", 
-{name:"Pierre Noire",race:"all",slot:"rightHand",stats:{f:1,cc:-1}},+    slot:"feet", 
 +    stats:{mvt:1} 
 +}, 
 +{ 
 +    name:"Sceptre de mage", 
 +    race:"all", 
 +    slot:"rightHand", 
 +    stats:{pui:1,fm:1} 
 +}, 
 +{ 
 +    name:"Sarbacane", 
 +    race:"all", 
 +    slot:"rightHand", 
 +    stats:{ct:1,f:10,cc:-1} 
 +}, 
 +{ 
 +    name:"Pierre Noire", 
 +    race:"all", 
 +    slot:"rightHand", 
 +    stats:{f:1,cc:-1} 
 +},
  
 /* OLYMPIENS */ /* OLYMPIENS */
  
-{name:"Spatha",race:"Olympien",slot:"rightHand",stats:{cc:1,f:1}}, +{ 
-{name:"Lame sainte",race:"Olympien",slot:"rightHand",stats:{cc:1,pui:1,magique:true}}, +    name:"Spatha", 
-{name:"Pilum",race:"Olympien",slot:"rightHand",stats:{f:1,mvt:1,cc:-1}}, +    race:"Olympien", 
-{name:"Sceptre de puissance",race:"Olympien",slot:"rightHand",stats:{pui:1,pm:8}}, +    slot:"rightHand", 
-{name:"Gastraphète",race:"Olympien",slot:"rightHand",stats:{f:15,ct:-2,cc:-1}}, +    stats:{cc:1,f:1} 
-{name:"Bouclier Ancile",race:"Olympien",slot:"leftHand",stats:{e:1,pv:5}}, +}, 
-{name:"Armure Hoplitique",race:"Olympien",slot:"body",stats:{e:1,res:1}}, +{ 
-{name:"Lorica",race:"Olympien",exo:true,slot:"body",stats:{e:1,res:1}}, +    name:"Lame sainte", 
-{name:"Cape de dueliste",race:"Olympien",slot:"cape",stats:{cc:2,f:-1}}, +    race:"Olympiens", 
-{name:"Diadème",race:"Olympien",slot:"head",stats:{r:1,rm:2}}, +    slot:"rightHand", 
-{name:"Tiare d'Oracle",race:"Olympien",slot:"head",stats:{fm:1,p:1}}, +    stats:{cc:1,pui:1,fPui:true} 
-{name:"Cnémides",race:"Olympien",slot:"feet",stats:{mvt:1,rm:1,r:1}},+}, 
 +{ 
 +    name:"Pilum", 
 +    race:"Olympien", 
 +    slot:"rightHand", 
 +    stats:{f:1,mvt:1,cc:-1} 
 +}, 
 +{ 
 +    name:"Sceptre de puissance", 
 +    race:"Olympien", 
 +    slot:"rightHand", 
 +    stats:{pui:1,pm:8} 
 +}, 
 +{ 
 +    name:"Gastraphète", 
 +    race:"Olympien", 
 +    slot:"rightHand", 
 +    stats:{f:15,ct:-2,cc:-1} 
 +}, 
 +{ 
 +    name:"Bouclier Ancile", 
 +    race:"Olympien", 
 +    slot:"leftHand", 
 +    stats:{e:1,pv:5} 
 +}, 
 +{ 
 +    name:"Armure Hoplitique", 
 +    race:"Olympien", 
 +    slot:"body", 
 +    stats:{e:1,res:1} 
 +}, 
 +{ 
 +    name:"Lorica", 
 +    race:"Olympien", 
 +    exo:true, 
 +    slot:"body", 
 +    stats:{e:1,res:1} 
 +}, 
 +{ 
 +    name:"Cape de dueliste", 
 +    race:"Olympien", 
 +    slot:"cape", 
 +    stats:{cc:2,f:-1} 
 +}, 
 +{ 
 +    name:"Diadème", 
 +    race:"Olympien", 
 +    slot:"head", 
 +    stats:{r:1,rm:2} 
 +}, 
 +{ 
 +    name:"Tiare d'Oracle", 
 +    race:"Olympien", 
 +    slot:"head", 
 +    stats:{fm:1,p:1} 
 +}, 
 +{ 
 +    name:"Cnémides", 
 +    race:"Olympien", 
 +    slot:"feet", 
 +    stats:{mvt:1,rm:1,r:1} 
 +},
  
 /* ELFES */ /* ELFES */
  
-{name:"Lance de garde Sylvestre",race:"Elfe",slot:"rightHand",stats:{cc:1,f:1}}, +{ 
-{name:"Baton du Pelerin",race:"Elfe",slot:"rightHand",stats:{mvt:1,fm:1}}, +    name:"Lance de garde Sylvestre", 
-{name:"Charybde",race:"Elfe",slot:"rightHand",stats:{pui:2,e:-1}}, +    race:"Elfe", 
-{name:"Arc Ensorcelé",race:"Elfe",slot:"rightHand",stats:{ct:1,rm:2,cc:-1,magique:true}}, +    slot:"rightHand", 
-{name:"Arc Elfique",race:"Elfe",exo:true,slot:"rightHand",stats:{ct:1,f:1,mvt:1,cc:-2}}, +    stats:{cc:1,f:1} 
-{name:"Targe renforcée",race:"Elfe",slot:"leftHand",stats:{e:1,cc:1}}, +}, 
-{name:"Cuirasse",race:"Elfe",slot:"body",stats:{res:1,r:2}}, +{ 
-{name:"Armure de garde Sylvestre",race:"Elfe",exo:true,slot:"body",stats:{res:2,pm:-10}}, +    name:"Baton du Pelerin", 
-{name:"Cape de feuillages",race:"Elfe",slot:"cape",stats:{fm:1,pv:5}}, +    race:"Elfe", 
-{name:"Marque Forestière",race:"Elfe",slot:"head",stats:{pm:10,r:1}}, +    slot:"rightHand", 
-{name:"Capuche du chasseur",race:"Elfe",slot:"head",stats:{ct:1,r:1,rm:1}}, +    stats:{mvt:1,fm:1} 
-{name:"Bottes Tâlroval",race:"Elfe",slot:"feet",stats:{mvt:2}},+}, 
 +{ 
 +    name:"Charybde", 
 +    race:"Elfe", 
 +    slot:"rightHand", 
 +    stats:{pui:2,e:-1} 
 +}, 
 +{ 
 +    name:"Arc Ensorcelé", 
 +    race:"Elfes", 
 +    slot:"rightHand", 
 +    stats:{ct:1,rm:2,cc:-1,fPui:true} 
 +}, 
 +{ 
 +    name:"Arc Elfique", 
 +    race:"Elfe", 
 +    exo:true, 
 +    slot:"rightHand", 
 +    stats:{ct:1,f:1,mvt:1,cc:-2} 
 +}, 
 +{ 
 +    name:"Targe renforcée", 
 +    race:"Elfe", 
 +    slot:"leftHand", 
 +    stats:{e:1,cc:1} 
 +}, 
 +{ 
 +    name:"Cuirasse", 
 +    race:"Elfe", 
 +    slot:"body", 
 +    stats:{res:1,r:2} 
 +}, 
 +{ 
 +    name:"Armure de garde Sylvestre", 
 +    race:"Elfe", 
 +    exo:true, 
 +    slot:"body", 
 +    stats:{res:2,pm:-10} 
 +}, 
 +{ 
 +    name:"Cape de feuillages", 
 +    race:"Elfe", 
 +    slot:"cape", 
 +    stats:{fm:1,pv:5} 
 +}, 
 +{ 
 +    name:"Marque Forestière", 
 +    race:"Elfe", 
 +    slot:"head", 
 +    stats:{pm:10,r:1} 
 +}, 
 +{ 
 +    name:"Capuche du chasseur", 
 +    race:"Elfe", 
 +    slot:"head", 
 +    stats:{ct:1,r:1,rm:1} 
 +}, 
 +{ 
 +    name:"Bottes Tâlroval", 
 +    race:"Elfe", 
 +    slot:"feet", 
 +    stats:{mvt:2} 
 +},
  
 /* NAINS */ /* NAINS */
  
-{name:"Labrys",race:"Nain",slot:"rightHand",stats:{cc:1,f:1}}, +{ 
-{name:"Hache runique",race:"Nain",slot:"rightHand",stats:{cc:1,fm:1}}, +    name:"Labrys", 
-{name:"Marteau runique",race:"Nain",slot:"rightHand",stats:{magique:true,pui:2}}, +    race:"Nain", 
-{name:"Baton d'archimage",race:"Nain",slot:"rightHand",stats:{fm:1,pm:10}}, +    slot:"rightHand", 
-{name:"Marteau de guerre",race:"Nain",slot:"rightHand",stats:{f:2,cc:-1}}, +    stats:{cc:1,f:1} 
-{name:"Bouclier Miroir",race:"Nain",slot:"leftHand",stats:{res:1,pv:5}}, +}, 
-{name:"Armure runique",race:"Nain",slot:"body",stats:{e:1,pm:8}}, +{ 
-{name:"Cotte de mailles",race:"Nain",exo:true,slot:"body",stats:{e:2,esquive:-4}}, +    name:"Hache runique", 
-{name:"Cape dorée",race:"Nain",exo:true,slot:"cape",stats:{res:1,mvt:1}}, +    race:"Nain", 
-{name:"Casque grossissant",race:"Nain",slot:"head",stats:{ct:2,p:-1}}, +    slot:"rightHand", 
-{name:"Casque de guerre",race:"Nain",slot:"head",stats:{pv:5,r:1,pm:5,rm:1}}, +    stats:{cc:1,fm:1} 
-{name:"Solerets",race:"Nain",slot:"feet",stats:{mvt:1,pm:5,pv:5}},+}, 
 +{ 
 +    name:"Marteau runique", 
 +    race:"Nains", 
 +    slot:"rightHand", 
 +    stats:{fPui:true,pui:2} 
 +}, 
 +{ 
 +    name:"Baton d'archimage", 
 +    race:"Nain", 
 +    slot:"rightHand", 
 +    stats:{fm:1,pm:10} 
 +}, 
 +{ 
 +    name:"Marteau de guerre", 
 +    race:"Nain", 
 +    slot:"rightHand", 
 +    stats:{f:2,cc:-1} 
 +}, 
 +{ 
 +    name:"Bouclier Miroir", 
 +    race:"Nain", 
 +    slot:"leftHand", 
 +    stats:{res:1,pv:5} 
 +}, 
 +{ 
 +    name:"Armure runique", 
 +    race:"Nain", 
 +    slot:"body", 
 +    stats:{e:1,pm:8} 
 +}, 
 +{ 
 +    name:"Cotte de mailles", 
 +    race:"Nain", 
 +    exo:true, 
 +    slot:"body", 
 +    stats:{e:2,esquive:-4} 
 +}, 
 +{ 
 +    name:"Cape dorée", 
 +    race:"Nain", 
 +    exo:true, 
 +    slot:"cape", 
 +    stats:{res:1,mvt:1} 
 +}, 
 +{ 
 +    name:"Casque grossissant", 
 +    race:"Nain", 
 +    slot:"head", 
 +    stats:{ct:2,p:-1} 
 +}, 
 +{ 
 +    name:"Casque de guerre", 
 +    race:"Nain", 
 +    slot:"head", 
 +    stats:{pv:5,r:1,pm:5,rm:1} 
 +}, 
 +{ 
 +    name:"Solerets", 
 +    race:"Nain", 
 +    slot:"feet", 
 +    stats:{mvt:1,pm:5,pv:5} 
 +},
  
 /* GEANTS */ /* GEANTS */
  
-{name:"Masse d'arme",race:"Géant",slot:"rightHand",stats:{cc:1,f:1}}, +{ 
-{name:"Hallebarde de pierre",race:"Géant",slot:"rightHand",stats:{f:1,mvt:1}}, +    name:"Masse d'arme", 
-{name:"Javelot lourd",race:"Géant",slot:"rightHand",stats:{f:2,ct:-1,cc:-1}}, +    race:"Géant", 
-{name:"Pierre en fusion",race:"Géant",slot:"rightHand",stats:{magique:true,ct:-2,feu:true}}, +    slot:"rightHand", 
-{name:"Baton de shaman",race:"Géant",exo:true,slot:"rightHand",stats:{fm:2}}, +    stats:{cc:1,f:1} 
-{name:"Bouclier Clipeus",race:"Géant",slot:"leftHand",stats:{e:1,pv:10}}, +}, 
-{name:"Peau de granit manifiée",race:"Géant",slot:"body",stats:{res:1,rm:2,esquive:-2}}, +{ 
-{name:"Broigne",race:"Géant",exo:true,slot:"body",stats:{res:2,fm:-1}}, +    name:"Hallebarde de pierre", 
-{name:"Cape de l'arpenteur",race:"Géant",slot:"cape",stats:{cc:1,ct:1}}, +    race:"Géant", 
-{name:"Fétiche de shaman",race:"Géant",slot:"head",stats:{r:2,pm:5}}, +    slot:"rightHand", 
-{name:"Coiffe de rage",race:"Géant",slot:"head",stats:{cc:1,pv:5,r:1}}, +    stats:{f:1,mvt:1} 
-{name:"Bottes incandescentes",race:"Géant",slot:"feet",stats:{mvt:1,r:1,pv:5}},+}, 
 +{ 
 +    name:"Javelot lourd", 
 +    race:"Géant", 
 +    slot:"rightHand", 
 +    stats:{f:2,ct:-1,cc:-1} 
 +}, 
 +{ 
 +    name:"Pierre en fusion", 
 +    race:"Géants", 
 +    slot:"rightHand", 
 +    stats:{fPui:true,ct:-2,feu:true} 
 +}, 
 +{ 
 +    name:"Baton de shaman", 
 +    race:"Géant", 
 +    exo:true, 
 +    slot:"rightHand", 
 +    stats:{fm:2} 
 +}, 
 +{ 
 +    name:"Bouclier Clipeus", 
 +    race:"Géant", 
 +    slot:"leftHand", 
 +    stats:{e:1,pv:10} 
 +}, 
 +{ 
 +    name:"Peau de granit manifiée", 
 +    race:"Géant", 
 +    slot:"body", 
 +    stats:{res:1,rm:2,esquive:-2} 
 +}, 
 +{ 
 +    name:"Broigne", 
 +    race:"Géant", 
 +    exo:true, 
 +    slot:"body", 
 +    stats:{res:2,fm:-1} 
 +}, 
 +{ 
 +    name:"Cape de l'arpenteur", 
 +    race:"Géant", 
 +    slot:"cape", 
 +    stats:{cc:1,ct:1} 
 +}, 
 +{ 
 +    name:"Fétiche de shaman", 
 +    race:"Géant", 
 +    slot:"head", 
 +    stats:{r:2,pm:5} 
 +}, 
 +{ 
 +    name:"Coiffe de rage", 
 +    race:"Géant", 
 +    slot:"head", 
 +    stats:{cc:1,pv:5,r:1} 
 +}, 
 +{ 
 +    name:"Bottes incandescentes", 
 +    race:"Géant", 
 +    slot:"feet", 
 +    stats:{mvt:1,r:1,pv:5} 
 +},
  
 /* HS */ /* HS */
  
-{name:"Ceste",race:"HS",slot:"rightHand",stats:{f:1,cc:1}}, +{ 
-{name:"Mains de mana",race:"HS",slot:"rightHand",stats:{magique:true,cc:2}}, +    name:"Ceste", 
-{name:"Baton de Sage",race:"HS",slot:"rightHand",stats:{pui:1,agi:1}}, +    race:"HS", 
-{name:"Orbe de mana",race:"HS",slot:"rightHand",stats:{pui:2,fm:-1}}, +    slot:"rightHand", 
-{name:"Bouclier en lianes",race:"HS",slot:"leftHand",stats:{res:1,agi:1}}, +    stats:{f:1,cc:1} 
-{name:"Manteau de feuillage",race:"HS",slot:"body",stats:{e:1,agi:1}}, +}, 
-{name:"Armure de fourrure",race:"HS",exo:true,slot:"body",stats:{e:2,rm:-3}}, +{ 
-{name:"Cape de mage",race:"HS",slot:"cape",stats:{fm:1,rm:1}}, +    name:"Mains de mana", 
-{name:"Collier d'apaisement",race:"HS",slot:"head",stats:{pv:10,pm:5}}, +    race:"HS", 
-{name:"Coiffe de rapace",race:"HS",slot:"head",stats:{ct:1,p:1}}, +    slot:"rightHand", 
-{name:"Bottes griffues",race:"HS",exo:true,slot:"feet",stats:{cc:1,f:1,pv:5}}, +    stats:{fPui:true,cc:2} 
-{name:"Bottes de voleur",race:"HS",slot:"feet",stats:{mvt:1,agi:1}},+}, 
 +{ 
 +    name:"Baton de Sage", 
 +    race:"HS", 
 +    slot:"rightHand", 
 +    stats:{pui:1,agi:1} 
 +}, 
 +{ 
 +    name:"Orbe de mana", 
 +    race:"HS", 
 +    slot:"rightHand", 
 +    stats:{pui:2,fm:-1} 
 +}, 
 +{ 
 +    name:"Bouclier en lianes", 
 +    race:"HS", 
 +    slot:"leftHand", 
 +    stats:{res:1,agi:1} 
 +}, 
 +{ 
 +    name:"Manteau de feuillage", 
 +    race:"HS", 
 +    slot:"body", 
 +    stats:{e:1,agi:1} 
 +}, 
 +{ 
 +    name:"Armure de fourrure", 
 +    race:"HS", 
 +    exo:true, 
 +    slot:"body", 
 +    stats:{e:2,rm:-3} 
 +}, 
 +{ 
 +    name:"Cape de mage", 
 +    race:"HS", 
 +    slot:"cape", 
 +    stats:{fm:1,rm:1} 
 +}, 
 +{ 
 +    name:"Collier d'apaisement", 
 +    race:"HS", 
 +    slot:"head", 
 +    stats:{pv:10,pm:5} 
 +}, 
 +{ 
 +    name:"Coiffe de rapace", 
 +    race:"HS", 
 +    slot:"head", 
 +    stats:{ct:1,p:1} 
 +}, 
 +{ 
 +    name:"Bottes griffues", 
 +    race:"HS", 
 +    exo:true, 
 +    slot:"feet", 
 +    stats:{cc:1,f:1,pv:5} 
 +}, 
 +{ 
 +    name:"Bottes de voleur", 
 +    race:"HS", 
 +    slot:"feet", 
 +    stats:{mvt:1,agi:1} 
 +},
  
 /* LUTINS : ANNEAUX */ /* LUTINS : ANNEAUX */
  
-{name:"Anneau d'Horizon",race:"Lutin",slot:"ring",stats:{p:1}}, +{ 
-{name:"Anneau de Caprice",race:"Lutin",slot:"ring",stats:{fm:1}}, +    name:"Anneau d'Horizon", 
-{name:"Anneau de Puissance",race:"Lutin",slot:"ring",stats:{pui:1}}, +    race:"Lutin", 
-{name:"Anneau de Férocité",race:"Lutin",slot:"ring",stats:{f:1}}, +    slot:"ring", 
-{name:"Anneau de Résistance",race:"Lutin",slot:"ring",stats:{res:1}}, +    stats:{p:1} 
-{name:"Anneau d'Équilibre",race:"Lutin",slot:"ring",stats:{pv:5,pm:5}}, +}, 
-{name:"Anneau de Finesse",race:"Lutin",slot:"ring",stats:{cc:1}}, +{ 
-{name:"Anneau de Prétention",race:"Lutin",slot:"ring",stats:{ct:1}}, +    name:"Anneau de Caprice", 
-{name:"Anneau de Tenacité",race:"Lutin",slot:"ring",stats:{e:1}}, +    race:"Lutin", 
-{name:"Anneau de Souplesse",race:"Lutin",slot:"ring",stats:{agi:1}},+    slot:"ring", 
 +    stats:{fm:1} 
 +}, 
 +{ 
 +    name:"Anneau de Puissance", 
 +    race:"Lutin", 
 +    slot:"ring", 
 +    stats:{pui:1} 
 +}, 
 +{ 
 +    name:"Anneau de Férocité", 
 +    race:"Lutin", 
 +    slot:"ring", 
 +    stats:{f:1} 
 +}, 
 +{ 
 +    name:"Anneau de Résistance", 
 +    race:"Lutin", 
 +    slot:"ring", 
 +    stats:{res:1} 
 +}, 
 +{ 
 +    name:"Anneau d'Équilibre", 
 +    race:"Lutin", 
 +    slot:"ring", 
 +    stats:{pv:5,pm:5} 
 +}, 
 +{ 
 +    name:"Anneau de Finesse", 
 +    race:"Lutin", 
 +    slot:"ring", 
 +    stats:{cc:1} 
 +}, 
 +{ 
 +    name:"Anneau de Prétention", 
 +    race:"Lutin", 
 +    slot:"ring", 
 +    stats:{ct:1} 
 +}, 
 +{ 
 +    name:"Anneau de Tenacité", 
 +    race:"Lutin", 
 +    slot:"ring", 
 +    stats:{e:1} 
 +}, 
 +{ 
 +    name:"Anneau de Souplesse", 
 +    race:"Lutin", 
 +    slot:"ring", 
 +    stats:{agi:1} 
 +},
  
-{name:"Bottes de 7 lieux",race:"Lutin",exo:true,slot:"feet",stats:{mvt:3}}+{ 
 +    name:"Bottes de 7 lieux", 
 +    race:"Lutin", 
 +    exo:true, 
 +    slot:"feet", 
 +    stats:{mvt:3} 
 +}
  
 ]; ];
 +
 +/* =========================================================
 +   MAGIE INTERDITE
 +   Affichée uniquement après les bonus/malus de l'objet.
 +========================================================= */
 +
 +const magieInterdite = new Set([
 +    "Lance barbelée", "Rapière", "Bélier", "Pioche",
 +    "Catalyseur magique", "Bouclier Parma", "Écu brillant",
 +    "Armure matelassée", "Toge d'apprenti", "Pierre Noire",
 +    "Spatha", "Pilum", "Gastraphète", "Armure Hoplitique",
 +    "Cape de dueliste", "Lance de garde Sylvestre", "Arc Elfique",
 +    "Targe renforcée", "Armure de garde Sylvestre", "Bottes Tâlroval",
 +    "Labrys", "Marteau runique", "Marteau de guerre", "Cotte de mailles",
 +    "Cape dorée", "Casque grossissant", "Casque de guerre",
 +    "Masse d'arme", "Hallebarde de pierre", "Javelot lourd",
 +    "Pierre en fusion", "Bouclier Clipeus", "Broigne", "Cape de l'arpenteur",
 +    "Ceste", "Bouclier en lianes", "Armure de fourrure"
 +]);
  
 /* ========================================================= /* =========================================================
Ligne 424: Ligne 946:
     {     {
         name:"Griffes",         name:"Griffes",
-        desc:"+3 F à mains nues ou avec une ceste"+        desc:"+3 dégâts à mains nues, avec une ceste ou des mains de mana"
     },     },
     {     {
Ligne 610: Ligne 1132:
  
             option.value=String(equipments.indexOf(item));             option.value=String(equipments.indexOf(item));
-            option.textContent=item.name+(item.exo?" (exo)":"");+ 
 +            /* Le titre reste uniquement le nom de l'objet */ 
 +            option.textContent= 
 +                item.name+ 
 +                (item.exo?" (exo)":"");
  
             select.appendChild(option);             select.appendChild(option);
Ligne 634: Ligne 1160:
     cc:"CC",ct:"CT",fm:"FM",mvt:"Mvt",     cc:"CC",ct:"CT",fm:"FM",mvt:"Mvt",
     pv:"PV",pm:"PM",r:"R",res:"Rés",     pv:"PV",pm:"PM",r:"R",res:"Rés",
-    rm:"RM",p:"P",pui:"Pui",+    rm:"RM",p:"P",pui:"Pui",fPui:"F=Pui",
     esquive:"Esquive",     esquive:"Esquive",
     demolition:"Démolition",     demolition:"Démolition",
Ligne 660: Ligne 1186:
  
     let html="";     let html="";
 +
 +    /* Bonus et malus */
  
     for(const [stat,value] of Object.entries(item.stats||{})){     for(const [stat,value] of Object.entries(item.stats||{})){
Ligne 679: Ligne 1207:
             html+=`<span class="malus">${value} ${name}</span> `;             html+=`<span class="malus">${value} ${name}</span> `;
         }         }
 +    }
 +
 +    /* Magie interdite : toujours après les bonus/malus */
 +    if(magieInterdite.has(item.name)){
 +        html += `<span class="forbiddenMagic">Magie interdite</span> `;
     }     }
  
Ligne 771: Ligne 1304:
         if(!input) continue;         if(!input) continue;
  
-        const level=Math.max(0,parseInt(input.value,10)||0);+        const level=Math.max( 
 +            0, 
 +            parseInt(input.value,10)||0 
 +        );
  
         if(!level) continue;         if(!level) continue;
Ligne 814: Ligne 1350:
     return cb?cb.checked:false;     return cb?cb.checked:false;
 } }
 +
 +/* =========================================================
 +   CALCUL DU PERSONNAGE
 +========================================================= */
 +
 +
  
 /* ========================================================= /* =========================================================
Ligne 821: Ligne 1363:
 function calculate(){ function calculate(){
  
-    const race=races[raceSelect.value];+    const raceName = raceSelect.value; 
 +    const race = races[raceName];
  
     if(!race) return;     if(!race) return;
Ligne 828: Ligne 1371:
     displayBase();     displayBase();
  
-    const char={...race};+    const char = {...race};
  
     /* Améliorations */     /* Améliorations */
Ligne 834: Ligne 1377:
     for(const stat in costTable){     for(const stat in costTable){
  
-        const input=document.getElementById("up_"+stat);+        const input = document.getElementById("up_"+stat);
  
         if(input){         if(input){
  
-            char[stat]= +            char[stat] = 
-                (char[stat]||0)+ +                (char[stat] || 0) + 
-                (parseInt(input.value,10)||0);+                (parseInt(input.value,10) || 0);
         }         }
     }     }
  
     /* Equipements */     /* Equipements */
 +
 +    let forcePui = false;
  
     for(const key in slots){     for(const key in slots){
  
-        const value=slots[key].value;+        const value = slots[key].value;
  
-        if(value==="") continue;+        if(value === "") continue;
  
-        const item=equipments[Number(value)];+        const item = equipments[Number(value)];
  
         if(!item) continue;         if(!item) continue;
  
-        for(const [stat,bonus] of Object.entries(item.stats||{})){+        for(const [stat,bonus] of Object.entries(item.stats || {})){
  
-            if(typeof bonus==="number"){+            if(stat === "fPui" && bonus === true){ 
 +                forcePui = true; 
 +                continue; 
 +            }
  
-                char[stat]=(char[stat]||0)+bonus;+            if(typeof bonus === "number"){ 
 +                char[stat] = (char[stat] || 0) + bonus;
             }             }
         }         }
 +    }
 +
 +    /* F=Pui : certains équipements remplacent la Force par la Puissance */
 +
 +    if(forcePui){
 +        char.f = char.pui;
     }     }
  
     /* Passifs */     /* Passifs */
  
-    const fulgurance=isChecked(0); +    const fulgurance = isChecked(0); 
-    const couverture=isChecked(1); +    const couverture = isChecked(1); 
-    const reflexes=isChecked(2); +    const reflexes = isChecked(2); 
-    const griffes=isChecked(4);+    const griffes = isChecked(4);
  
-    /* Griffes : mains nues ou Ceste */+    /* ===================================================== 
 +       PUISSANCES TOTALES
  
-    const mainDroite=rightHand.value===""+       On conserve les caractéristiques sans leur ajouter 
 +       le bonus de dégâts de Griffes. 
 + 
 +       Le bonus de Griffes sera ajouté uniquement dans 
 +       la Puissance totale Force. 
 +    ===================================================== */ 
 + 
 +    const mainDroite = slots.rightHand.value === ""
         ? null         ? null
-        : equipments[Number(rightHand.value)];+        : equipments[Number(slots.rightHand.value)];
  
-    const griffesActives= +    /* Griffes fonctionne à mains nues, avec une Ceste 
-        griffes&&(!mainDroite||mainDroite.name==="Ceste");+       ou avec des Mains de mana. */ 
 + 
 +    const griffesActives = 
 +        griffes && 
 +        ( 
 +            !mainDroite || 
 +            mainDroite.name === "Ceste" || 
 +            mainDroite.name === "Mains de mana" 
 +        ); 
 + 
 +    /* Force après améliorations et équipements, 
 +       avant le bonus de dégâts de Griffes. */ 
 + 
 +    const forceBase = char.f; 
 + 
 +    /* Puissance totale Force : 
 +       - Force calculée avec les équipements 
 +       - règle F=Pui si applicable 
 +       - bonus de dégâts de Griffes si actif */ 
 + 
 +    let puissanceTotaleForce = forceBase;
  
     if(griffesActives){     if(griffesActives){
-        char.f+=3;+ 
 +        if( 
 +            raceName === "HS" && 
 +            mainDroite && 
 +            mainDroite.name === "Mains de mana" 
 +        ){ 
 +            puissanceTotaleForce = char.pui + 3; 
 +        }else{ 
 +            puissanceTotaleForce = forceBase + 3; 
 +        }
     }     }
 +
 +    /* Puissance totale Puissance :
 +       statistique après améliorations et équipements. */
 +
 +    const puissanceTotalePuissance = char.pui;
  
     /* Sorts : bonus de plus grande valeur absolue */     /* Sorts : bonus de plus grande valeur absolue */
  
-    let bestDex=0; +    let bestDex = 0; 
-    let bestProt=0;+    let bestProt = 0;
  
-    const spellDetails=[];+    const spellDetails = [];
  
     spells.forEach((spell,i)=>{     spells.forEach((spell,i)=>{
  
-        const cb=document.getElementById("spell_"+i);+        const cb = document.getElementById("spell_"+i);
  
-        if(!cb||!cb.checked) return;+        if(!cb || !cb.checked) return;
  
-        if(Math.abs(spell.dex)>Math.abs(bestDex)){ +        if(Math.abs(spell.dex) > Math.abs(bestDex)){ 
-            bestDex=spell.dex;+            bestDex = spell.dex;
         }         }
  
-        if(Math.abs(spell.prot)>Math.abs(bestProt)){ +        if(Math.abs(spell.prot) > Math.abs(bestProt)){ 
-            bestProt=spell.prot;+            bestProt = spell.prot;
         }         }
  
Ligne 909: Ligne 1506:
     });     });
  
-    document.getElementById("spellBonus").textContent=+    document.getElementById("spellBonus").textContent =
         spellDetails.length         spellDetails.length
-        ? "Sorts actifs : "+spellDetails.join(", ")+ +        ? "Sorts actifs : " + spellDetails.join(", ") + 
-          " | Bonus Dex : "+bestDex+ +          " | Bonus Dex : " + bestDex + 
-          " | Protection : "+bestProt+          " | Protection : " + bestProt
         : "";         : "";
  
     /* Dés */     /* Dés */
  
-    const ccDice=char.cc*2; +    const ccDice = char.cc * 2; 
-    const ctDice=char.ct*2; +    const ctDice = char.ct * 2; 
-    const fmDice=char.fm*2; +    const fmDice = char.fm * 2; 
-    const agiDice=char.agi*2;+    const agiDice = char.agi * 2;
  
-    /* Fiche personnage */+    /* ===================================================== 
 +       FICHE PERSONNAGE 
 +    ===================================================== */
  
-    let result="=== PERSONNAGE ===\n\n";+    let result = "=== PERSONNAGE ===\n\n";
  
     statOrder.forEach(stat=>{     statOrder.forEach(stat=>{
  
-        if(char[stat]!==undefined){+        if(char[stat] !== undefined){
  
-            result+= +            result += 
-                (statLabels[stat]||stat)+ +                (statLabels[stat] || stat) + 
-                ": "+char[stat]+"\n";+                ": " + char[stat] + "\n";
         }         }
     });     });
Ligne 939: Ligne 1538:
     if(griffes){     if(griffes){
  
-        result+=griffesActives +        result += griffesActives 
-            ? "\nGriffes : +3 F appliqué." +            ? "\nGriffes : passif actif (+3 dégâts)." 
-            : "\nGriffes : inactif (arme autre que ceste).";+            : "\nGriffes : inactif (arme autre que mains nues, Ceste ou Mains de mana).";
     }     }
  
-    result+="\n\n=== COMBAT ===\n\n";+    result += "\n\n=== COMBAT ===\n\n";
  
     /* Touchers */     /* Touchers */
  
-    const finalCC= +    const finalCC = 
-        ccDice+bestDex+(fulgurance?1:0);+        ccDice + bestDex + (fulgurance ? 1 : 0);
  
-    const finalCT= +    const finalCT = 
-        ctDice+bestDex;+        ctDice + bestDex;
  
-    const finalFM= +    const finalFM = 
-        fmDice+bestDex;+        fmDice + bestDex;
  
-    result+="Toucher CAC : "+finalCC+"\n"; +    result += "Toucher CAC : " + finalCC + "\n"; 
-    result+="Toucher tir : "+finalCT+"\n"; +    result += "Toucher tir : " + finalCT + "\n"; 
-    result+="FM : "+finalFM+"\n";+    result += "FM : " + finalFM + "\n";
  
     /* Tir par distance */     /* Tir par distance */
  
-    result+="\n=== TIR ===\n\n";+    result += "\n=== TIR ===\n\n";
  
-    for(let cases=1;cases<=4;cases++){+    for(let cases = 1; cases <= 4; cases++){
  
-        let ctDistance=finalCT;+        let ctDistance = finalCT;
  
-        if(cases>2){ +        if(cases > 2){ 
-            ctDistance-=(cases-2)*3;+            ctDistance -= (cases - 2) * 3;
         }         }
  
-        result+=cases+" case(s) : CT "+ctDistance+"\n";+        result += 
 +            cases + 
 +            " case(s) : CT " + 
 +            ctDistance + 
 +            "\n";
     }     }
  
     /* Esquive CAC */     /* Esquive CAC */
  
-    const meleeDodge= +    const meleeDodge = 
-        Math.max(ccDice,agiDice)+bestProt;+        Math.max(ccDice,agiDice) + bestProt;
  
-    result+="\n=== ESQUIVE CAC ===\n\n"; +    result += "\n=== ESQUIVE CAC ===\n\n"; 
-    result+="Esquive : "+meleeDodge+"\n";+    result += "Esquive : " + meleeDodge + "\n";
  
     /* Esquive tir */     /* Esquive tir */
Ligne 990: Ligne 1593:
     if(couverture){     if(couverture){
  
-        evadeStat=Math.floor( +        evadeStat = Math.floor( 
-            char.cc*0.85+char.agi*0.15+            char.cc * 0.85 + char.agi * 0.15
         );         );
  
     }else if(reflexes){     }else if(reflexes){
  
-        evadeStat=Math.floor( +        evadeStat = Math.floor( 
-            char.agi*0.85+char.cc*0.15+            char.agi * 0.85 + char.cc * 0.15
         );         );
  
     }else{     }else{
  
-        evadeStat=Math.max( +        evadeStat = Math.max( 
-            Math.floor(char.cc*0.75+char.agi*0.25), +            Math.floor( 
-            Math.floor(char.agi*0.75+char.cc*0.25)+                char.cc * 0.75 + 
 +                char.agi * 0.25 
 +            ), 
 +            Math.floor( 
 +                char.agi * 0.75 + 
 +                char.cc * 0.25 
 +            )
         );         );
     }     }
  
-    const fulguranceDodge= +    const fulguranceDodge = 
-        fulgurance?Math.floor(char.mvt/5):0;+        fulgurance 
 +        ? Math.floor(char.mvt / 5) 
 +        : 0;
  
-    const rangedDodge= +    const rangedDodge = 
-        evadeStat*2+bestProt+fulguranceDodge;+        evadeStat * 2 + 
 +        bestProt + 
 +        fulguranceDodge;
  
-    result+="\n=== ESQUIVE TIR ===\n\n"; +    result += "\n=== ESQUIVE TIR ===\n\n"; 
-    result+="Esquive tir : "+rangedDodge+"\n";+    result += "Esquive tir : " + rangedDodge + "\n";
  
     /* Esquive FM */     /* Esquive FM */
  
-    const fmDodge=fmDice+bestProt;+    const fmDodge = 
 +        fmDice + bestProt;
  
-    result+="\n=== ESQUIVE FM ===\n\n"; +    result += "\n=== ESQUIVE FM ===\n\n"; 
-    result+="Esquive FM : "+fmDodge+"\n";+    result += "Esquive FM : " + fmDodge + "\n";
  
     /* Magie */     /* Magie */
  
-    result+="\n=== MAGIE ===\n\n"; +    result += "\n=== MAGIE ===\n\n"; 
-    result+="Jet FM : "+finalFM+"\n";+    result += "Jet FM : " + finalFM + "\n";
  
-    for(let lvl=1;lvl<=5;lvl++){+    for(let lvl = 1; lvl <= 5; lvl++){
  
-        const threshold=6+6*lvl;+        const threshold = 6 + 6 * lvl;
  
-        result+= +        result += 
-            "Sort niveau "+lvl+ +            "Sort niveau " + 
-            " (seuil "+threshold+") : "+ +            lvl + 
-            (finalFM>=threshold?"Réussi":"Échec")++            " (seuil " + 
 +            threshold + 
 +            ") : " + 
 +            ( 
 +                finalFM >= threshold 
 +                ? "Réussi" 
 +                : "Échec" 
 +            ) +
             "\n";             "\n";
     }     }
  
-    document.getElementById("result").textContent=result;+    /* ===================================================== 
 +       PUISSANCES TOTALES — FIN DU RÉSULTAT 
 +    ===================================================== */ 
 + 
 +    result += "\n=== PUISSANCES TOTALES ===\n\n"; 
 + 
 +    result += 
 +        "Puissance totale Force : " + 
 +        puissanceTotaleForce + 
 +        "\n"; 
 + 
 +    result += 
 +        "Puissance totale Puissance : " + 
 +        puissanceTotalePuissance + 
 +        "\n"; 
 + 
 +    document.getElementById("result").textContent = result;
 } }
 +
 +
  
 /* ========================================================= /* =========================================================
Ligne 1051: Ligne 1690:
  
     const F=parseInt(     const F=parseInt(
-        document.getElementById("pushF").value,10+        document.getElementById("pushF").value, 
 +        10
     )||0;     )||0;
  
     const E=parseInt(     const E=parseInt(
-        document.getElementById("pushE").value,10+        document.getElementById("pushE").value, 
 +        10
     )||0;     )||0;
  
     const Agi=parseInt(     const Agi=parseInt(
-        document.getElementById("pushAgi").value,10+        document.getElementById("pushAgi").value, 
 +        10
     )||0;     )||0;
  
     const PV=parseInt(     const PV=parseInt(
-        document.getElementById("pushPV").value,10+        document.getElementById("pushPV").value, 
 +        10
     )||0;     )||0;
  
     const buff=parseInt(     const buff=parseInt(
-        document.getElementById("pushBuff").value,10+        document.getElementById("pushBuff").value, 
 +        10
     )||0;     )||0;
  
     const debuff=parseInt(     const debuff=parseInt(
-        document.getElementById("pushDebuff").value,10+        document.getElementById("pushDebuff").value, 
 +        10
     )||0;     )||0;
  
     const stab=parseInt(     const stab=parseInt(
-        document.getElementById("pushStab").value,10+        document.getElementById("pushStab").value, 
 +        10
     )||0;     )||0;
  
-    const finalF=F+buff+debuff+stab;+    const finalF= 
 +        F+ 
 +        buff+ 
 +        debuff+ 
 +        stab;
  
-    const score=finalF+E+Agi;+    const score= 
 +        finalF+ 
 +        E+ 
 +        Agi;
  
     document.getElementById("pushResult").textContent=     document.getElementById("pushResult").textContent=
Ligne 1177: Ligne 1830:
  
         if(input){         if(input){
-            data.upgrades[stat]=parseInt(input.value,10)||0;+            data.upgrades[stat]= 
 +                parseInt(input.value,10)||0;
         }         }
     });     });
Ligne 1218: Ligne 1872:
             const input=document.getElementById("up_"+stat);             const input=document.getElementById("up_"+stat);
  
-            if(input&&data.upgrades[stat]!==undefined){+            if( 
 +                input&& 
 +                data.upgrades[stat]!==undefined 
 +            ){
                 input.value=data.upgrades[stat];                 input.value=data.upgrades[stat];
             }             }
Ligne 1232: Ligne 1889:
             if(data.equipment[key]!==undefined){             if(data.equipment[key]!==undefined){
  
-                const wanted=String(data.equipment[key]);+                const wanted= 
 +                    String(data.equipment[key]);
  
-                const exists=[...slots[key].options] +                const exists= 
-                    .some(option=>option.value===wanted);+                    [...slots[key].options] 
 +                    .some( 
 +                        option=> 
 +                            option.value===wanted 
 +                    );
  
                 if(exists){                 if(exists){
Ligne 1271: Ligne 1933:
  
     for(const key of [     for(const key of [
-        "head","cape","rightHand", +        "head", 
-        "leftHand","body","feet"+        "cape", 
 +        "rightHand", 
 +        "leftHand", 
 +        "body", 
 +        "feet"
     ]){     ]){
  
Ligne 1293: Ligne 1959:
  
     const encoded=btoa(     const encoded=btoa(
-        encodeURIComponent(JSON.stringify(getBuildData()))+        encodeURIComponent( 
 +            JSON.stringify(getBuildData()) 
 +        )
     );     );
  
-    prompt("Copiez ce code de configuration :",encoded);+    prompt( 
 +        "Copiez ce code de configuration :", 
 +        encoded 
 +    );
 } }
  
 function importBuild(){ function importBuild(){
  
-    const text=prompt("Collez le code de configuration :");+    const text= 
 +        prompt( 
 +            "Collez le code de configuration :" 
 +        );
  
     if(!text) return;     if(!text) return;
Ligne 1308: Ligne 1982:
  
         const data=JSON.parse(         const data=JSON.parse(
-            decodeURIComponent(atob(text.trim()))+            decodeURIComponent( 
 +                atob(text.trim()) 
 +            )
         );         );
  
Ligne 1323: Ligne 1999:
  
     const encoded=btoa(     const encoded=btoa(
-        encodeURIComponent(JSON.stringify(getBuildData()))+        encodeURIComponent( 
 +            JSON.stringify(getBuildData()) 
 +        )
     );     );
  
Ligne 1329: Ligne 2007:
         location.origin+         location.origin+
         location.pathname+         location.pathname+
-        "?id=simulateur&build="+encoded;+        "?id=simulateur&build="+ 
 +        encoded;
  
-    if(navigator.clipboard&&navigator.clipboard.writeText){+    if( 
 +        navigator.clipboard&& 
 +        navigator.clipboard.writeText 
 +    ){
  
         navigator.clipboard.writeText(url)         navigator.clipboard.writeText(url)
-            .then(()=>alert("Lien copié dans le presse-papiers.")) +            .then( 
-            .catch(()=>prompt("Copiez ce lien :",url));+                ()=> 
 +                    alert( 
 +                        "Lien copié dans le presse-papiers." 
 +                    ) 
 +            ) 
 +            .catch( 
 +                ()=> 
 +                    prompt( 
 +                        "Copiez ce lien :", 
 +                        url 
 +                    ) 
 +            );
  
     }else{     }else{
  
-        prompt("Copiez ce lien :",url);+        prompt( 
 +            "Copiez ce lien :", 
 +            url 
 +        );
     }     }
 } }
- 
  
 function loadFromURL(){ function loadFromURL(){
  
-    const params=new URLSearchParams(location.search);+    const params= 
 +        new URLSearchParams(location.search);
  
-    const encoded=params.get("build");+    const encoded= 
 +        params.get("build");
  
     if(!encoded) return;     if(!encoded) return;
Ligne 1355: Ligne 2052:
  
         const data=JSON.parse(         const data=JSON.parse(
-            decodeURIComponent(atob(encoded))+            decodeURIComponent( 
 +                atob(encoded) 
 +            )
         );         );
  
Ligne 1362: Ligne 2061:
     }catch(e){     }catch(e){
  
-        console.error("Erreur lors du chargement du build :",e); +        console.error( 
-        alert("Impossible de charger la configuration depuis le lien.");+            "Erreur lors du chargement du build :", 
 +            e 
 +        );
  
 +        alert(
 +            "Impossible de charger la configuration depuis le lien."
 +        );
     }     }
 } }
simulateur.1791214298.txt.gz · Dernière modification : 2026/10/05 17:31 de nanaki