Hengband  2.2.1
関数
object-curse.c ファイル
#include "angband.h"
#include "util.h"
#include "object-flavor.h"
#include "object-hook.h"
object-curse.c の依存先関係図:

関数

BIT_FLAGS get_curse (int power, object_type *o_ptr)
 アイテムに付加される可能性のある呪いを指定する。 [詳解]
 
void curse_equipment (PERCENTAGE chance, PERCENTAGE heavy_chance)
 装備への呪い付加判定と付加処理 [詳解]
 

関数詳解

◆ curse_equipment()

void curse_equipment ( PERCENTAGE  chance,
PERCENTAGE  heavy_chance 
)

装備への呪い付加判定と付加処理

引数
chance呪いの基本確率
heavy_chanceさらに重い呪いとなる確率
戻り値
なし
呼び出し関係図:

◆ get_curse()

BIT_FLAGS get_curse ( int  power,
object_type o_ptr 
)

アイテムに付加される可能性のある呪いを指定する。

引数
power呪いの段階
o_ptr呪いをかけられる装備オブジェクトの構造体参照ポインタ
戻り値
与える呪いのID
呼び出し関係図: