this might have been the toilet bug
This commit is contained in:
parent
a991f2436b
commit
9e077cec16
1 changed files with 14 additions and 0 deletions
14
src/Util.hs
14
src/Util.hs
|
@ -107,6 +107,20 @@ convertTileToImg mat = fromLists conversion
|
||||||
Just ImgEmpty
|
Just ImgEmpty
|
||||||
| otherwise ->
|
| otherwise ->
|
||||||
Nothing
|
Nothing
|
||||||
|
Kitc
|
||||||
|
| any
|
||||||
|
(\(rr, cc) -> M.safeGet (irow + rr) (icol + cc) mat == Just Door)
|
||||||
|
[(1, 0), (-1, 0), (0, 1), (0, -1)] ->
|
||||||
|
Just ImgEmpty
|
||||||
|
| otherwise ->
|
||||||
|
Nothing
|
||||||
|
Toil
|
||||||
|
| any
|
||||||
|
(\(rr, cc) -> M.safeGet (irow + rr) (icol + cc) mat == Just Door)
|
||||||
|
[(1, 0), (-1, 0), (0, 1), (0, -1)] ->
|
||||||
|
Just ImgEmpty
|
||||||
|
| otherwise ->
|
||||||
|
Nothing
|
||||||
_ ->
|
_ ->
|
||||||
Nothing
|
Nothing
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue