Skip to content

Instantly share code, notes, and snippets.

@aaroncox
aaroncox / d3up-v2-output-full.json
Created June 6, 2013 22:47
D3Up Calculator Output Test
{
"attrs": {
"max-fury": 100,
"strength": 1959,
"dexterity": 127,
"intelligence": 307,
"vitality": 880,
"plus-magic-find": 180,
"plus-gold-find": 202,
"critical-hit": 49.5,
@aaroncox
aaroncox / testcase.js
Created May 23, 2013 21:28
Testing ParseItems
suite("parseItems >", function() {
var testData = require('./data/parseItems');
setup(function() {
this.calc = new Calc();
});
_.each(testData, function(testCase) {
suite(testCase.name + " >", function() {
setup(function() {
this.calc.setBuild(testCase.given);
this.calc.run();
@aaroncox
aaroncox / gist:5454711
Last active December 16, 2015 15:19
composer.json file to include EpicMongo
{
"require": {
"laravel/framework": "4.0.*",
"aaroncox/epicmongo": "dev-master"
},
"repositories": [
{
"type": "vcs",
"url": "git://github.com/aaroncox/EpicMongo.git"
}
@aaroncox
aaroncox / question.md
Last active December 12, 2015 00:58
D3 Math Question

The goal here is to determine if the +Damage from the new Rubies are applied BEFORE or AFTER the '+% Damage' attribute of the weapon are applied.

Scenario #1 does the math and applies the Ruby's +Damage bonus BEFORE the +% Damage attribute, where as Scenario #2 applies the Ruby's +Damage AFTER the +% Damage attribute has already been applied.

Example Weapon

http://d3up.com/i/4463229

  • 429.28 - 971.72 Damage
  • 1.40 Attacks per Second
Verifying myself: My Bitcoin username is +aaroncox. https://onename.io/aaroncox