Hengband  2.2.1
マクロ定義 | 関数 | 変数
bldg.c ファイル

町の施設処理 / Building commands [詳解]

#include "angband.h"
#include "util.h"
#include "term.h"
#include "core.h"
#include "cmd-dump.h"
#include "cmd-magiceat.h"
#include "floor.h"
#include "floor-events.h"
#include "floor-save.h"
#include "autopick.h"
#include "objectkind.h"
#include "object-boost.h"
#include "object-flavor.h"
#include "object-hook.h"
#include "monster.h"
#include "monsterrace-hook.h"
#include "melee.h"
#include "wild.h"
#include "world.h"
#include "sort.h"
#include "avatar.h"
#include "bldg.h"
#include "dungeon.h"
#include "mutation.h"
#include "quest.h"
#include "artifact.h"
#include "cmd-spell.h"
#include "rumor.h"
#include "spells.h"
#include "spells-object.h"
#include "spells-status.h"
#include "realm-hex.h"
#include "dungeon-file.h"
#include "files.h"
#include "player-status.h"
#include "player-effects.h"
#include "player-class.h"
#include "player-personality.h"
#include "player-inventory.h"
#include "scores.h"
#include "shoot.h"
#include "view-mainwindow.h"
#include "monsterrace.h"
bldg.c の依存先関係図:

マクロ定義

#define SUIT_OF(card)   ((card) / 13)
 トランプカードのスートを返す [詳解]
 
#define NUM_OF(card)   ((card) % 13)
 トランプカードの番号を返す [詳解]
 
#define IS_JOKER(card)   ((card) == 52)
 トランプカードがジョーカーかどうかを返す [詳解]
 
#define ODDS_5A   3000
 ファイブエースの役倍率 [詳解]
 
#define ODDS_5C   400
 ファイブカードの役倍率 [詳解]
 
#define ODDS_RF   200
 ロイヤルストレートフラッシュの役倍率 [詳解]
 
#define ODDS_SF   80
 ストレートフラッシュの役倍率 [詳解]
 
#define ODDS_4C   16
 フォアカードの役倍率 [詳解]
 
#define ODDS_FH   12
 フルハウスの役倍率 [詳解]
 
#define ODDS_FL   8
 フラッシュの役倍率 [詳解]
 
#define ODDS_ST   4
 ストレートの役倍率 [詳解]
 
#define ODDS_3C   1
 スリーカードの役倍率 [詳解]
 
#define ODDS_2P   1
 ツーペアの役倍率 [詳解]
 

関数

static bool is_owner (building_type *bldg)
 施設毎に設定された種族、職業、魔法領域フラグがプレイヤーと一致するかを判定する。 [詳解]
 
static bool is_member (building_type *bldg)
 施設毎に設定された種族、職業、魔法領域フラグがプレイヤーと一致するかを判定する。 (スペルマスターの特別判定つき) [詳解]
 
void clear_bldg (int min_row, int max_row)
 コンソールに表示された施設に関する情報を消去する / Clear the building information [詳解]
 
static void building_prt_gold (void)
 所持金を表示する。 [詳解]
 
static void show_building (building_type *bldg)
 施設のサービス一覧を表示する / Display a building. [詳解]
 
static void arena_comm (int cmd)
 闘技場に入るコマンドの処理 / arena commands [詳解]
 
static void display_fruit (int row, int col, int fruit)
 カジノのスロットシンボルを表示する / display fruit for dice slots [詳解]
 
static void reset_deck (int deck[])
 ポーカーの山札を切る。 [詳解]
 
static bool have_joker (void)
 ポーカープレイ中にジョーカーを持っているかの判定を返す。 [詳解]
 
static bool find_card_num (int num)
 ポーカーの手札に該当の番号の札があるかを返す。 [詳解]
 
static bool yaku_check_flush (void)
 ポーカーの手札がフラッシュ役を得ているかを帰す。 [詳解]
 
