User:Rye Greenwood/Sandbox


 * The cooldown of the web spit attack is programmed in a way that it could technically last up to 15 seconds: Every tick✅, the game checks whether the last attack occurred longer than $$x$$ ticks ago, $$x$$ being a number between 180 and 900 randomly picked upon every check. If that is the case, the cooldown is reset and the Black Recluse fires again. Therefore, the cooldown will always last at least 180 ticks (which is equal to 3 seconds), but will exceed a couple ticks more than that in only extremely rare cases – see the :
 * {| class=terraria style="float:left;margin-right:1.6em;"

! Ticks $$k+180$$ !! Chance $$\binom{n}{k}p^k (1-p)^{n-k}$$
 * 180 || 36.7624%
 * 181 || 36.8135%
 * 182 || 18.4068%
 * 183 || 6.1271%
 * 184 || 1.5275%
 * 185 || 0.3042%
 * 186 || 0.0504%
 * 187 || 0.0072%
 * 188 || 0.0001%
 * 189 || 9.756e-5%
 * 190 || 9.6475e-6%
 * }
 * $$n=720$$
 * $$p=\frac{1}{720}$$
 * 187 || 0.0072%
 * 188 || 0.0001%
 * 189 || 9.756e-5%
 * 190 || 9.6475e-6%
 * }
 * $$n=720$$
 * $$p=\frac{1}{720}$$
 * 190 || 9.6475e-6%
 * }
 * $$n=720$$
 * $$p=\frac{1}{720}$$


 * It can be seen that the chance for the cooldown to last only 10 ticks longer than 180 seconds is extremely low, even outside the scope of the rarest item drops.
 * Consequently, the chance that the cooldown lasts 900 ticks, or 15 seconds, is so unimaginably low that it is virtually zero.