Commit 5ca14036 authored by nanahira's avatar nanahira

advanced

parent bb56ef70
...@@ -8,6 +8,9 @@ local main_monster={} ...@@ -8,6 +8,9 @@ local main_monster={}
local main_spell={} local main_spell={}
local main_trap={} local main_trap={}
local main_plain={}
local main_adv={}
local extra_sp={ local extra_sp={
[TYPE_FUSION]={}, [TYPE_FUSION]={},
[TYPE_SYNCHRO]={}, [TYPE_SYNCHRO]={},
...@@ -34,6 +37,11 @@ function Auxiliary.LoadDB() ...@@ -34,6 +37,11 @@ function Auxiliary.LoadDB()
elseif (cat & TYPE_TOKEN)==0 then elseif (cat & TYPE_TOKEN)==0 then
if (cat & TYPE_MONSTER)>0 then if (cat & TYPE_MONSTER)>0 then
table.insert(main_monster,code) table.insert(main_monster,code)
if lv>5 then
table.insert(main_plain,code)
else
table.insert(main_adv,code)
end
elseif (cat & TYPE_SPELL)>0 then elseif (cat & TYPE_SPELL)>0 then
table.insert(main_spell,code) table.insert(main_spell,code)
elseif (cat & TYPE_TRAP)>0 then elseif (cat & TYPE_TRAP)>0 then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment