Fix bug in flame wall damages, cleanup

This commit is contained in:
2025-06-08 14:16:59 +01:00
parent 4c3a3d83da
commit 5b1e4fba4e
16 changed files with 93 additions and 253 deletions
+1 -1
View File
@@ -225,7 +225,7 @@ heron x y z
area = sqrt (s * (s - a) * (s - b) * (s - c))
in 2 * area / a
-- | Multiplies reflection in normal by factor.
-- | Multiplies reflection in normal by factor. With 0 same as reflectAngle
reflectInParam :: Float -> Point2 -> Point2 -> Point2
reflectInParam x line vec =
let angle = 2 * angleBetween line vec