Fear Factor: Difference between revisions
From Eco - English Wiki
[unchecked revision] | [checked revision] |
mNo edit summary |
No edit summary Tag: 2017 source edit |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
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. | |||
Latest revision as of 10:19, 2 July 2024
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.