Module:Cards/data: Difference between revisions

From Wildfrost Wiki
Jump to navigation Jump to search
(Created page with "local p = {} local KeyData = mw.loadData( 'Module:Code/data') function p.CardInfobox() return "{{Infobox|name=Azul Battle Axe|image=Azul Battle Axe.png|attack=3|description=Apply {{Stat|Overburn}} equal to damage dealt}}" end return p")
 
(companions)
Line 1: Line 1:
local p = {}
local p = {}
local cards = {}


local KeyData = mw.loadData( 'Module:Code/data')
--[[
regexes for future use


function p.CardInfobox()  
cards["$1"] = {\n\tName = "$1"\n\tTypes={"Pet", "Companion"}\n\tHealth=$3\n\tAttack=$4\n\tCounter=$5\n\tOther="$6"\n\tDesc="$7"\n}
    return "{{Infobox|name=Azul Battle Axe|image=Azul Battle Axe.png|attack=3|description=Apply {{Stat|Overburn}} equal to damage dealt}}"
\t(.*)=(""|),\n
end
--]]
 
--Pets
cards["Booshu"] = {
Name = "Booshu",
Types={"Pet", "Companion"},
Health=4,
Attack=3,
Counter=6,
Desc="Restore '''3''' {{Stat|Health}} to all allies"
}
cards["Lil Gazi"] = {
Name = "Lil Gazi",
Types={"Pet", "Companion"},
Health=3,
Attack=4,
Counter=4,
Desc="While active, add '''+1''' {{Stat|Attack}} to all allies"
}
cards["Loki"] = {
Name = "Loki",
Types={"Pet", "Companion"},
Health=5,
Attack=2,
Counter=3,
Desc="Apply '''1''' {{Stat|Demonize}}<br>{{Keyword|Aimless}}"
}
cards["Sneezle"] = {
Name = "Sneezle",
Types={"Pet", "Companion"},
Health=6,
Attack=2,
Counter=3,
Desc="{{Keyword|Draw}} '''1''' when hit"
}
cards["Snoof"] = {
Name = "Snoof",
Types={"Pet", "Companion"},
Health=3,
Attack=3,
Counter=3,
Desc="Apply '''1''' {{Stat|Snow}}"
}
cards["Spike"] = {
Name = "Spike",
Types={"Pet", "Companion"},
Health=8,
Other="2 {{Stat|Teeth}}",
Desc="{{Keyword|Hogheaded}}"
}
 
p.cards = cards


return p
return p

Revision as of 01:42, 15 December 2023

Documentation for this module may be created at Module:Cards/data/doc

local p = {}
local cards = {}

--[[
regexes for future use

cards["$1"] = {\n\tName = "$1"\n\tTypes={"Pet", "Companion"}\n\tHealth=$3\n\tAttack=$4\n\tCounter=$5\n\tOther="$6"\n\tDesc="$7"\n}
\t(.*)=(""|),\n
--]]

--Pets
cards["Booshu"] = {
	Name = "Booshu",
	Types={"Pet", "Companion"},
	Health=4,
	Attack=3,
	Counter=6,
	Desc="Restore '''3''' {{Stat|Health}} to all allies"
}
cards["Lil Gazi"] = {
	Name = "Lil Gazi",
	Types={"Pet", "Companion"},
	Health=3,
	Attack=4,
	Counter=4,
	Desc="While active, add '''+1''' {{Stat|Attack}} to all allies"
}
cards["Loki"] = {
	Name = "Loki",
	Types={"Pet", "Companion"},
	Health=5,
	Attack=2,
	Counter=3,
	Desc="Apply '''1''' {{Stat|Demonize}}<br>{{Keyword|Aimless}}"
}
cards["Sneezle"] = {
	Name = "Sneezle",
	Types={"Pet", "Companion"},
	Health=6,
	Attack=2,
	Counter=3,
	Desc="{{Keyword|Draw}} '''1''' when hit"
}
cards["Snoof"] = {
	Name = "Snoof",
	Types={"Pet", "Companion"},
	Health=3,
	Attack=3,
	Counter=3,
	Desc="Apply '''1''' {{Stat|Snow}}"
}
cards["Spike"] = {
	Name = "Spike",
	Types={"Pet", "Companion"},
	Health=8,
	Other="2 {{Stat|Teeth}}",
	Desc="{{Keyword|Hogheaded}}"
}

p.cards = cards

return p