mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-07-17 23:20:23 +02:00
Added amulets
- Added amulets' API - Added some amulets
This commit is contained in:
@ -5,6 +5,7 @@ runes = {}
|
||||
runes.datas = {}
|
||||
runes.datas.handlers = {}
|
||||
runes.datas.items = {}
|
||||
runes.datas.amulets = {}
|
||||
runes.functions = {}
|
||||
|
||||
-- Simple rune register function
|
||||
@ -197,3 +198,15 @@ runes.functions.connect = function(itemname, callback, handler)
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
-- Amulets
|
||||
|
||||
runes.functions.register_amulet = function(name, desc, maxcount, manadiff)
|
||||
minetest.register_craftitem("runes:" .. name .. "_amulet", {
|
||||
description = desc,
|
||||
inventory_image = "runes_" .. name .. "_amulet.png",
|
||||
groups = {amulet = 1},
|
||||
stack_max = maxcount,
|
||||
})
|
||||
runes.datas.amulets[name] = manadiff
|
||||
end
|
||||
|
Reference in New Issue
Block a user