OSDN Git Service

91d383aa8549802bff97f7e69284ea6e41af3bcd
[hengbandforosx/hengbandosx.git] / src / spell / spells-object.h
1 #pragma once
2
3 #include "system/angband.h"
4
5 class ObjectType;
6 class PlayerType;
7 void amusement(PlayerType *player_ptr, POSITION y1, POSITION x1, int num, bool known);
8 void acquirement(PlayerType *player_ptr, POSITION y1, POSITION x1, int num, bool great, bool special, bool known);
9 bool curse_armor(PlayerType *player_ptr);
10 bool curse_weapon_object(PlayerType *player_ptr, bool force, ObjectType *o_ptr);
11 void brand_bolts(PlayerType *player_ptr);
12
13 /*
14  * Bit flags for the "enchant()" function
15  */
16 #define ENCH_TOHIT      0x01 /*!< 装備強化処理: 命中強化 / Enchant to hit */
17 #define ENCH_TODAM      0x02 /*!< 装備強化処理: ダメージ強化 / Enchant to damage */
18 #define ENCH_TOAC       0x04 /*!< 装備強化処理: AC強化 / Enchant to AC */
19 #define ENCH_FORCE      0x08 /*!< 装備強化処理: 無条件に成功させる / Force enchantment */
20 bool enchant_equipment(PlayerType *player_ptr, ObjectType *o_ptr, int n, int eflag);
21 bool enchant_spell(PlayerType *player_ptr, HIT_PROB num_hit, HIT_POINT num_dam, ARMOUR_CLASS num_ac);
22 void brand_weapon(PlayerType *player_ptr, int brand_type);