mirror of
https://github.com/smogon/sprites.git
synced 2026-08-20 00:34:22 -05:00
add spritedata()
This commit is contained in:
@@ -65,8 +65,8 @@ rule(
|
||||
|
||||
local input = {}
|
||||
for file in iter(glob{"newsrc/models/*"}) do
|
||||
local base = tup.base(file)
|
||||
if base:find("-b") or base:find("-s") then
|
||||
local sd = spritedata(tup.base(file))
|
||||
if sd.data.b or sd.data.s then
|
||||
goto continue
|
||||
end
|
||||
input += file
|
||||
@@ -130,7 +130,8 @@ end
|
||||
local dexMissing = {}
|
||||
for file in iter(glob{"newsrc/sprites/gen5/*.gif", "newsrc/models/*.gif"}) do
|
||||
local base = tup.base(file)
|
||||
if base:find("-b") or base:find("-s") or dexSet[base] then
|
||||
local sd = spritedata(base)
|
||||
if sd.data.b or sd.data.s or dexSet[base] then
|
||||
goto continue
|
||||
end
|
||||
dexMissing += file
|
||||
|
||||
Reference in New Issue
Block a user