Refactor damages
This commit is contained in:
+1
-4
@@ -575,10 +575,7 @@ updateTeslaArc w pt
|
||||
, randWallReflect ld' wl
|
||||
)
|
||||
| ArcStep lp' ld' _ <- last thearc = (lp', rp ld')
|
||||
damthings (ArcStep p dir crwl) = damageCrWlID (thedamage p dir) crwl
|
||||
thedamage p dir = Damage ELECTRICAL 50 (p -.- q) p (p +.+ q)
|
||||
where
|
||||
q = 5 *.* unitVectorAtAngle dir
|
||||
damthings (ArcStep _ _ crwl) = damageCrWlID (Electrical 50) crwl
|
||||
|
||||
randWallReflect :: RandomGen g => Float -> Wall -> State g Float
|
||||
randWallReflect a wl = randPeaked a1 outa a2
|
||||
|
||||
Reference in New Issue
Block a user