Fear Factor: Difference between revisions
From Eco - English Wiki
[unchecked revision] | [checked revision] |
m 1 revision imported |
Rewrite page using proper math formulae. Improve grammar and fluency. |
||
Line 1: | Line 1: | ||
{{contentneeded}} | {{contentneeded}} | ||
In the formulae below: | |||
* ''distance'' = Distance between the predator (the player or another animal) and the prey [[Animals|animal]]. | |||
* ''range'' = Predator's detection range (<code>detectRange</code> value), which can be reduced by taking [[Predatory Instincts]]. | |||
* ''fear'' = Prey's fear factor (<code>fearFactor</code> value). | |||
A prey will be put on alert if: <math>\mathit{distance} < (\mathit{range} \times \mathit{fear})</math> | |||
The prey's alertness towards a predator is assigned each tick according to the following formula: | |||
<math>\mathit{alertness} = \mathit{alertness} + {\mathit{range}^2 - \mathit{distance}^2 \over \mathit{range}^2} \times 50</math> | |||
If <math>\mathit{alertness} \ge 100</math> the prey will flee. Default alertness to predators may be hard coded currently. | |||
Revision as of 20:14, 22 February 2022
In the formulae below:
- distance = Distance between the predator (the player or another animal) and the prey animal.
- range = Predator's detection range (
detectRange
value), which can be reduced by taking Predatory Instincts. - fear = Prey's fear factor (
fearFactor
value).
A prey will be put on alert if:
The prey's alertness towards a predator is assigned each tick according to the following formula:
If the prey will flee. Default alertness to predators may be hard coded currently.