So i've done some poking around in Dungeon Defenders' Game Memory.
And i found the value stored in memory for Weapon Damage and other stats.
But the value in memory is higher than the Damage value of the weapon.
So i originally thought the Value in memory was multiplied by a decimal and then rounded to get the the Weapon Damage. So i thought....
Value in Memory: 128414 * 0.9600808528571652 = WeaponDamage Rounded up.
128414 * 0.9600808528571652 = 123287.8226388; 123288
After a few more checks i saw the decimal value was decreasing!
So i went about it like this:
ValueInMemory - WeaponDamage= 8367;
And Again:
ValueInMemory - WeaponDamage = 8378;
And once more:
ValueInMemory - WeaponDamage = 8389;
So now:
ValueInMemory - 8389 = WeaponDamage;
Noticed a pattern here, the difference between ValueInMemory and WeaponDamage is increasing by 11 every time i upgrade the damage!
This. is. so. FUN!
Results 1 to 2 of 2
Thread: Dungeon Defenders Math!
- 28 Dec. 2014 03:56am #1
Dungeon Defenders Math!
Last edited by Kitsune; 28 Dec. 2014 at 04:01am.
There's nothing ideal about being real, there's so many flaws to cover and conceal.
- 28 Dec. 2014 06:17am #2
Took some time but i've got this!
Now to check and see if it's the same for all weapons at all levels.
ValueInMemory - WeaponDamage = x;
ValueInMemory - x = WeaponDamage;
WeaponDamage + x = ValueInMemory;
Adding Upgrades:
NewX = UpgradeTimes(11) + x;
NewVIM = UpgradeTimes(280) + ValueInMemory;
NewWD = NewVIM - NewX;There's nothing ideal about being real, there's so many flaws to cover and conceal.