User:Grunni/Effective Health Research/ESCalc

This page contains the parser function for the effective shield calculation. Assuming that the value of mods are input as positive values expressed to two decimal places, it looks like:



Nominal Shield is made up of several parts:



As parser code, it is exactly the following:

The outermost #expr is to round the answer to nearest integer. On the inside, the code mimics the above calculation with the placeholders of Valkyr and Slash, arbitrarily picked for my testing process so I had the data to verify at each step.

The data draws from User:Grunni/Effective Health Research/VariableStorage, via Labeled Section Transclusion. LST is being used to make data inclusion more modular, but if proves unwieldy for others to use, I can abandon the implementation in favor of a whole-page (normal) transclusion. (In other words, might be fine to use.)