1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-09-18 10:40:22 +02:00
server-nalc/mods/runes/registration.lua
LeMagnesium eae5700e6b Added work for "go to me" rune
- Added mana dicreaser on on_punch calls (cube only :s)
 - Added is_owner handler
 - Moved a texture name to the good name
 - Added values in needed_mana for go_to_me rune
2015-05-17 18:16:53 +02:00

60 lines
1.2 KiB
Lua

-- Rune definitions : registration.lua
runes.datas.items = {
["project"] = {
description = "Projection rune",
img = "runes_projection.png",
type = "craftitem",
needed_mana = 30
},
["damager"] = {
description = "Damaging rune",
img = "runes_damaging.png",
type = "craftitem",
needed_mana = 190
},
["earthquake"] = {
description = "Earth Quake rune",
img = "runes_earthquake.png",
type = "craftitem",
needed_mana = 80
},
["simple_heal"] = {
description = "Simple healing rune",
img = "runes_simple_heal.png",
type = "cube"
},
["improved_heal"] = {
description = "Improved healing rune",
img = "runes_improved_heal.png",
type = "cube"
},
["perfect_heal"] = {
description = "Perfect healing rune",
img = "runes_perfect_heal.png",
type = "cube"
},
["gotome"] = {
description = "Go to me rune",
img = "runes_go_to_me.png",
type = "cube",
needed_mana = 50
},
["megamana"] = {
description = "Mega Mana",
img = "default_diamond.png",
type = "craftitem"
},
["popper"] = {
description = "Popper",
img = "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