Hengband  2.2.1
creature.h
[詳解]
1 #pragma once
2 
3 /*! @brief 消費する行動エネルギー値を正規乱数で返す(中央100/分散25) / Random energy */
4 #define ENERGY_NEED() (randnor(100, 25))
5 
6 /*! @brief 加速値に応じた基本行動エネルギー消費量を返す / Extract energy from speed (Assumes that SPEED is unsigned) */
7 #define SPEED_TO_ENERGY(SPEED) (((SPEED) > 199) ? 49 : extract_energy[(SPEED)])
8 
9 extern const byte extract_energy[200];
const byte extract_energy[200]
加速値による実質速度修正倍率テーブル / This table allows quick conversion from "speed" to "energy"
Definition: creature.c:31