Skip to content

Commit

Permalink
Update characterCreator.js
Browse files Browse the repository at this point in the history
  • Loading branch information
davespser authored Dec 6, 2024
1 parent e933ee4 commit eaac6ef
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions js/characterCreator.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ submitButton.addEventListener("click", async () => {

// Derivar estadísticas secundarias
const stats = {
ATK: (r / 255) * 100,
SPD: ((r + g) / 510) * 100,
ATK: (r + g) / (2 * 255) * 100,
SPD: (g / 255) * 100,
MAG: (b / 255) * 100,
DEF: ((r * 0.6 + g * 0.4) / 255) * 100,
ACC: ((g + b) / 510) * 100,
VIT: ((r + g + b) / 765) * 100
DEF: ((r / 255) * 100,
ACC: ((g + b) / (2 * 255) * 100,
VIT: ((r + g + b) / 3 * 255) * 100
};

// Obtener usuario actual
Expand Down

0 comments on commit eaac6ef

Please sign in to comment.