Files
loop/src/Dodge/Distortion.hs
T
2025-11-22 11:31:06 +00:00

12 lines
277 B
Haskell

--{-# LANGUAGE LambdaCase #-}
module Dodge.Distortion (updateDistortion) where
import Dodge.Data.Distortion
import Control.Lens
updateDistortion :: Distortion -> Maybe Distortion
updateDistortion rd
| rd ^. rdTime > 0 = Just $ rd & rdTime -~ 1
| otherwise = Nothing