Refactor updates
This commit is contained in:
@@ -7,6 +7,9 @@ import Control.Lens
|
||||
you :: World -> Creature
|
||||
you w = w ^?! cWorld . lWorld . creatures . ix 0
|
||||
|
||||
youc :: CWorld -> Creature
|
||||
youc w = w ^?! lWorld . creatures . ix 0
|
||||
|
||||
yourItem :: World -> Maybe Item
|
||||
yourItem w = _crInv (you w) IM.!? crSel (you w)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user