brouillon6
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| brouillon6 [2026/04/30 00:35] – nanaki | brouillon6 [2026/05/02 00:09] (Version actuelle) – nanaki | ||
|---|---|---|---|
| Ligne 8: | Ligne 8: | ||
| font-family: | font-family: | ||
| background:# | background:# | ||
| - | color:#e0d3a3; | + | color:#7dd3fc; |
| padding: | padding: | ||
| } | } | ||
| - | |||
| h1,h2 { color: | h1,h2 { color: | ||
| - | + | .box { border:1px solid gold; padding: | |
| - | .box { | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | } | + | |
| select { margin:3px; max-width: | select { margin:3px; max-width: | ||
| - | input { margin:3px; width:50px; } | + | input { margin:3px; width:60px; } |
| - | + | .statLine { display: | |
| - | .statLine { | + | .result { background:# |
| - | | + | .small { font-size: |
| - | | + | |
| - | | + | |
| - | } | + | |
| - | + | ||
| - | .result { | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | } | + | |
| - | + | ||
| - | .small { | + | |
| - | | + | |
| - | | + | |
| - | } | + | |
| </ | </ | ||
| </ | </ | ||
| Ligne 45: | Ligne 23: | ||
| < | < | ||
| - | < | + | <h1>🎲 Simulateur</ |
| <div class=" | <div class=" | ||
| Race : | Race : | ||
| <select id=" | <select id=" | ||
| - | |||
| < | < | ||
| <pre id=" | <pre id=" | ||
| Ligne 63: | Ligne 40: | ||
| <div class=" | <div class=" | ||
| < | < | ||
| - | |||
| Tête <select id=" | Tête <select id=" | ||
| Cou <select id=" | Cou <select id=" | ||
| Ligne 72: | Ligne 48: | ||
| Anneau <select id=" | Anneau <select id=" | ||
| Pieds <select id=" | Pieds <select id=" | ||
| - | |||
| <div id=" | <div id=" | ||
| </ | </ | ||
| Ligne 79: | Ligne 54: | ||
| < | < | ||
| <div id=" | <div id=" | ||
| + | </ | ||
| + | |||
| + | <!-- ================= POUSSEE ================= --> | ||
| + | <div class=" | ||
| + | < | ||
| + | |||
| + | Force assaillant <input id=" | ||
| + | Renforcement <select id=" | ||
| + | |||
| + | Endurance <input id=" | ||
| + | Agilité <input id=" | ||
| + | |||
| + | PV actuels <input id=" | ||
| + | |||
| + | Instabilité <select id=" | ||
| + | Stabilité <select id=" | ||
| + | |||
| + | <pre id=" | ||
| </ | </ | ||
| Ligne 89: | Ligne 82: | ||
| // ===== RACES ===== | // ===== RACES ===== | ||
| const races = { | const races = { | ||
| - | Elfe: | + | Elfe:{a:2,cc: |
| - | Nain: | + | Nain:{a:2,cc: |
| - | Géant: | + | Géant:{a:2,cc: |
| - | Olympien: | + | Olympien:{a:2,cc: |
| - | HS: | + | HS:{a:2,cc: |
| }; | }; | ||
| // ===== COST ===== | // ===== COST ===== | ||
| const costTable = { | const costTable = { | ||
| + | a: | ||
| cc: | cc: | ||
| f: | f: | ||
| Ligne 113: | Ligne 107: | ||
| // ===== PASSIFS ===== | // ===== PASSIFS ===== | ||
| const skills = [ | const skills = [ | ||
| - | {name:" | + | {name:" |
| {name:" | {name:" | ||
| {name:" | {name:" | ||
| + | {name:" | ||
| + | {name:" | ||
| {name:" | {name:" | ||
| ]; | ]; | ||
| - | // ===== ÉQUIPEMENTS ===== | + | |
| const equipments = [ | const equipments = [ | ||
| Ligne 141: | Ligne 137: | ||
| {name:" | {name:" | ||
| {name:" | {name:" | ||
| + | |||
| + | /* ===== NOUVEAUX COMMUNS ===== */ | ||
| + | |||
| + | {name:" | ||
| + | {name:" | ||
| + | {name:" | ||
| + | {name:" | ||
| /* ================= ELFES ================= */ | /* ================= ELFES ================= */ | ||
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| + | |||
| + | // spécifique elfe | ||
| + | {name:" | ||
| /* ================= NAINS ================= */ | /* ================= NAINS ================= */ | ||
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| + | |||
| + | // spécifiques nains | ||
| + | {name:" | ||
| + | {name:" | ||
| /* ================= GÉANTS ================= */ | /* ================= GÉANTS ================= */ | ||
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| {name:" | {name:" | ||
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| + | |||
| + | // spécifique géant | ||
| + | {name:" | ||
| /* ================= HS ================= */ | /* ================= HS ================= */ | ||
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| + | |||
| + | // spécifiques HS | ||
| + | {name:" | ||
| + | {name:" | ||
| /* ================= OLYMPIENS ================= */ | /* ================= OLYMPIENS ================= */ | ||
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| - | {name:" | + | {name:" |
| + | |||
| + | // spécifique olympien | ||
| + | {name:" | ||
| /* ================= ANNEAUX ================= */ | /* ================= ANNEAUX ================= */ | ||
| Ligne 214: | Ligne 234: | ||
| ]; | ]; | ||
| + | |||
| // ===== INIT ===== | // ===== INIT ===== | ||
| Ligne 379: | Ligne 400: | ||
| }); | }); | ||
| - | // esquive | + | // ===== ESQUIVE ===== |
| let esquive=Math.round(char.agi*0.75+char.cc*0.25); | let esquive=Math.round(char.agi*0.75+char.cc*0.25); | ||
| Ligne 393: | Ligne 414: | ||
| esquive+=1; | esquive+=1; | ||
| - | // affichage | + | // ===== MAGIE ===== |
| + | let jetFM = char.fm * 2; | ||
| + | |||
| + | let sorts = ""; | ||
| + | for(let lvl=1; lvl<=5; lvl++){ | ||
| + | let seuil = 6 + 6 * lvl; | ||
| + | let reussite = jetFM >= seuil ? " | ||
| + | |||
| + | sorts += `Niveau ${lvl} → Seuil ${seuil} | Jet ${jetFM} ${reussite}\n`; | ||
| + | } | ||
| + | |||
| + | // ===== AFFICHAGE ===== | ||
| result.textContent = | result.textContent = | ||
| "===== STATS =====\n" | "===== STATS =====\n" | ||
| JSON.stringify(char, | JSON.stringify(char, | ||
| + | |||
| " | " | ||
| " | " | ||
| "\n✨ FM : " | "\n✨ FM : " | ||
| - | " | + | " |
| + | |||
| + | " | ||
| + | "Jet FM (x2) : " | ||
| + | sorts; | ||
| } | } | ||
| Ligne 440: | Ligne 477: | ||
| // init | // init | ||
| autoCalculate(); | autoCalculate(); | ||
| + | |||
| + | |||
| + | |||
| + | // ===== POUSSEE ===== | ||
| + | function calculatePush(){ | ||
| + | |||
| + | let F=+pushF.value; | ||
| + | let buff=+pushBuff.value; | ||
| + | |||
| + | let E=+pushE.value; | ||
| + | let agi=+pushAgi.value; | ||
| + | let pv=+pushPV.value; | ||
| + | |||
| + | let instability=+pushDebuff.value; | ||
| + | let stability=+pushStab.value; | ||
| + | |||
| + | let attaque=F+buff; | ||
| + | let defense=Math.max(E+4, | ||
| + | |||
| + | pushResult.textContent= | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | |||
| + | // ===== EVENTS ===== | ||
| + | document.querySelectorAll(" | ||
| + | updateCost(); | ||
| + | })); | ||
| + | |||
| + | document.querySelectorAll(" | ||
| + | updateCost(); | ||
| + | })); | ||
| + | |||
| + | // ===== INIT ===== | ||
| + | updateCost(); | ||
| + | calculate(); | ||
| + | calculatePush(); | ||
| </ | </ | ||
| </ | </ | ||
| </ | </ | ||
brouillon6.1777502139.txt.gz · Dernière modification : 2026/04/30 00:35 de nanaki
