Cleanup constructors FooUse -> UseFoo
This commit is contained in:
@@ -304,14 +304,14 @@ getBulletType itmtree magtree mz cr w =
|
||||
targetingtree <- lookup WeaponTargetingLink (itmtree ^. ldtRight) -- left or right for these?
|
||||
tp <- targetingtree ^? ldtValue . itUse . tgPos . _Just
|
||||
attree <- lookup AmmoTargetingLink (magtree ^. ldtLeft)
|
||||
bt <- attree ^? ldtValue . itUse . buMod . bmTrajectory
|
||||
bt <- attree ^? ldtValue . itUse . ubMod . bmTrajectory
|
||||
return $ getBulletTrajectory mz (itmtree ^. ldtValue) bt tp cr w
|
||||
bpayload = fromMaybe BulSpark $ do
|
||||
attree <- lookup AmmoPayloadLink (magtree ^. ldtLeft)
|
||||
attree ^? ldtValue . itUse . buMod . bmPayload
|
||||
attree ^? ldtValue . itUse . ubMod . bmPayload
|
||||
beffect = fromMaybe DestroyBullet $ do
|
||||
attree <- lookup AmmoEffectLink (magtree ^. ldtLeft)
|
||||
attree ^? ldtValue . itUse . buMod . bmEffect
|
||||
attree ^? ldtValue . itUse . ubMod . bmEffect
|
||||
|
||||
getBulletTrajectory ::
|
||||
Muzzle ->
|
||||
|
||||
Reference in New Issue
Block a user