scroll 1.20170122 → 1.20180421
raw patch · 4 files changed
+15/−33 lines, 4 files
Files
- CHANGELOG +7/−0
- Monster.hs +0/−31
- TODO +7/−0
- scroll.cabal +1/−2
CHANGELOG view
@@ -1,3 +1,10 @@+scroll (1.20180421) unstable; urgency=medium++ * Added stack.yaml.+ * Fix build with ghc 8.2.++ -- Joey Hess <id@joeyh.name> Sat, 21 Apr 2018 22:34:02 -0400+ scroll (1.20170122) unstable; urgency=medium * Fix build with optparse-applicative-0.13.
− Monster.hs
@@ -1,31 +0,0 @@-module Monster where--import qualified Data.Set as S-import Control.Monad.State.Strict--import Types-import World--monsterPos :: Monster -> Pos-monsterPos (Bug p) = p-monsterPos (Mold p) = p--moveMonster :: Monster -> Pos -> M ()-moveMonster m p = do- removeMonster m- addMonster $ case m of- Bug _ -> Bug p- Mold _ -> Mold p--addMonster :: Monster -> M ()-addMonster m = do- writeActor (monsterPos m) (AMonster m)- changeMonsters (S.insert m)--removeMonster :: Monster -> M ()-removeMonster m = do- writeActor (monsterPos m) Empty- changeMonsters (S.delete m)--changeMonsters :: (S.Set Monster -> S.Set Monster) -> M ()-changeMonsters f = modify $ \s -> s { monsters = f (monsters s) }
TODO view
@@ -1,3 +1,10 @@+Add a bonus level with:+Front side, a NanoGenMo generated novel. (It's possible that some of+the current levels would qualify, if I'd only written them in November!) +Back side, my joeywiki/code/scroll/thoughts.mdwn. (This contains+a spoiler for scroll, which fits very thematically with scroll's first+level containing its license..)+ For spells with only 1 component, add a letter frequency table, and make the charmap be constructed by picking a letter with the desired frequency that is not otherwise used. This adds a different sort of randomness to the
scroll.cabal view
@@ -1,5 +1,5 @@ Name: scroll-Version: 1.20170122+Version: 1.20180421 Cabal-Version: >= 1.6 License: GPL-2 Maintainer: Joey Hess <id@joeyh.name>@@ -60,7 +60,6 @@ Level.Random Level.Shuffle Level.Tutorial- Monster Peruser Pager Player