How saucesoy/damage-calculator works
This is a browser-based Loomian Legacy damage calculator. The user configures two Loomians, their battle settings, and moves; the app computes damage and energy outcomes and can show a detailed report. The sampled code confirms the calculator and its data tables, while the README documents editable Loomian, move, and set data. Other UI capabilities are not fully visible in the excerpts, so the graph avoids claiming unshown calls between them.
Main entry points: app.js Calculator interface · data.js Loomian profiles · builtInSets.js Built-in sets
Components 9
Battle setup
- Calculator interface
src/app.js
Calculation engine
- Stat calculation
src/app.js - Energy calculation
src/app.js - Damage calculation
src/app.js - Detailed report
src/app.js
Game data
- Loomian profiles
src/data.js - Move definitions
src/data.js - Built-in sets
src/builtInSets.js
Other components
- Calculator user
Connections 10
- Calculator user → Calculator interface: configures
src/app.js - Calculator interface → Built-in sets: loads sets
- Calculator interface → Stat calculation: calculates stats
src/app.js - Calculator interface → Energy calculation: calculates energy
src/app.js - Calculator interface → Damage calculation: calculates damage
src/app.js - Calculator interface → Detailed report: shows report
src/app.js - Stat calculation → Loomian profiles: uses profiles
- Damage calculation → Loomian profiles: uses profiles
- Damage calculation → Move definitions: uses moves
- Energy calculation → Move definitions: uses move costs