Hengband  2.2.1
変数
creature.c ファイル
#include "angband.h"
#include "creature.h"
creature.c の依存先関係図:

変数

const byte extract_energy [200]
 加速値による実質速度修正倍率テーブル / This table allows quick conversion from "speed" to "energy" [詳解]
 

変数詳解

◆ extract_energy

const byte extract_energy[200]
初期値:
=
{
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 3, 3, 3,
3, 3, 3, 3, 3, 4, 4, 4, 4, 4,
5, 5, 5, 5, 6, 6, 7, 7, 8, 9,
10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
30, 31, 32, 33, 34, 35, 36, 36, 37, 37,
38, 38, 39, 39, 40, 40, 40, 41, 41, 41,
42, 42, 42, 43, 43, 43, 44, 44, 44, 44,
45, 45, 45, 45, 45, 46, 46, 46, 46, 46,
47, 47, 47, 47, 47, 48, 48, 48, 48, 48,
49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
}

加速値による実質速度修正倍率テーブル / This table allows quick conversion from "speed" to "energy"

The basic function WAS ((S>=110) ? (S-110) : (100 / (120-S)))
Note that table access is *much* quicker than computation.
Note that the table has been changed at high speeds.  From
"Slow (-40)" to "Fast (+30)" is pretty much unchanged, but
at speeds above "Fast (+30)", one approaches an asymptotic
effective limit of 50 energy per turn.  This means that it
is relatively easy to reach "Fast (+30)" and get about 40
energy per turn, but then speed becomes very "expensive",
and you must get all the way to "Fast (+50)" to reach the
point of getting 45 energy per turn.  After that point,
furthur increases in speed are more or less pointless,
except to balance out heavy p_ptr->inventory_list.
Note that currently the fastest monster is "Fast (+30)".
It should be possible to lower the energy threshhold from
100 units to 50 units, though this may interact badly with
the (compiled out) small random energy boost code.  It may
also tend to cause more "clumping" at high speeds.