Module:CalculatedStats: Difference between revisions

no edit summary
mNo edit summary
No edit summary
Line 163: Line 163:
local luck = args[7] --Luck
local luck = args[7] --Luck
local statTable = {
local statTable = {
patk = (level + strength) * 2,
patk = (level + strength) * 2, --Seems good
phit = math.floor(level * 1.5) + math.floor(agility * 1.2) + math.floor(luck * 0.6),
phit = math.floor(level * 1.5) + math.floor(agility * 1.2) + math.floor(luck * 0.6), --Needs work
matk = intelligence * 2 + math.floor(magic * 7.5),
matk = intelligence * 2 + math.floor(magic * 7.5), --Needs work
mhit = intelligence * 2 + math.floor(magic / 2) * 2,
mhit = intelligence * 2 + math.floor(magic / 2) * 2, --Seems good
def = (level + endurance) * 2 + 16,
def = (level + endurance) * 2 + 16, --Seems good
eva = math.floor(level * 1.5) + agility + math.floor(luck / 2)
eva = math.floor(level * 1.5) + agility + math.floor(luck / 2) --Seems good
}
}
local stats = { "patk", "phit", "matk", "mhit", "def", "eva" }
local stats = { "patk", "phit", "matk", "mhit", "def", "eva" }