Add machine direction to turret direction
This commit is contained in:
@@ -1159,7 +1159,8 @@ mcShootLaser _ mc =
|
||||
shootLaser (MachinePrimarySound (_mcID mc)) (DamageLaser 11) 1 pos dir yellow
|
||||
where
|
||||
pos = _mcPos mc +.+ 20 *.* unitVectorAtAngle dir
|
||||
dir = mc ^?! mcType . mctTurret . tuDir
|
||||
dir = (mc ^?! mcType . mctTurret . tuDir)
|
||||
+ mc ^. mcDir
|
||||
|
||||
mcShootAuto :: Item -> Machine -> World -> World
|
||||
mcShootAuto itm mc w
|
||||
|
||||
Reference in New Issue
Block a user