Skip to content

Instantly share code, notes, and snippets.

@cgdangelo
Created February 22, 2018 23:26
Show Gist options
  • Save cgdangelo/53618edc452e66420782bd65fa1ef5e1 to your computer and use it in GitHub Desktop.
Save cgdangelo/53618edc452e66420782bd65fa1ef5e1 to your computer and use it in GitHub Desktop.
[DEBUG] {<Attribute.VITALITY: 3>: 2093,
<Attribute.STRENGTH: 1>: 265,
<Attribute.DEXTERITY: 2>: 2643,
<Attribute.INTELLIGENCE: 4>: 246,
<Attribute.MIND: 5>: 233,
<Attribute.CRITICAL_HIT: 6>: 1920,
<Attribute.DETERMINATION: 7>: 1016,
<Attribute.DIRECT_HIT: 8>: 1570,
<Attribute.DEFENSE: 9>: 2848,
<Attribute.MAGIC_DEFENSE: 10>: 2848,
<Attribute.SKILL_SPEED: 12>: 914,
<Attribute.TENACITY: 16>: 364,
<Attribute.PIETY: 17>: 292}
[DEBUG] f_ptc = 140 / 100 = 1.4
[DEBUG] f_wd = floor((292 * 115 / 100) + 102) = 437
[DEBUG] f_atk = floor((125 * (2643 - 292) / 292) + 100) / 100 = 11.06
[DEBUG] f_det = floor(130 * (1016 - 292) / 2170 + 1000) / 1000 = 1.043
[DEBUG] f_tnc = floor(100 * (364 - 364) / 2170 + 1000) / 1000 = 1.0
[DEBUG] f_chr = floor(200 * (1920 - 364) / 2170 + 1400) / 1000 = 1.543
[DEBUG] rand = 0.9947336097704287
[DEBUG] (1.400000 * 437.000000 * 11.060000 * 1.043000 * 1.000000) * 1.000000 * 1.000000 * 0.994734 = 7020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment