Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Icon: Difference between revisions

From The Petit Planet Wiki
No edit summary
No edit summary
Line 163: Line 163:
return out
return out
end
end
local characters = mw.loadData('Module:Card/characters')
local neighbors = mw.loadData('Module:Card/neighbors')
local ALL_DATA = {-- list of {type, data} in the order that untyped items should get checked
local ALL_DATA = {-- list of {type, data} in the order that untyped items should get checked
{'Element', {Anemo={}, Cryo={}, Dendro={}, Electro={}, Geo={}, Hydro={}, Pyro={}}},
{'Neighbor', neighbors},
{'Character', characters},
{'Creature', mw.loadData('Module:Card/creatures')},
{'Enemy', mw.loadData('Module:Card/enemies')},
{'Dish', mw.loadData('Module:Card/dishes')},
{'Weapon', mw.loadData('Module:Card/weapons')},
{'Plant', mw.loadData('Module:Card/plants')},
{'Food', mw.loadData('Module:Card/foods')},
{'Furniture', mw.loadData('Module:Card/furnitures')},
{'Furnishing', mw.loadData('Module:Card/furnishings')},
{'Book', mw.loadData('Module:Card/books')},
{'Outfit', mw.loadData('Module:Card/outfits')},
{'Outfit', mw.loadData('Module:Card/outfits')},
{'Weapon Appearances', mw.loadData('Module:Card/weaponappearances')},
{'Echo', mw.loadData('Module:Card/echoes')},
{'Artifact Set', mw.loadData('Module:Card/artifact sets')},
{'Fish', mw.loadData('Module:Card/fish')},
{'Cosmetic Component', mw.loadData('Module:Card/cosmetic components')},
{'Cosmetic Set', mw.loadData('Module:Card/cosmetic sets')},
{'Item', extendTable(characters, mw.loadData('Module:Card/items'))} -- allow characters to be items
{'Item', extendTable(characters, mw.loadData('Module:Card/items'))} -- allow characters to be items
}
}