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

Artifact gems are not autopicked up anymore

git-svn-id: http://svn.net-core.org/repos/t-engine4@4475 51575b47-30f0-44d4-a5cc-537603b46e54
parent dc5f821b
No related branches found
No related tags found
No related merge requests found
......@@ -159,7 +159,7 @@ function _M:describeFloor(x, y)
local i, nb = 1, 0
local obj = game.level.map:getObject(x, y, i)
while obj do
if not (obj.auto_pickup and self:pickupFloor(i, true)) then
if not ((obj.auto_pickup and not obj.unique) and self:pickupFloor(i, true)) then
if self:attr("auto_id") and obj:getPowerRank() <= self.auto_id then obj:identify(true) end
nb = nb + 1
i = i + 1
......@@ -349,7 +349,7 @@ function _M:playerFOV()
game.level.map.seens(x, y, 0.6)
end
end, true, true, true)
local effStalker = self:hasEffect(self.EFF_STALKER)
if effStalker then
if core.fov.distance(self.x, self.y, effStalker.target.x, effStalker.target.y) <= 10 then
......
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