ruby: items in containers are free

develop
jj 2012-11-26 20:09:56 +01:00
parent f091284a75
commit 76bb5f0196
1 changed files with 1 additions and 1 deletions

@ -56,7 +56,7 @@ module DFHack
def item_isfree(i)
!i.flags.trader and
!i.flags.in_job and
!i.flags.in_inventory and
(!i.flags.in_inventory or i.general_refs.grep(GeneralRefContainedInItemst).first) and
!i.flags.removed and
!i.flags.in_building and
!i.flags.owned and