Tweak lasers

This commit is contained in:
2026-03-26 16:17:34 +00:00
parent 80ef7ec909
commit 9081bdc97f
7 changed files with 127 additions and 122 deletions
+1 -3
View File
@@ -35,7 +35,6 @@ import Dodge.Zoning.Creature
import FoldableHelp
import Geometry
import LensHelp
import Picture
import qualified Quaternion as Q
import RandomHelp
import qualified SDL
@@ -218,7 +217,7 @@ shineTargetLaser cr loc w = fromMaybe (w & pointittarg . itTgPos .~ Nothing) $ d
{ _lpPhaseV = 1
, _lpDir = _crDir cr + argV (Q.qToV2 q)
, _lpPos = pos
, _lpColor = col
-- , _lpColor = col
, _lpType = TargetingLaser (_itID itm)
}
where
@@ -233,7 +232,6 @@ shineTargetLaser cr loc w = fromMaybe (w & pointittarg . itTgPos .~ Nothing) $ d
itm = itmtree ^. dtValue . _1
pointittarg = cWorld . lWorld . items . ix itid . itTargeting
itid = itm ^. itID . unNInt
col = blue -- mixColors reloadFrac (1-reloadFrac) blue red
shineTorch :: Creature -> LocationDT OItem -> World -> World
shineTorch cr loc = fromMaybe id $ do