OSDN Git Service

[Refactor] #40653 Separated mind-chaos-warrior.c/h from spells-object.c/h
[hengbandforosx/hengbandosx.git] / src / spell / spells-object.h
1 #pragma once
2
3 #include "system/angband.h"
4
5 void amusement(player_type *creature_ptr, POSITION y1, POSITION x1, int num, bool known);
6 void acquirement(player_type *caster_ptr, POSITION y1, POSITION x1, int num, bool great, bool special, bool known);
7 bool curse_armor(player_type *owner_ptr);
8 bool curse_weapon_object(player_type *creature_ptr, bool force, object_type *o_ptr);
9 bool rustproof(player_type *caster_ptr);
10 void brand_bolts(player_type *caster_ptr);
11 bool perilous_secrets(player_type *user_ptr);
12 void phlogiston(player_type *caster_ptr);
13 bool bless_weapon(player_type *caster_ptr);
14 bool pulish_shield(player_type *caster_ptr);
15 bool create_ration(player_type *crature_ptr);
16
17 /*
18  * Bit flags for the "enchant()" function
19  */
20 #define ENCH_TOHIT      0x01 /*!< 装備強化処理: 命中強化 / Enchant to hit */
21 #define ENCH_TODAM      0x02 /*!< 装備強化処理: ダメージ強化 / Enchant to damage */
22 #define ENCH_TOAC       0x04 /*!< 装備強化処理: AC強化 / Enchant to AC */
23 #define ENCH_FORCE      0x08 /*!< 装備強化処理: 無条件に成功させる / Force enchantment */
24 bool enchant(player_type *caster_ptr, object_type *o_ptr, int n, int eflag);
25 bool enchant_spell(player_type *caster_ptr, HIT_PROB num_hit, HIT_POINT num_dam, ARMOUR_CLASS num_ac);
26 void brand_weapon(player_type *caster_ptr, int brand_type);