Add count of used items to combinations
This commit is contained in:
@@ -50,6 +50,9 @@ invertListInv = IM.foldrWithKey
|
||||
(\k it -> ((_itType it, k, itStackAmount it) :) )
|
||||
[]
|
||||
|
||||
-- gives a list of indices-item pairs.
|
||||
-- Note that within the pair, indices can be repeated if two or more of an item
|
||||
-- are needed
|
||||
combineItemListYou :: World -> [([Int],Item)]
|
||||
combineItemListYou = concatMap lookupItems . invertListInvMult . yourInv
|
||||
|
||||
|
||||
Reference in New Issue
Block a user