add scripts/devel/unforbidall and scanitemother

develop
jj 2013-04-08 23:16:49 +02:00
parent 7ba1f9e612
commit 2776123274
2 changed files with 13 additions and 0 deletions

@ -0,0 +1,10 @@
# list indexes in world.item.other[] where current selected item appears
tg = df.item_find
raise 'select an item' if not tg
o = df.world.items.other
# discard ANY/BAD
o._indexenum::ENUM.sort.transpose[1][1..-2].each { |k|
puts k if o[k].find { |i| i == tg }
}

@ -0,0 +1,3 @@
# unforbid all items
df.world.items.all.each { |i| i.flags.forbid = false }