Inventory order
Reported by Mikael Lind | November 6th, 2008 @ 07:36 AM | in 0.1
Ensure that objects end up in the right order when moving into inventories.
- Alive (monsters, always mobile and impassable)
- Dead, mobile, and impassable (boulders)
- Dead, mobile, and passable (items except boulders)
- Dead and immobile (features, both passable and impassable)
function before(a, b)
if a.alive or b.alive then
return not b.alive
elseif not a.mobile or not b.mobile then
return a.mobile
elseif not a.passable or not b.passable then
return b.passable
else
return false
end
end
Comments and changes to this ticket
-

Mikael Lind November 10th, 2008 @ 07:53 AM
Also change the linked inventory list so that it is no longer circular. Add the attribute last_inv to containers.
-

Mikael Lind November 17th, 2008 @ 02:07 PM
- State changed from new to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Moonshine is a roguelike computer game written in Lua.