directional_shout
Posted: Tue Oct 01, 2013 1:39 am
While looking at borrowing directional_shout.lua's particle effects for my module, I noticed that ToME's version is a bit off (asymmetrical and a bit skewed). This is particularly obvious if you use a spread 90 (for a 180° arc total) and a distortion_factor of 0. There are a couple of bugs that cause this:
- Starting the for loop at 1 instead of 0 or 5 then iterating by 5 means that it stops at 71° (for example) when it should stop at 75°. The fix is to start iterating at 5 (or at 0 and merge in the special case for the first point in each arc).
- Subtracting 90° from the direction of the shout, determining the starting point, then adding 90° causes the starting point to be skewed. The fix is to not adjust the angle by 90.