mirror of
https://github.com/graninas/Hydra.git
synced 2024-12-25 18:12:38 +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
|
||||
|
||||
nextWormhole :: Wormholes -> Int -> Int
|
||||
nextWormhole wms n | (n + 1 < Map.size wms) = n + 1
|
||||
| otherwise = 0
|
||||
nextWormhole wms n | (n + 1 <= Map.size wms) = n + 1
|
||||
| otherwise = 1
|
||||
|
||||
executeWormhole :: AppState -> Int -> LangL ()
|
||||
executeWormhole st prevWormhole = do
|
||||
|
Loading…
Reference in New Issue
Block a user