mirror of
https://github.com/graninas/Hydra.git
synced 2024-12-26 18:43:41 +03:00
wormholes to next
This commit is contained in:
parent
120f5ed29d
commit
8684dd1b75
@ -153,8 +153,8 @@ getGameState :: AppState -> LangL GameState
|
|||||||
getGameState st = readVarIO $ st ^. gameState
|
getGameState st = readVarIO $ st ^. gameState
|
||||||
|
|
||||||
nextWormhole :: Wormholes -> Int -> Int
|
nextWormhole :: Wormholes -> Int -> Int
|
||||||
nextWormhole wms n | (n + 1 < Map.size wms) = n + 1
|
nextWormhole wms n | (n + 1 <= Map.size wms) = n + 1
|
||||||
| otherwise = 0
|
| otherwise = 1
|
||||||
|
|
||||||
executeWormhole :: AppState -> Int -> LangL ()
|
executeWormhole :: AppState -> Int -> LangL ()
|
||||||
executeWormhole st prevWormhole = do
|
executeWormhole st prevWormhole = do
|
||||||
|
Loading…
Reference in New Issue
Block a user