Hengband  2.1.4
 全て データ構造 ファイル 関数 変数 型定義 マクロ定義 ページ
関数 | 変数
melee1.c

モンスターの打撃処理 / Monster attacks [詳細]

#include "angband.h"
melee1.cのインクルード依存関係図

関数

static int monster_critical (int dice, int sides, int dam)
 モンスター打撃のクリティカルランクを返す / Critical blow. [詳細]
 
static int check_hit (int power, int level, int stun)
 モンスター打撃の命中を判定する / Determine if a monster attack against the player succeeds. [詳細]
 
bool make_attack_normal (int m_idx)
 モンスターからプレイヤーへの打撃処理 / Attack the player via physical attacks. [詳細]
 

変数

static cptr desc_insult []
 モンスターの侮辱行為メッセージテーブル / Hack – possible "insult" messages [詳細]
 
static cptr desc_moan []
 マゴットのぼやきメッセージテーブル / Hack – possible "insult" messages [詳細]
 

説明

モンスターの打撃処理 / Monster attacks

日付
2014/01/17
作者
Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke
This software may be copied and distributed for educational, research,
and not for profit purposes provided that this copyright and statement
are included in all such copies. Other copyrights may also apply.
2014 Deskull rearranged comment for Doxygen.

関数

static int check_hit ( int  power,
int  level,
int  stun 
)
static

モンスター打撃の命中を判定する / Determine if a monster attack against the player succeeds.

引数
power打撃属性毎の基本命中値
levelモンスターのレベル
stunモンスターの朦朧値
戻り値
TRUEならば命中判定

Always miss 5% of the time, Always hit 5% of the time. Otherwise, match monster power against player armor.

呼出しグラフ:

bool make_attack_normal ( int  m_idx)

モンスターからプレイヤーへの打撃処理 / Attack the player via physical attacks.

引数
m_idx打撃を行うモンスターのID
戻り値
実際に攻撃処理を行った場合TRUEを返す

呼出しグラフ:

static int monster_critical ( int  dice,
int  sides,
int  dam 
)
static

モンスター打撃のクリティカルランクを返す / Critical blow.

All hits that do 95% of total possible damage,

引数
diceモンスター打撃のダイス数
sidesモンスター打撃の最大ダイス目
damプレイヤーに与えたダメージ

and which also do at least 20 damage, or, sometimes, N damage. This is used only to determine "cuts" and "stuns".

呼出しグラフ:

変数

cptr desc_insult[]
static
初期値:
=
{
"insults you!",
"insults your mother!",
"gives you the finger!",
"humiliates you!",
"defiles you!",
"dances around you!",
"makes obscene gestures!",
"moons you!!!"
"calls you a parasite!",
"calls you a cyborg!"
}

モンスターの侮辱行為メッセージテーブル / Hack – possible "insult" messages

cptr desc_moan[]
static
初期値:
=
{
"seems sad about something.",
"asks if you have seen his dogs.",
"tells you to get off his land.",
"mumbles something about mushrooms."
}

マゴットのぼやきメッセージテーブル / Hack – possible "insult" messages