|
|
Line 60: |
Line 60: |
|
| |
|
| function p.smtif(frame) | | function p.smtif(frame) |
| local args = getArgs(frame) | | return smt2(frame) |
| local stat = string.lower(args[1])
| |
| local level = args[2] --Level
| |
| local strength = args[3] --Strength
| |
| local intelligence = args[4] --Intelligence
| |
| local magic = args[5] --Magic
| |
| local vitality = args[6] --Vitality
| |
| local agility = args[7] --Agility
| |
| local luck = args[8] --Luck
| |
| local statTable = {
| |
| atk = (level + strength) * 2,
| |
| acc = math.floor(level * 1.5) + agility + math.floor((strength + luck)/4),
| |
| def = (level + vitality) * 2,
| |
| eva = math.floor(level * 1.5) + agility + math.floor((intelligence + luck)/4),
| |
| matk = math.floor(intelligence/4) + magic,
| |
| mefc = intelligence + math.floor(magic/4)
| |
| }
| |
| return statTable[stat]
| |
| end | | end |
|
| |
|