1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-03 17:10:27 +01:00
server-nalc/mods/runes/registration.lua
LeMagnesium ef6f0d3127 Added triple registrering of runes
- Runes are registered three times with tree levels : minor, medium, major
2015-05-17 18:16:53 +02:00

74 lines
1.4 KiB
Lua

-- Rune definitions : registration.lua
runes.datas.items = {
["project"] = {
description = "Projection rune",
img = "runes_projection",
type = "craftitem",
needed_mana = {
["minor"] = 15,
["medium"] = 30,
["major"] = 45,
},
},
["damager"] = {
description = "Damaging rune",
img = "runes_damaging",
type = "craftitem",
needed_mana = {
["minor"] = 180,
["medium"] = 190,
["major"] = 230
}
},
["earthquake"] = {
description = "Earth Quake rune",
img = "runes_earthquake",
type = "craftitem",
needed_mana = {
["minor"] = 70,
["medium"] = 80,
["major"] = 90
}
},
["heal"] = {
description = "Healing rune",
img = "runes_heal",
type = "cube"
},
["gotome"] = {
description = "Go to me rune",
img = "runes_go_to_me",
type = "cube",
needed_mana = {
["minor"] = 40,
["medium"] = 50,
["major"] = 75
}
},
["megamana"] = {
description = "Mega Mana",
img = {
["minor"] = "default_diamond.png",
["medium"] = "default_diamond.png",
["major"] = "default_diamond.png"
},
type = "craftitem"
},
["popper"] = {
description = "Popper",
img = {
["minor"] = "default_grass.png",
["medium"] = "default_grass.png",
["major"] = "default_grass.png"
},
type = "plate"
},
}
for key, value in pairs(runes.datas.items) do
local runereg = table.copy(value)
runereg.name = key
runes.functions.register_rune(runereg)
end