Skip to content
Snippets Groups Projects
Commit 8f420c95 authored by dg's avatar dg
Browse files

Loot cant drop outside of the derth arena

git-svn-id: http://svn.net-core.org/repos/t-engine4@5824 51575b47-30f0-44d4-a5cc-537603b46e54
parent 43e27560
No related branches found
No related tags found
No related merge requests found
......@@ -2155,7 +2155,8 @@ function _M:die(src, death_note)
local d = core.fov.distance(self.x, self.y, i, j)
if game.level.map:isBound(i, j) and
d <= dist and
not game.level.map:checkAllEntities(i, j, "block_move") then
not game.level.map:checkAllEntities(i, j, "block_move") and
not game.level.map.attrs(i, j, "no_drop") then
poss[#poss+1] = {i,j,d}
end
end
......
......@@ -19,11 +19,11 @@
defineTile("#", "HARDWALL")
defineTile("+", "GENERIC_LEVER_DOOR")
defineTile(":", "GRASS", nil, nil, nil, {no_teleport=true})
defineTile(":", "GRASS", nil, nil, nil, {no_teleport=true, no_drop=true})
defineTile(".", "SAND")
defineTile("-", "FLOOR")
defineTile("_", "FLOOR", nil, nil, nil, {no_teleport=true})
defineTile("T", "TREE", nil, nil, nil, {no_teleport=true})
defineTile("_", "FLOOR", nil, nil, nil, {no_teleport=true, no_drop=true})
defineTile("T", "TREE", nil, nil, nil, {no_teleport=true, no_drop=true})
startx = 8
starty = 12
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment