Extend inv item location information to include "attached" items
This commit is contained in:
@@ -25,7 +25,8 @@ testStringInit u = (topTestPart u
|
||||
(IM.toList . IM.filter (\itloc -> itloc ^? ilCrID == Just 0) $ (u ^. uvWorld . cWorld . lWorld . itemLocations)) <> ( IM.elems $ fmap h (u ^?! uvWorld . cWorld . lWorld . creatures . ix 0 . crInv))
|
||||
where
|
||||
h itm = (_itID itm, _itLocation itm)
|
||||
showh (x,(InInv a b c d)) = show x ++ "," ++ show a ++ "," ++ show b ++"," ++ show c ++"," ++ show d
|
||||
showh (x,(InInv a b c d e)) = show x ++ "," ++ show a ++ "," ++ show b ++"," ++ show c ++"," ++ show d
|
||||
++ "," ++ show e
|
||||
showh _ = ""
|
||||
|
||||
topTestPart :: Universe -> [String]
|
||||
@@ -35,7 +36,7 @@ topTestPart u = [show $ u ^? uvWorld . hud . hudElement . diSections . sssExtra
|
||||
|
||||
showManObj :: ManipulatedObject -> String
|
||||
showManObj (InInventory SortInventory) = "SortInventory"
|
||||
showManObj (InInventory (SelectedItem x y)) = "SelItem: "++ show x++ " Root: "++show y
|
||||
showManObj (InInventory (SelectedItem x y z)) = "SelItem: "++ show x++ " Root: "++show y++" Attached: "++show z
|
||||
showManObj (SelNothing) = "SelNothing"
|
||||
showManObj ((InNearby SortNearby)) = "SortNearby"
|
||||
showManObj (InNearby (SelCloseObject x)) = "Close " ++ show x
|
||||
|
||||
Reference in New Issue
Block a user