Move towards adding in pulse laser "rifle" (like UT shock rifle)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
module Dodge.IsPulseLaser (
|
||||
isPulseLaser,
|
||||
isPulseCapacitor,
|
||||
) where
|
||||
|
||||
import Control.Lens
|
||||
import Dodge.Data.ComposedItem
|
||||
import Dodge.Data.DoubleTree
|
||||
import Dodge.Data.Item
|
||||
|
||||
isPulseLaser :: LocationDT OItem -> Bool
|
||||
isPulseLaser loc =
|
||||
loc ^. locDT . dtValue . _1 . itType == HELD LASER
|
||||
&& (loc ^? locDT . dtLeft . ix 0 . dtValue . _1 . itType == Just (CRAFT CAPACITOR))
|
||||
|
||||
isPulseCapacitor :: LocationDT OItem -> Bool
|
||||
isPulseCapacitor loc =
|
||||
loc ^. locDT . dtValue . _1 . itType == HELD LASER
|
||||
&& (loc ^? locDT . dtLeft . ix 0 . dtValue . _1 . itType == Just (CRAFT CAPACITOR))
|
||||
Reference in New Issue
Block a user