mirror of
https://gitlab.com/rubenwardy/awards.git
synced 2024-11-19 22:03:44 +01:00
parent
3fc12eb689
commit
08f654cf94
4
api.lua
4
api.lua
@ -67,8 +67,6 @@ local function convert_data()
|
|||||||
|
|
||||||
awards.players[name] = data
|
awards.players[name] = data
|
||||||
end
|
end
|
||||||
|
|
||||||
print(dump(awards.players))
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function awards.load()
|
function awards.load()
|
||||||
@ -162,7 +160,6 @@ function awards.register_trigger(tname, tdef)
|
|||||||
assert(player and player.is_player and player:is_player())
|
assert(player and player.is_player and player:is_player())
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
local data = awards.player(name)
|
local data = awards.player(name)
|
||||||
print(dump(data))
|
|
||||||
|
|
||||||
-- Increment counter
|
-- Increment counter
|
||||||
local currentVal = (data[tname] or 0) + 1
|
local currentVal = (data[tname] or 0) + 1
|
||||||
@ -225,7 +222,6 @@ function awards.register_trigger(tname, tdef)
|
|||||||
assert(player and player.is_player and player:is_player() and key)
|
assert(player and player.is_player and player:is_player() and key)
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
local data = awards.player(name)
|
local data = awards.player(name)
|
||||||
print(dump(data))
|
|
||||||
|
|
||||||
-- Increment counter
|
-- Increment counter
|
||||||
data[tname] = data[tname] or {}
|
data[tname] = data[tname] or {}
|
||||||
|
Loading…
Reference in New Issue
Block a user