for some calculations hex-based location is used, for others pixel-based.
Mathlib::hexCoToPixel() function converts hex coordinates to pixel.
However, Mathlib::pixelCoToHex() (expected to be the reverse) apparently does not work. It also isn't called anywhere in game (well, it is called in one function which is never called itself), so its errorneous behavior could easily have been missed.
Preparing correct implementation would allow some calculations to be done - for starters making Plasma Web rely on $pos parameter passed (which is pixel... or at least should be) rather than self-estimating where the fire is coming from!
for some calculations hex-based location is used, for others pixel-based.
Mathlib::hexCoToPixel() function converts hex coordinates to pixel. However, Mathlib::pixelCoToHex() (expected to be the reverse) apparently does not work. It also isn't called anywhere in game (well, it is called in one function which is never called itself), so its errorneous behavior could easily have been missed.
Preparing correct implementation would allow some calculations to be done - for starters making Plasma Web rely on $pos parameter passed (which is pixel... or at least should be) rather than self-estimating where the fire is coming from!