Hengband
2.1.4
|
剣術の実装 / Blade arts [詳解]
#include "angband.h"
マクロ定義 | |
#define | TECHNIC_HISSATSU (REALM_HISSATSU - MIN_TECHNIC) |
関数 | |
static int | get_hissatsu_power (int *sn) |
使用可能な剣術を選択する / Allow user to choose a blade arts. [詳解] | |
void | do_cmd_hissatsu (void) |
剣術コマンドのメインルーチン [詳解] | |
void | do_cmd_gain_hissatsu (void) |
剣術コマンドの学習 [詳解] | |
s16b | mult_hissatsu (int mult, u32b *flgs, monster_type *m_ptr, int mode) |
剣術のスレイ倍率計算を行う / Calcurate magnification of hissatsu technics [詳解] | |
剣術の実装 / Blade arts
#define TECHNIC_HISSATSU (REALM_HISSATSU - MIN_TECHNIC) |
void do_cmd_gain_hissatsu | ( | void | ) |
剣術コマンドの学習
void do_cmd_hissatsu | ( | void | ) |
剣術コマンドのメインルーチン
|
static |
使用可能な剣術を選択する / Allow user to choose a blade arts.
sn | 選択した特殊技能ID、キャンセルの場合-1、不正な選択の場合-2を返す |
If a valid spell is chosen, saves it in '*sn' and returns TRUE
If the user hits escape, returns FALSE, and set '*sn' to -1
If there are no legal choices, returns FALSE, and sets '*sn' to -2
The "prompt" should be "cast", "recite", or "study"
The "known" should be TRUE for cast/pray, FALSE for study
nb: This function has a (trivial) display bug which will be obvious
when you run it. It's probably easy to fix but I haven't tried,
sorry.
s16b mult_hissatsu | ( | int | mult, |
u32b * | flgs, | ||
monster_type * | m_ptr, | ||
int | mode | ||
) |
剣術のスレイ倍率計算を行う / Calcurate magnification of hissatsu technics
mult | 剣術のスレイ効果以前に算出している多要素の倍率(/10倍) |
flgs | 剣術に使用する武器のスレイフラグ配列 |
m_ptr | 目標となるモンスターの構造体参照ポインタ |
mode | 剣術のスレイ型ID |