mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-27 10:10:28 +01:00
fix global var
This commit is contained in:
parent
a6824a9d2f
commit
3c6e7ddf66
@ -74,7 +74,7 @@ function register_glyph(name, basics, tab)
|
|||||||
runes.glyphs[name] = {}
|
runes.glyphs[name] = {}
|
||||||
runes.glyphs[name].mana_cost = basics.mana_cost or 0
|
runes.glyphs[name].mana_cost = basics.mana_cost or 0
|
||||||
|
|
||||||
def = table.copy(tab)
|
local def = table.copy(tab)
|
||||||
def.groups.glyph = 1
|
def.groups.glyph = 1
|
||||||
|
|
||||||
def.description = basics.description or "Mysterious Glyph"
|
def.description = basics.description or "Mysterious Glyph"
|
||||||
|
@ -6,7 +6,7 @@ runes.scrolls = {}
|
|||||||
function register_scroll(name, type, data)
|
function register_scroll(name, type, data)
|
||||||
if not data then return end
|
if not data then return end
|
||||||
|
|
||||||
def = {
|
local def = {
|
||||||
inventory_image = (data.texture or "runes_scroll_unknown.png"),
|
inventory_image = (data.texture or "runes_scroll_unknown.png"),
|
||||||
groups = {scroll = 1},
|
groups = {scroll = 1},
|
||||||
description = (data.description or "Mysterious Scroll"),
|
description = (data.description or "Mysterious Scroll"),
|
||||||
|
Loading…
Reference in New Issue
Block a user