static int yaku_check_straight (void)
 ポーカーの手札がストレートを含んだ高位の役を得ているかを帰す。 [詳解]
 
static int yaku_check_pair (void)
 ポーカーのペア役の状態を返す。 [詳解]
 
static int yaku_check (void)
 ポーカーの役をチェックし、その結果を画面に表示しつつ結果を返す。 [詳解]
 
static void display_kaeruka (int hoge, int kaeruka[])
 ポーカーの捨てる/残すインターフェイスの表示を更新する。 [詳解]
 
static void display_cards (void)
 ポーカーの手札を表示する。 [詳解]
 
static int do_poker (void)
 ポーカーの1プレイルーチン。 [詳解]
 
static bool gamble_comm (int cmd)
 カジノ1プレイごとのメインルーチン / gamble_comm [詳解]
 
void update_gambling_monsters (void)
 モンスター闘技場に参加するモンスターを更新する。 [詳解]
 
static bool kakutoujou (void)
 モンスター闘技場のメインルーチン [詳解]
 
static void today_target (void)
 本日の賞金首情報を表示する。 [詳解]
 
static void tsuchinoko (void)
 ツチノコの賞金首情報を表示する。 [詳解]
 
static void shoukinkubi (void)
 通常の賞金首情報を表示する。 [詳解]
 
static bool kankin (void)
 賞金首の引き換え処理 / Get prize [詳解]
 
static bool inn_comm (int cmd)
 宿屋の利用サブルーチン [詳解]
 
static void get_questinfo (IDX questnum, bool do_init)
 クエスト情報を表示しつつ処理する。/ Display quest information [詳解]
 
static void castle_quest (void)
 クエスト処理のメインルーチン / Request a quest from the Lord. [詳解]
 
static void town_history (void)
 町に関するヘルプを表示する / Display town history [詳解]
 
static HIT_POINT calc_slaydam (HIT_POINT dam, int mult, int div, bool force)
 攻撃時スレイによるダメージ期待値修正計算 / critical happens at i / 10000 [詳解]
 
static u32b calc_expect_dice (u32b dam, int mult, int div, bool force, WEIGHT weight, int plus, s16b meichuu, bool dokubari, int vorpal_mult, int vorpal_div)
 攻撃時の期待値計算(スレイ→重量クリティカル→切れ味効果) [詳解]
 
static void show_weapon_dmg (int r, int c, int mindice, int maxdice, int blows, int dam_bonus, concptr attr, byte color)
 武器の各条件毎のダメージ期待値を表示する。 [詳解]
 
static void compare_weapon_aux (object_type *o_ptr, int col, int r)
 武器一つ毎のダメージ情報を表示する。 [詳解]
 
static void list_weapon (object_type *o_ptr, TERM_LEN row, TERM_LEN col)
 武器匠における武器一つ毎の完全情報を表示する。 [詳解]
 
static PRICE compare_weapons (PRICE bcost)
 武器匠鑑定1回分(オブジェクト2種)の処理。/ Compare weapons [詳解]
 
static bool eval_ac (ARMOUR_CLASS iAC)
 ACから回避率、ダメージ減少率を計算し表示する。 / Evaluate AC [詳解]
 
static void give_one_ability_of_object (object_type *to_ptr, object_type *from_ptr)
 修復材料のオブジェクトから修復対象に特性を移植する。 [詳解]
 
static PRICE repair_broken_weapon_aux (PRICE bcost)
 アイテム修復処理のメインルーチン / Repair broken weapon [詳解]
 
static int repair_broken_weapon (PRICE bcost)
 アイテム修復処理の過渡ルーチン / Repair broken weapon [詳解]
 
static bool enchant_item (PRICE cost, HIT_PROB to_hit, HIT_POINT to_dam, ARMOUR_CLASS to_ac)
 アイテムの強化を行う。 / Enchant item [詳解]
 
static void building_recharge (void)
 魔道具の使用回数を回復させる施設のメインルーチン / Recharge rods, wands and staves [詳解]
 
