This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
formulae [2016/10/07 02:30] skylarmt created |
formulae [2019/04/16 02:40] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Formulae ====== | ====== Formulae ====== | ||
| - | Here are the formulas responsible for calculating damage and stuff. "user_level" refers to the level rounded down to the nearest integer. "^" means take the left number and raise it to the power of the right number. | + | Here are the formulas responsible for calculating damage and stuff. $userlevel$ refers to the level rounded down to the nearest integer. |
| ===== Place Damage ===== | ===== Place Damage ===== | ||
| - | Consult the [[type_chart|Type Charts]] for more info. Places have a max of 100 health. | + | Consult the [[type_chart|Type Charts]] for info on the modifiers. Places have a max of 100 health. |
| - | damage = user_level ^ 0.5 * 4 * type_mod * terrain_mod * weather_mod | + | $ damage = userlevel ^ {0.5} * 4 * typemod * terrainmod * weathermod $ |
| ===== User Damage (recoil) ===== | ===== User Damage (recoil) ===== | ||
| - | recoil = user_level ^ 0.5 * 5 | + | $ recoil = userlevel ^ {0.5} * 5 $ |
| ===== User Level ===== | ===== User Level ===== | ||
| Line 17: | Line 17: | ||
| Level is stored as a number with a bunch of decimal places. A fraction of a level is added for every action taken. That fraction is calculated as follows: | Level is stored as a number with a bunch of decimal places. A fraction of a level is added for every action taken. That fraction is calculated as follows: | ||
| - | levelfrac = ((user_level + 1) ^ 2) ^ -1.2 | + | $ levelfrac = ((userlevel + 1) ^ 2) ^ {-1.2} $ |
| + | |||
| + | ===== Max Health ===== | ||
| + | |||
| + | The max user health is very simple: | ||
| + | |||
| + | $ health = userlevel * 100 $ | ||