This page has been automatically translated by machine translation. Please note that translations may not be entirely accurate.
We calculate the expected damage (CP) of Touhou Lost Word based on each bullet's damage, accuracy, critical hit rate, and number of bullets. As of version 0.7, we only support the default formula displayed on the party screen (which does not depend on the ally's attack stats or the enemy's defense stats). The CP displayed on the party screen is the sum of all bullets (1–6) from shots, spell cards, and Last Words, rounded up to the nearest whole number.
Calculates a brightness value (with endpoints specified by constants) that looks natural over any distance within the specified range. Please feel free to use this for CSS `hsla()` in dark themes. (This is not a simple inverse proportion! It appropriately corrects for the inverse square law.)