-
Notifications
You must be signed in to change notification settings - Fork 6
/
pup_get.lua
43 lines (37 loc) · 903 Bytes
/
pup_get.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
local get = {}
get.maneuvers = {
fire = {'Fire Maneuver'},
ice = {'Ice Maneuver'},
wind = {'Wind Maneuver'},
earth = {'Earth Maneuver'},
thunder = {'Thunder Maneuver'},
water = {'Water Maneuver'},
light = {'Light Maneuver'},
dark = {'Dark Maneuver'},
}
function get.maneuver_list(maneuvers)
local list = {}
for k,v in pairs(maneuvers) do
list[k] = v
end
return list
end
function get.maneuver(name)
name = string.lower(name)
for k,v in pairs(ids.maneuvers) do
if k ~= 'n' and string.lower(v) == name then
return {id=k,enl=v}
end
end
return nil
end
function get.buffs(curbuffs)
local buffs = {}
for i,v in pairs(curbuffs) do
if res.buffs[v] and res.buffs[v].english then
buffs[res.buffs[v].english:lower()] = (buffs[res.buffs[v].english:lower()] or 0) + 1
end
end
return buffs
end
return get