static void building_recharge_all (void)
 魔道具の使用回数を回復させる施設の一括処理向けサブルーチン / Recharge rods, wands and staves [詳解]
 
static bool research_mon (void)
 施設でモンスターの情報を知るメインルーチン / research_mon -KMW- [詳解]
 
static void bldg_process_command (building_type *bldg, int i)
 施設の処理実行メインルーチン / Execute a building command [詳解]
 
void do_cmd_bldg (void)
 施設入り口にプレイヤーが乗った際の処理 / Do building commands [詳解]
 
void determine_today_mon (bool conv_old)
 今日の賞金首を確定する / Determine today's bounty monster [詳解]
 
void determine_bounty_uniques (void)
 賞金首となるユニークを確定する / Determine bounty uniques [詳解]
 

変数

building_type building [MAX_BLDG]
 
MONRACE_IDX battle_mon [4]
 
u32b mon_odds [4]
 
int battle_odds
 
PRICE kakekin
 
int sel_monster
 
bool reinit_wilderness = FALSE
 
MONSTER_IDX today_mon
 
const arena_type arena_info [MAX_ARENA_MONS+2]
 闘技場のモンスターID及び報酬アイテムテーブル [詳解]
 
static int cards [5]
 ポーカーの現在の手札ID [詳解]
 
struct {
   OBJECT_TYPE_VALUE   tval
 ベースアイテムのメイン種別ID [詳解]
 
   OBJECT_SUBTYPE_VALUE   sval
 ベースアイテムのサブ種別ID [詳解]
 
prize_list [MAX_KUBI]
 賞金首の報酬テーブル / List of prize object [詳解]
 

詳解

町の施設処理 / Building commands

日付
2013/12/23
著者
Created by Ken Wigle for Kangband - a variant of Angband 2.8.3
-KMW-

Rewritten for Kangband 2.8.3i using Kamband's version of
bldg.c as written by Ivan Tkatchev

Changed for ZAngband by Robert Ruehlmann

マクロ定義詳解

◆ IS_JOKER

#define IS_JOKER (   card)    ((card) == 52)

トランプカードがジョーカーかどうかを返す

◆ NUM_OF

#define NUM_OF (   card)    ((card) % 13)

トランプカードの番号を返す

◆ ODDS_2P

#define ODDS_2P   1

ツーペアの役倍率

◆ ODDS_3C

#define ODDS_3C   1

スリーカードの役倍率

◆ ODDS_4C

#define ODDS_4C   16

フォアカードの役倍率

◆ ODDS_5A

#define ODDS_5A   3000

ファイブエースの役倍率

◆ ODDS_5C

#define ODDS_5C   400

ファイブカードの役倍率

◆ ODDS_FH

#define ODDS_FH   12

フルハウスの役倍率

◆ ODDS_FL

#define ODDS_FL   8

フラッシュの役倍率

◆ ODDS_RF

#define ODDS_RF   200

ロイヤルストレートフラッシュの役倍率

◆ ODDS_SF

#define ODDS_SF   80

ストレートフラッシュの役倍率

◆ ODDS_ST

#define ODDS_ST   4

ストレートの役倍率

◆ SUIT_OF

#define SUIT_OF (   card)    ((card) / 13)

トランプカードのスートを返す

覚え書き
kpoker no (tyuto-hannpa na)pakuri desu... joker ha shineru node haitte masen.

TODO: donataka! tsukutte!

