Partially fixed:
- It is calculated correctly now, but it also shows percentage over the maximum allowed for that effect.
Ion effect for example should cap out at 60% but it doesn't in the structure menu.
Simple adding a math.min(max effect percentage, math.max(0, percentage calculation)) over it should do the trick.