This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
skills:jumping [2018/02/21 20:15] karl Add hint that jumping as attack may work since server version 1.70.y correctly, add math example to compute the amount of tiles to jump |
skills:jumping [2020/01/02 16:03] (current) karl cosmetics, make carrying 500*1000 instead 500'000 in the example |
||
---|---|---|---|
Line 26: | Line 26: | ||
and this number is then **divided** by the carrying weight of the inventory to receive the sum of tiles to jump. | and this number is then **divided** by the carrying weight of the inventory to receive the sum of tiles to jump. | ||
- | Example : STR=25, DEX=17, JUMP_LEVEL=4, PL_CARRYING=500'000 | + | Example : STR=25, DEX=17, JUMP_LEVEL=4, PL_CARRYING=500 * 1000 |
> ( (25 * 25 *25) * 17 * 4 ) / 500000 | > ( (25 * 25 *25) * 17 * 4 ) / 500000 | ||
>> ( 15625 * 17 * 4 ) / 500000 | >> ( 15625 * 17 * 4 ) / 500000 | ||
Line 32: | Line 32: | ||
>>> 2.125 | >>> 2.125 | ||
- | Distance limited to 2 tiles: | + | The jumping distance is limited to 2 tiles: |
<code c> | <code c> | ||
if(pl->carrying!=0) /* don't want div by zero !! */ | if(pl->carrying!=0) /* don't want div by zero !! */ |