1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-02-02 21:30:20 +01:00

[pclasses] Allow to drop items from the graveyard

This commit is contained in:
LeMagnesium 2015-11-25 23:21:15 +01:00
parent 332fe79f89
commit 576d732088

View File

@ -20,7 +20,8 @@ pclasses.api.create_graveyard_inventory = function(player)
player_inv:set_stack(from_list, from_index, nil)
end,
allow_take = function(inv, listname, index, stack, player)
return 0
player_inv:set_stack(listname, index, nil)
return stack:get_count()
end,
allow_move = function(inv, from_list, from_index, to_list, to_index, count, player)
return 0
@ -84,4 +85,3 @@ function pclasses.api.vacuum_graveyard(player)
end
end
end