2 * @brief ドラゴン・スケイルメイルに耐性等の追加効果を付与する処理
7 #include "object-enchant/protector/apply-magic-dragon-armor.h"
8 #include "artifact/random-art-generator.h"
9 #include "object-enchant/protector/abstract-protector-enchanter.h"
10 #include "system/item-entity.h"
11 #include "system/player-type-definition.h"
15 * @param player_ptr プレイヤーへの参照ポインタ
16 * @param o_ptr 強化を与えたいオブジェクトの構造体参照ポインタ
20 DragonArmorEnchanter::DragonArmorEnchanter(PlayerType *player_ptr, ItemEntity *o_ptr, DEPTH level, int power)
21 : AbstractProtectorEnchanter{ o_ptr, level, power }
22 , player_ptr(player_ptr)
27 * @brief power > 2 はデバッグ専用.
29 void DragonArmorEnchanter::apply_magic()
31 if ((this->power > 2) || one_in_(50)) {
32 become_random_artifact(this->player_ptr, this->o_ptr, false);