1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-12-20 08:45:20 +01:00

[runes] Add glyphs and stylus

This commit is contained in:
LeMagnesium
2016-03-14 21:14:58 +01:00
parent fe0647747b
commit 2e6ec485b0
12 changed files with 279 additions and 0 deletions

35
mods/runes/scrolls.lua Normal file
View File

@@ -0,0 +1,35 @@
-- Scrolls for Runes Redo
--
runes.scrolls = {}
function register_scroll(name, type, data)
if not data then return end
def = {
inventory_image = (data.texture or "runes_scroll_unknown.png"),
groups = {scroll = 1},
description = (data.description or "Mysterious Scroll"),
}
minetest.register_craftitem("runes:scroll_" .. name, def)
runes.scrolls[name] = {}
if type == "knowledge" and data.glyph then
runes.scrolls[name].glyph = data.glyph
end
end
register_scroll("watchdog", "knowledge", {
glyph = "runes:glyph_watchdog",
texture = "runes_scroll_watchdog.png",
description = "Watch Dog Knowledge Scroll"
})
register_scroll("manasucker", "knowledge", {
glyph = "runes:glyph_manasucker",
texture = "runes_scroll_manasucker.png",
description = "Mana Sucker Knowledge Scroll",
})