mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-02-03 05:40:20 +01:00
[pclasses] Allow to drop items from the graveyard
This commit is contained in:
parent
332fe79f89
commit
576d732088
@ -20,7 +20,8 @@ pclasses.api.create_graveyard_inventory = function(player)
|
|||||||
player_inv:set_stack(from_list, from_index, nil)
|
player_inv:set_stack(from_list, from_index, nil)
|
||||||
end,
|
end,
|
||||||
allow_take = function(inv, listname, index, stack, player)
|
allow_take = function(inv, listname, index, stack, player)
|
||||||
return 0
|
player_inv:set_stack(listname, index, nil)
|
||||||
|
return stack:get_count()
|
||||||
end,
|
end,
|
||||||
allow_move = function(inv, from_list, from_index, to_list, to_index, count, player)
|
allow_move = function(inv, from_list, from_index, to_list, to_index, count, player)
|
||||||
return 0
|
return 0
|
||||||
@ -84,4 +85,3 @@ function pclasses.api.vacuum_graveyard(player)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user