Module:CalculatedStats: Difference between revisions

no edit summary
No edit summary
No edit summary
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), --Similar but not quite
acc = math.floor(level * 1.5) + agility + math.floor(luck / 2), --Very close
pdef = (level + vitality) * 2 + 16, --Good
pdef = (level + vitality) * 2 + 16, --Good
peva = round(level * 1.5) + agility + round((intelligence + luck) / 4),
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, --Good
matk = level + round(intelligence / 3) + magic * 3, --Very close
msuc = intelligence + math.floor(magic / 2), --Good
msuc = intelligence + math.floor(magic / 2), --Good
mdef = intelligence + level + math.floor(magic / 2) + vitality
mdef = level + vitality + intelligence * 2 + math.floor(magic/4) --Good
}
}
local stats = { "atk", "acc", "pdef", "peva", "matk", "msuc", "mdef" }
local stats = { "atk", "acc", "pdef", "peva", "matk", "msuc", "mdef" }