Edit: oh, there are "3"s too!

As it turns out, this was a stack of TWO items (a gem and a scroll). Maybe this is intended to be a "number of items in the pile" indicator, and it has an off-by-one bug?
Moderator: Moderator



Code: Select all
						game.level.map:addObject(self.x, self.y, o)
Code: Select all
						local drop_x, drop_y = util.findFreeGrid(self.x, self.y, 5, false, {[engine.Map.OBJECT]=true})
						game.level.map:addObject(drop_x, drop_y, o)
<DarkGod> lets say it's intended
<DarkGod> lets say it's intended


Code: Select all
                  local drop_x, drop_y = util.findFreeGrid(self.x, self.y, 5, false, {[engine.Map.OBJECT]=true})
                  drop_x = drop_x or self.x
                  drop_y = drop_y or self.y
                  game.level.map:addObject(drop_x, drop_y, o)
<DarkGod> lets say it's intended