Move towards using item structural function when using items
This commit is contained in:
@@ -330,7 +330,7 @@ getBulletType itmtree magtree mz cr w =
|
||||
where
|
||||
btraj = fromMaybe BasicBulletTrajectory $ do
|
||||
targetingtree <- lookup WeaponTargetingLink (itmtree ^. ldtRight) -- left or right for these?
|
||||
tp <- targetingtree ^? ldtValue . itUse . tgPos . _Just
|
||||
tp <- targetingtree ^? ldtValue . itTargeting . itTgPos . _Just
|
||||
attree <- lookup AmmoTargetingLink (magtree ^. ldtLeft)
|
||||
bt <- attree ^? ldtValue . itUse . ubMod . bmTrajectory
|
||||
return $ getBulletTrajectory mz (itmtree ^. ldtValue) bt tp cr w
|
||||
|
||||
Reference in New Issue
Block a user