Fix blink bug
This commit is contained in:
+10
-7
@@ -2,15 +2,18 @@ module Dodge.TestString where
|
||||
|
||||
import Dodge.Data.Universe
|
||||
import Control.Lens
|
||||
import Data.Maybe
|
||||
--import Data.Maybe
|
||||
import ShortShow
|
||||
|
||||
testStringInit :: Universe -> [String]
|
||||
testStringInit u = [
|
||||
show $ u ^? uvWorld . hammers . ix DoubleMouseHam
|
||||
, show $ u ^? uvWorld . cWorld . creatures . ix 0 . crLeftInvSel . _Just
|
||||
, fromMaybe "" $ do
|
||||
i <- u ^? uvWorld . cWorld . creatures . ix 0 . crLeftInvSel . _Just
|
||||
h <- u ^? uvWorld . cWorld . creatures . ix 0 . crInv . ix i . itUse . leftHammer
|
||||
return $ show h
|
||||
shortShow $ u ^?! uvWorld . cWorld . creatures . ix 0 . crPos
|
||||
]
|
||||
-- [ show $ u ^? uvWorld . hammers . ix DoubleMouseHam
|
||||
-- , show $ u ^? uvWorld . cWorld . creatures . ix 0 . crLeftInvSel . _Just
|
||||
-- , fromMaybe "" $ do
|
||||
-- i <- u ^? uvWorld . cWorld . creatures . ix 0 . crLeftInvSel . _Just
|
||||
-- h <- u ^? uvWorld . cWorld . creatures . ix 0 . crInv . ix i . itUse . leftHammer
|
||||
-- return $ show h
|
||||
-- ]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user