2015-11-09 19:21:00 -07:00
|
|
|
# list selected item's indices in world.item.other[]
|
2015-11-04 05:14:10 -07:00
|
|
|
=begin
|
2013-04-08 15:16:49 -06:00
|
|
|
|
2015-11-04 05:14:10 -07:00
|
|
|
devel/scanitemother
|
|
|
|
===================
|
|
|
|
List indices in ``world.item.other[]`` where current selected item appears.
|
|
|
|
|
|
|
|
=end
|
2013-04-08 15:16:49 -06:00
|
|
|
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|
|
2015-02-14 20:53:06 -07:00
|
|
|
puts k if o[k].find { |i| i == tg }
|
2013-04-08 15:16:49 -06:00
|
|
|
}
|