Commit mid add time scroll
This commit is contained in:
+6
-12
@@ -20,19 +20,13 @@ useL lu = case lu of
|
||||
LBoost -> boostSelfL 10
|
||||
|
||||
useRewindGun :: Item -> Creature -> World -> World
|
||||
useRewindGun _ _ w = case w ^. cWorld . cwTime . rewindWorlds of
|
||||
[w'] -> rewindusing w' [w']
|
||||
(w' : ws) -> rewindusing w' ws
|
||||
useRewindGun _ _ w = case w ^. cwTime . rewindWorlds of
|
||||
[w'] -> w & cwTime . maybeWorld .~ Just' w'
|
||||
(w' : ws) -> w
|
||||
& cwTime . maybeWorld
|
||||
.~ Just' w'
|
||||
& cwTime . rewindWorlds .~ ws
|
||||
_ -> w
|
||||
where
|
||||
rewindusing :: CWorld -> [CWorld] -> World
|
||||
rewindusing w' ws =
|
||||
w
|
||||
& cWorld . cwTime . maybeWorld
|
||||
.~ Just'
|
||||
( w'
|
||||
& cwTime . rewindWorlds .~ ws
|
||||
)
|
||||
|
||||
-- be careful changing this around; potential problems include updating the
|
||||
-- creature but using the old crInvSel value
|
||||
|
||||
Reference in New Issue
Block a user