View Single Post
  #2  
Old 04-07-2025, 04:24 PM
DeathsSilkyMist DeathsSilkyMist is offline
Planar Protector

DeathsSilkyMist's Avatar

Join Date: Jan 2014
Posts: 8,576
Default

Quote:
Originally Posted by loramin [You must be logged in to view images. Log in or Register.]
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.]
Thanks a bunch for this Loramin! I'll see if I can polish it up a bit. I can modify this right? This is an awesome starting point. I don't have a ton of knowledge on how to do this sort of thing on the wiki, and a working example is the best way to learn.
Quote:
Originally Posted by Snaggles [You must be logged in to view images. Log in or Register.]
Sorry DSM. I thought this was in the other thread.

Kudos for making something folks can use [You must be logged in to view images. Log in or Register.]
No worries!
Reply With Quote