-- if vocal then game.logSeen(self, "%s picks up (%s.): %s.", self.name:capitalize(), letter, o:getName{do_color=true}) end
-- if vocal then game.logSeen(self, "%s picks up (%s.): %s%s.", self.name:capitalize(), letter, num>1 and ("%d "):format(num) or "", newo:getName{do_color=true, no_count = true}) end
ifvocalthengame.logSeen(self,"%s picks up (%s.): %s%s.",self.name:capitalize(),letter,num>1and("%d "):format(num)or"",o:getName{do_color=true,no_count=true})end
returnnewo
-- return o
else
-- if vocal then game.logSeen(self, "%s has no room for: %s.", self.name:capitalize(), name) end
ifvocalthengame.logSeen(self,"%s has no room for: %s.",self.name:capitalize(),o:getName{do_color=true})end
return
end
elseifprepickup=="skip"then
return
else
returntrue
end
else
ifvocalthengame.logSeen(self,"There is nothing to pick up here.")end
end
end
--- Pick up an object from the floor
-- @param i = object position on map at self.x, self.y
-- @param vocal = boolean set true to post messages to log
-- @param no_sort = boolen to suppress automatic sorting of inventory