Module:CalculatedStats: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 85: Line 85:
statTable["atk"] = levelMinus20 + 1 + (strength * 3) + round(vitality / 4)
statTable["atk"] = levelMinus20 + 1 + (strength * 3) + round(vitality / 4)
statTable["acc"] = round(strength / 4) + agility
statTable["acc"] = round(strength / 4) + agility
statTable["def"] = math.floor(levelMinus19 / 2) + math.floor(strength / 4) + (vitality * 2)
statTable["def"] = math.floor((levelMinus20 + 1) / 2) + math.floor(strength / 4) + (vitality * 2)
statTable["eva"] = math.floor(intelligence / 8) + agility
statTable["eva"] = math.floor(intelligence / 8) + agility
statTable["matk"] = math.floor(intelligence / 8) + magic
statTable["matk"] = math.floor(intelligence / 8) + magic