  • agatta yaku no kiroku (like DQ).
  • kakkoii card no e.
  • sousa-sei no koujyo.
  • code wo wakariyasuku.
  • double up.
  • Joker... – done.

9/13/2000 –Koka 9/15/2000 joker wo jissou. soreto, code wo sukosi kakikae. –Habu

関数詳解

◆ arena_comm()

static void arena_comm ( int  cmd)
static

闘技場に入るコマンドの処理 / arena commands

引数
cmd闘技場処理のID
戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ bldg_process_command()

static void bldg_process_command ( building_type bldg,
int  i 
)
static

施設の処理実行メインルーチン / Execute a building command

引数
bldg施設構造体の参照ポインタ
i実行したい施設のサービステーブルの添字
戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ building_prt_gold()

static void building_prt_gold ( void  )
static

所持金を表示する。

戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ building_recharge()

static void building_recharge ( void  )
static

魔道具の使用回数を回復させる施設のメインルーチン / Recharge rods, wands and staves

The player can select the number of charges to add
(up to a limit), and the recharge never fails.

The cost for rods depends on the level of the rod. The prices
for recharging wands and staves are dependent on the cost of
the base-item.

戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ building_recharge_all()

static void building_recharge_all ( void  )
static

魔道具の使用回数を回復させる施設の一括処理向けサブルーチン / Recharge rods, wands and staves

The player can select the number of charges to add
(up to a limit), and the recharge never fails.

The cost for rods depends on the level of the rod. The prices
for recharging wands and staves are dependent on the cost of
the base-item.

戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ calc_expect_dice()

static u32b calc_expect_dice ( u32b  dam,
int  mult,
int  div,
bool  force,
WEIGHT  weight,
int  plus,
s16b  meichuu,
bool  dokubari,
int  vorpal_mult,
int  vorpal_div 
)
static

攻撃時の期待値計算(スレイ→重量クリティカル→切れ味効果)

引数
dam基本ダメージ
multスレイ倍率(掛け算部分)
divスレイ倍率(割り算部分)
force理力特別計算フラグ
weight重量
plus武器ダメージ修正
meichuu命中値
dokubari毒針処理か否か
vorpal_mult切れ味倍率(掛け算部分)
vorpal_div切れ味倍率(割り算部分)
戻り値
ダメージ期待値
呼び出し関係図:
被呼び出し関係図:

◆ calc_slaydam()

static HIT_POINT calc_slaydam ( HIT_POINT  dam,
int  mult,
int  div,
bool  force 
)
static

攻撃時スレイによるダメージ期待値修正計算 / critical happens at i / 10000

引数
dam基本ダメージ
multスレイ倍率(掛け算部分)
divスレイ倍率(割り算部分)
force理力特別計算フラグ
戻り値
ダメージ期待値
被呼び出し関係図:

◆ castle_quest()

static void castle_quest ( void  )
static

クエスト処理のメインルーチン / Request a quest from the Lord.

戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ clear_bldg()

void clear_bldg ( int  min_row,
int  max_row 
)

コンソールに表示された施設に関する情報を消去する / Clear the building information

消去は行毎にヌル文字列で行われる。

引数
min_row開始行番号
max_row末尾行番号
戻り値
なし
呼び出し関係図:

◆ compare_weapon_aux()

static void compare_weapon_aux ( object_type o_ptr,
int  col,
int  r 
)
static

武器一つ毎のダメージ情報を表示する。

引数
o_ptrオブジェクトの構造体の参照ポインタ。
col表示する行の上端
r表示する列の左端

Show the damage figures for the various monster types

Only accurate for the current weapon, because it includes
the current number of blows for the player.

戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ compare_weapons()

static PRICE compare_weapons ( PRICE  bcost)
static

武器匠鑑定1回分(オブジェクト2種)の処理。/ Compare weapons

Copies the weapons to compare into the weapon-slot and
compares the values for both weapons.
武器1つだけで比較をしないなら費用は半額になる。

引数
bcost基本鑑定費用
戻り値
最終的にかかった費用
呼び出し関係図:
被呼び出し関係図:

◆ determine_bounty_uniques()

void determine_bounty_uniques ( void  )

賞金首となるユニークを確定する / Determine bounty uniques

戻り値
なし

◆ determine_today_mon()

void determine_today_mon ( bool  conv_old)

今日の賞金首を確定する / Determine today's bounty monster

戻り値
なし
覚え書き
conv_old is used if loaded 0.0.3 or older save file

◆ display_cards()

static void display_cards ( void  )
static

ポーカーの手札を表示する。

戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ display_fruit()

static void display_fruit ( int  row,
int  col,
int  fruit 
)
static

カジノのスロットシンボルを表示する / display fruit for dice slots

引数
rowシンボルを表示する行の上端
colシンボルを表示する行の左端
fruit表示するシンボルID
戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ display_kaeruka()

static void display_kaeruka ( int  hoge,
int  kaeruka[] 
)
static

ポーカーの捨てる/残すインターフェイスの表示を更新する。

引数
hogeカーソルの現在位置
kaerukaカードの捨てる/残すフラグ配列
戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ do_cmd_bldg()

void do_cmd_bldg ( void  )

施設入り口にプレイヤーが乗った際の処理 / Do building commands

戻り値
なし
呼び出し関係図:

◆ do_poker()

static int do_poker ( void  )
static

ポーカーの1プレイルーチン。

戻り値
1プレイの役の結果
呼び出し関係図:
被呼び出し関係図:

◆ enchant_item()

static bool enchant_item ( PRICE  cost,
HIT_PROB  to_hit,
HIT_POINT  to_dam,
ARMOUR_CLASS  to_ac 
)
static

アイテムの強化を行う。 / Enchant item

引数
cost1回毎の費用
to_hit命中をアップさせる量
to_damダメージをアップさせる量
to_acACをアップさせる量
戻り値
実際に行ったらTRUE
呼び出し関係図:
被呼び出し関係図:

◆ eval_ac()

static bool eval_ac ( ARMOUR_CLASS  iAC)
static

ACから回避率、ダメージ減少率を計算し表示する。 / Evaluate AC

Calculate and display the dodge-rate and the protection-rate based on AC

引数
iACプレイヤーのAC。
戻り値
常にTRUEを返す。
呼び出し関係図:
被呼び出し関係図:

◆ find_card_num()

static bool find_card_num ( int  num)
static

ポーカーの手札に該当の番号の札があるかを返す。

引数
num探したいカードの番号。
戻り値
該当の番号が手札にあるか。
被呼び出し関係図:

◆ gamble_comm()

static bool gamble_comm ( int  cmd)
static

カジノ1プレイごとのメインルーチン / gamble_comm

引数
cmdプレイするゲームID
戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ get_questinfo()

static void get_questinfo ( IDX  questnum,
bool  do_init 
)
static

クエスト情報を表示しつつ処理する。/ Display quest information

引数
questnumクエストのID
do_initクエストの開始処理(TRUE)、結果処理か(FALSE)
戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ give_one_ability_of_object()

static void give_one_ability_of_object ( object_type to_ptr,
object_type from_ptr 
)
static

修復材料のオブジェクトから修復対象に特性を移植する。

引数
to_ptr修復対象オブジェクトの構造体の参照ポインタ。
from_ptr修復材料オブジェクトの構造体の参照ポインタ。
戻り値
修復対象になるならTRUEを返す。
呼び出し関係図:
被呼び出し関係図:

◆ have_joker()

static bool have_joker ( void  )
static

ポーカープレイ中にジョーカーを持っているかの判定を返す。

戻り値
ジョーカーを持っているか。
被呼び出し関係図:

◆ inn_comm()

static bool inn_comm ( int  cmd)
static

宿屋の利用サブルーチン

inn commands
Note that resting for the night was a perfect way to avoid player
ghosts in the town if you could only make it to the inn in time (-:
Now that the ghosts are temporarily disabled in 2.8.X, this function
will not be that useful. I will keep it in the hopes the player
ghost code does become a reality again. Does help to avoid filthy urchins.
Resting at night is also a quick way to restock stores -KMW-

引数
cmd宿屋の利用施設ID
戻り値
施設の利用が実際に行われたか否か。
呼び出し関係図:
被呼び出し関係図:

◆ is_member()

static bool is_member ( building_type bldg)
static

施設毎に設定された種族、職業、魔法領域フラグがプレイヤーと一致するかを判定する。 (スペルマスターの特別判定つき)

各種ギルドや寺院など、特定の職業ならば優遇措置を得られる施設、 あるいは食堂など特定の種族では利用できない施設の判定処理を行う。

引数
bldg施設構造体の参照ポインタ
戻り値
種族、職業、魔法領域のいずれかが一致しているかの是非。
todo:
is_owner()との実質的な多重実装なので、リファクタリングを行うべきである。
被呼び出し関係図:

◆ is_owner()

static bool is_owner ( building_type bldg)
static

施設毎に設定された種族、職業、魔法領域フラグがプレイヤーと一致するかを判定する。

各種ギルドや寺院など、特定の職業ならば優遇措置を得られる施設、 あるいは食堂など特定の種族では利用できない施設の判定処理を行う。

引数
bldg施設構造体の参照ポインタ
戻り値
種族、職業、魔法領域のいずれかが一致しているかの是非。
被呼び出し関係図:

◆ kakutoujou()

static bool kakutoujou ( void  )
static

モンスター闘技場のメインルーチン

戻り値
賭けを開始したか否か
呼び出し関係図:
被呼び出し関係図:

◆ kankin()

static bool kankin ( void  )
static

賞金首の引き換え処理 / Get prize

戻り値
各種賞金首のいずれかでも換金が行われたか否か。
呼び出し関係図:
被呼び出し関係図:

◆ list_weapon()

static void list_weapon ( object_type o_ptr,
TERM_LEN  row,
TERM_LEN  col 
)
static

武器匠における武器一つ毎の完全情報を表示する。

引数
o_ptrオブジェクトの構造体の参照ポインタ。
row表示する列の左端
col表示する行の上端

Displays all info about a weapon

Only accurate for the current weapon, because it includes various info about the player's +to_dam and number of blows.

戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ repair_broken_weapon()

static int repair_broken_weapon ( PRICE  bcost)
static

アイテム修復処理の過渡ルーチン / Repair broken weapon

引数
bcost基本鑑定費用
戻り値
実際にかかった費用
呼び出し関係図:
被呼び出し関係図:

◆ repair_broken_weapon_aux()

static PRICE repair_broken_weapon_aux ( PRICE  bcost)
static

アイテム修復処理のメインルーチン / Repair broken weapon

引数
bcost基本修復費用
戻り値
実際にかかった費用
呼び出し関係図:
被呼び出し関係図:

◆ research_mon()

static bool research_mon ( void  )
static

施設でモンスターの情報を知るメインルーチン / research_mon -KMW-

戻り値
常にTRUEを返す。
todo:
返り値が意味不明なので直した方が良いかもしれない。
呼び出し関係図:
被呼び出し関係図:

◆ reset_deck()

static void reset_deck ( int  deck[])
static

ポーカーの山札を切る。

引数
deckデッキの配列
戻り値
なし
被呼び出し関係図:

◆ shoukinkubi()

static void shoukinkubi ( void  )
static

通常の賞金首情報を表示する。

戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ show_building()

static void show_building ( building_type bldg)
static

施設のサービス一覧を表示する / Display a building.

引数
bldg施設構造体の参照ポインタ
戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ show_weapon_dmg()

static void show_weapon_dmg ( int  r,
int  c,
int  mindice,
int  maxdice,
int  blows,
int  dam_bonus,
concptr  attr,
byte  color 
)
static

武器の各条件毎のダメージ期待値を表示する。

引数
r表示行
c表示列
mindiceダイス部分最小値
maxdiceダイス部分最大値
blows攻撃回数
dam_bonusダメージ修正値
attr条件内容
color条件内容の表示色

Display the damage figure of an object
(used by compare_weapon_aux)

Only accurate for the current weapon, because it includes
the current +dam of the player.

戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ today_target()

static void today_target ( void  )
static

本日の賞金首情報を表示する。

戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ town_history()

static void town_history ( void  )
static

町に関するヘルプを表示する / Display town history

戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ tsuchinoko()

static void tsuchinoko ( void  )
static

ツチノコの賞金首情報を表示する。

戻り値
なし
呼び出し関係図:
被呼び出し関係図:

◆ update_gambling_monsters()

void update_gambling_monsters ( void  )

モンスター闘技場に参加するモンスターを更新する。

戻り値
なし
呼び出し関係図:

◆ yaku_check()

static int yaku_check ( void  )
static

ポーカーの役をチェックし、その結果を画面に表示しつつ結果を返す。

戻り値
役のID
呼び出し関係図:
被呼び出し関係図:

◆ yaku_check_flush()

static bool yaku_check_flush ( void  )
static

ポーカーの手札がフラッシュ役を得ているかを帰す。

戻り値
役の判定結果
呼び出し関係図:
被呼び出し関係図:

◆ yaku_check_pair()

static int yaku_check_pair ( void  )
static

ポーカーのペア役の状態を返す。

戻り値
0:nopair 1:1 pair 2:2 pair 3:3 cards 4:full house 6:4cards
呼び出し関係図:
被呼び出し関係図:

◆ yaku_check_straight()

static int yaku_check_straight ( void  )
static

ポーカーの手札がストレートを含んだ高位の役を得ているかを帰す。

戻り値
役の判定結果 0…ストレート、フラッシュいずれもなし/1…ストレートのみ/2…ストレートフラッシュ/3…ロイヤルストレートフラッシュ
呼び出し関係図:
被呼び出し関係図:

変数詳解

◆ arena_info

const arena_type arena_info[MAX_ARENA_MONS+2]

闘技場のモンスターID及び報酬アイテムテーブル

◆ battle_mon

MONRACE_IDX battle_mon[4]

◆ battle_odds

int battle_odds

◆ building

◆ cards

int cards[5]
static

ポーカーの現在の手札ID

◆ kakekin

PRICE kakekin

◆ mon_odds

u32b mon_odds[4]

◆ prize_list

struct { ... } prize_list[MAX_KUBI]
初期値:
=
{
}
#define SV_POTION_RESTORE_MANA
Definition: object.h:1070
#define SV_POTION_INVULNERABILITY
Definition: object.h:1092
#define TV_SCROLL
Definition: object.h:246
#define SV_POTION_HEALING
Definition: object.h:1067
#define SV_SCROLL_SUMMON_PET
Definition: object.h:977
#define SV_POTION_SPEED
Definition: object.h:1059
#define SV_SCROLL_MASS_GENOCIDE
Definition: object.h:1016
#define TV_POTION
Definition: object.h:247
#define SV_POTION_STAR_HEALING
Definition: object.h:1068
#define SV_POTION_RESISTANCE
Definition: object.h:1090
#define SV_POTION_LIFE
Definition: object.h:1069
#define SV_POTION_NEW_LIFE
Definition: object.h:1093
#define SV_POTION_ENLIGHTENMENT
Definition: object.h:1086
#define SV_SCROLL_GENOCIDE
Definition: object.h:1015
#define SV_POTION_STAR_ENLIGHTENMENT
Definition: object.h:1087
#define SV_SCROLL_ARTIFACT
Definition: object.h:1023
#define SV_POTION_AUGMENTATION
Definition: object.h:1085
#define SV_POTION_CURING
Definition: object.h:1091
#define SV_SCROLL_STAR_DESTRUCTION
Definition: object.h:1012

賞金首の報酬テーブル / List of prize object

◆ reinit_wilderness

bool reinit_wilderness = FALSE

◆ sel_monster

int sel_monster

◆ sval

ベースアイテムのサブ種別ID

◆ today_mon

MONSTER_IDX today_mon

◆ tval

ベースアイテムのメイン種別ID