![]() |
|
|
|
#1
|
|||
|
I took the liberty of "wikifying" your calculator: https://wiki.project1999.com/Damage_Calculator. It's still quite rough, but it lets people see your work (and I got the sense that you weren't completely finished, so I didn't want to waste a lot of time on polish).
You can see the wiki code at https://wiki.project1999.com/MediaWi...eCalculator.js. As you can see there, I tried to leave your code as is, and just wrap it with form code (so it'd be easy to update with any new versions you make). However, I did have to modify your main function (RunDPSTest), to make it return an object containing the results, rather than logging them to the console (so I could display them). P.S. It's also untested, so I make no promises about it being bug free [You must be logged in to view images. Log in or Register.]
__________________
Loramin Frostseer <Anonymous>, Hetch<Anonymous>, Tecla <Kingdom>, ... Check out the "Where To Go For XP/For Treasure?" Guides Anyone can improve the wiki! If you are new to the Blue or Green servers, you can improve the wiki to earn a "welcome package" of platinum and/or gear! Send me a forum message for details. | ||
|
#2
|
||||
|
Quote:
No worries!
__________________
| |||
|
#3
|
||||
|
Quote:
__________________
Loramin Frostseer <Anonymous>, Hetch<Anonymous>, Tecla <Kingdom>, ... Check out the "Where To Go For XP/For Treasure?" Guides Anyone can improve the wiki! If you are new to the Blue or Green servers, you can improve the wiki to earn a "welcome package" of platinum and/or gear! Send me a forum message for details. | |||
|
#4
|
||||
|
Quote:
In playground.io the console.log() function shows the array index and the value. For example: Index 0: 100, Index 1: 22, Index 2: 1, ... The wiki version just shows the value: 100, 22, 1, ... The wiki calculator should show the array index and value. For the damage arrays, the index is the damage number, and the value is the number of times the damage number was rolled. For the roll array, the index is the dice roll and the value is the number of times it was rolled. The array variables I am referring to are: uniqueMainHandDamageValueCountArray uniqueOffHandDamageValueCountArray uniquediceRollCountArray If they were displayed in tables that would probably be easy to read as well.
__________________
| |||
|
Last edited by DeathsSilkyMist; 04-07-2025 at 06:30 PM..
| ||||
|
#5
|
||||
|
Quote:
Again, it's not the most beautiful, so if you want to provide some styling I'll be happy to update ... but at least people can see the indices now.
__________________
Loramin Frostseer <Anonymous>, Hetch<Anonymous>, Tecla <Kingdom>, ... Check out the "Where To Go For XP/For Treasure?" Guides Anyone can improve the wiki! If you are new to the Blue or Green servers, you can improve the wiki to earn a "welcome package" of platinum and/or gear! Send me a forum message for details. | |||
|
#6
|
||||
|
Quote:
EDIT: Maybe name the 0 column "misses" so people know.
__________________
| |||
|
Last edited by DeathsSilkyMist; 04-08-2025 at 02:54 PM..
| ||||
|
#7
|
||||
|
Quote:
__________________
Loramin Frostseer <Anonymous>, Hetch<Anonymous>, Tecla <Kingdom>, ... Check out the "Where To Go For XP/For Treasure?" Guides Anyone can improve the wiki! If you are new to the Blue or Green servers, you can improve the wiki to earn a "welcome package" of platinum and/or gear! Send me a forum message for details. | |||
![]() |
|
|