スナイパー技能の実装 / Sniping
[詳解]
#include "angband.h"
#include "core.h"
#include "util.h"
#include "term.h"
#include "player-status.h"
#include "cmd-basic.h"
#include "snipe.h"
#include "monsterrace.h"
#include "view-mainwindow.h"
スナイパー技能の実装 / Sniping
- 日付
- 2014/01/18
- 著者
- 2014 Deskull rearranged comment for Doxygen.
◆ MAX_SNIPE_POWERS
#define MAX_SNIPE_POWERS 16 |
◆ snipe_power
◆ boost_concentration_damage()
int boost_concentration_damage |
( |
player_type * |
creature_ptr, |
|
|
int |
tdam |
|
) |
| |
スナイパーの集中度によるダメージボーナスを加算する
- 引数
-
- 戻り値
- 集中度修正を加えたダメージ
◆ cast_sniper_spell()
スナイパー技能の発動 / do_cmd_cast calls this function if the player's class is 'snipe'.
- 引数
-
- 戻り値
- 処理を実行したらTRUE、キャンセルした場合FALSEを返す。
◆ display_snipe_list()
◆ do_cmd_snipe()
スナイパー技能コマンドのメインルーチン /
- 戻り値
- なし
◆ do_cmd_snipe_browse()
◆ get_snipe_power()
スナイパー技能を選択する
- 引数
-
sn | 選択した特殊技能ID、キャンセルの場合-1、不正な選択の場合-2を返す |
only_browse | 一覧を見るだけの場合TRUEを返す |
- 戻り値
- 発動可能な魔法を選択した場合TRUE、キャンセル処理か不正な選択が行われた場合FALSEを返す。 Allow user to choose a mindcrafter power.
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.
◆ reset_concentration()
◆ snipe_concentrate()
◆ tot_dam_aux_snipe()
スナイバー技能のスレイ倍率計算を行う / Calcurate magnification of snipe technics
- 引数
-
mult | スナイバー技能のスレイ効果以前に算出している多要素の倍率(/10倍) |
m_ptr | 目標となるモンスターの構造体参照ポインタ |
- 戻り値
- スレイの倍率(/10倍)
◆ snipe_powers
◆ snipe_tips