Module:CalculatedStats: Difference between revisions

Ore-game had typos presumably because I checked and my formula was right for Sphinx which ore-game said was 1 higher, and there seemed to be no pattern at all which ones were 1 higher (39 of 164).
No edit summary
(Ore-game had typos presumably because I checked and my formula was right for Sphinx which ore-game said was 1 higher, and there seemed to be no pattern at all which ones were 1 higher (39 of 164).)
Line 233: Line 233:
local statTable = {
local statTable = {
atk = (level + strength) * 2, --Good
atk = (level + strength) * 2, --Good
acc = math.floor(level * 1.5) + agility + math.floor(luck / 2), --Very close
acc = math.floor(level * 1.5) + agility + math.floor(luck / 2), --Somewhat close
pdef = (level + vitality) * 2 + 16, --Good
pdef = (level + vitality) * 2 + 16, --Good
peva = math.floor(level * 1.5) + agility + math.floor(luck / 2) + math.max(0,math.floor((intelligence - 10) / 10)), --Very close
peva = math.floor(level * 1.5) + agility + math.floor(luck / 2) + math.max(0,math.floor((intelligence - 10) / 10)), --Very close
matk = level + round(intelligence / 3) + magic * 3, --Very close
matk = level + math.floor(intelligence / 3) + magic * 3, --Good
msuc = intelligence + math.floor(magic / 2), --Good
msuc = intelligence + math.floor(magic / 2), --Good
mdef = level + vitality + intelligence * 2 + math.floor(magic/4) --Good
mdef = level + vitality + intelligence * 2 + math.floor(magic/4) --Good