Board Thread:General Discussion/@comment-26461371-20151027095940

Recently I saw the new Luck-based NBCI Trigger Rate formulas, which got me a little push into expressing the same in code form. Even if I suck at coding.

This is what I got so far:

(Pardon the mangled tabbing; I personally use a tabulator width of 4)

and while I got results close to the ones indicated on the table in the aforementioned page (77% for torp CI for a shipgirl with 60 Luck as flagship; my script got 77.3074069840786%), I still have questions (aside from the overall correctness of my script):


 * How exactly are pre-cap and post-cap modifiers applied? (code-wise)
 * If both sides have Searchlights, does the Searchlight modifier become 5 + (-10) = -5 ?
 * Would having a Star Shell activating together with the Searchlight have any effect on the modifier?

Any help on these (and a few others I might ask later) would help this newbie greatly. Thanks in advance! 