Hengband  2.2.1
関数
spells-diceroll.c ファイル
#include "angband.h"
#include "spells-diceroll.h"
#include "monster.h"
#include "monsterrace-hook.h"
#include "player-class.h"
#include "mutation.h"
#include "rooms.h"
spells-diceroll.c の依存先関係図:

関数

bool_hack common_saving_throw_charm (player_type *player_ptr, HIT_POINT pow, monster_type *m_ptr)
 モンスター魅了用セービングスロー共通部(汎用系) [詳解]
 
bool_hack common_saving_throw_control (player_type *player_ptr, HIT_POINT pow, monster_type *m_ptr)
 モンスター服従用セービングスロー共通部(部族依存系) [詳解]
 
PERCENTAGE beam_chance (void)
 一部ボルト魔法のビーム化確率を算出する / Prepare standard probability to become beam for fire_bolt_or_beam() [詳解]
 

関数詳解

◆ beam_chance()

PERCENTAGE beam_chance ( void  )

一部ボルト魔法のビーム化確率を算出する / Prepare standard probability to become beam for fire_bolt_or_beam()

戻り値
ビーム化確率(%)

ハードコーティングによる実装が行われている。 メイジは(レベル)、ハイメイジ、スペルマスターは(レベル)、それ以外の職業は(レベル/2)%

◆ common_saving_throw_charm()

bool_hack common_saving_throw_charm ( player_type player_ptr,
HIT_POINT  pow,
monster_type m_ptr 
)

モンスター魅了用セービングスロー共通部(汎用系)

引数
pow魅了パワー
m_ptr対象モンスター
戻り値
魅了に抵抗したらTRUE

◆ common_saving_throw_control()

bool_hack common_saving_throw_control ( player_type player_ptr,
HIT_POINT  pow,
monster_type m_ptr 
)

モンスター服従用セービングスロー共通部(部族依存系)

引数
pow服従パワー
m_ptr対象モンスター
戻り値
服従に抵抗したらTRUE