return TRUE;
}
+
/*!
* @brief 魔道具術師の魔力取り込み処理
* @param user_ptr アイテムを取り込むクリーチャー
return TRUE;
}
+
/*!
* @brief 誰得ドロップを行う。
* @param y1 配置したいフロアのY座標
}
-
/*!
* @brief 獲得ドロップを行う。
* Scatter some "great" objects near the player
}
}
+
void acquire_chaos_weapon(player_type *creature_ptr)
{
object_type forge;
return (TRUE);
}
+
/*!
* @brief 武器呪縛処理 /
* Curse the players weapon
return (TRUE);
}
+
/*!
* @brief 武器呪縛処理のメインルーチン /
* Curse the players weapon
return TRUE;
}
+
/*!
* @brief ボルトのエゴ化処理(火炎エゴのみ) /
* Enchant some bolts
- * @return 常にTRUEを返す
+ * @param caster_ptr プレーヤーへの参照ポインタ
+ * @return なし
*/
-bool brand_bolts(void)
+void brand_bolts(player_type *caster_ptr)
{
- int i;
-
/* Use the first acceptable bolts */
- for (i = 0; i < INVEN_PACK; i++)
+ for (int i = 0; i < INVEN_PACK; i++)
{
- object_type *o_ptr = &p_ptr->inventory_list[i];
+ object_type *o_ptr = &caster_ptr->inventory_list[i];
/* Skip non-bolts */
if (o_ptr->tval != TV_BOLT) continue;
/* Ego-item */
o_ptr->name2 = EGO_FLAME;
enchant(o_ptr, randint0(3) + 4, ENCH_TOHIT | ENCH_TODAM);
- return (TRUE);
+ return;
}
if (flush_failure) flush();
-
- /* Fail */
msg_print(_("炎で強化するのに失敗した。", "The fiery enchantment failed."));
-
- return (TRUE);
}
}
+
/*!
* @brief 固定アーティファクト『ブラッディムーン』の特性を変更する。
* @details スレイ2d2種、及びone_resistance()による耐性1d2種、pval2種を得る。
}
}
+
/*!
* @brief 寿命つき光源の燃素追加処理 /
* Charge a lite (torch or latern)
caster_ptr->update |= (PU_TORCH);
}
+
/*!
* @brief 武器の祝福処理 /
* Bless a weapon
return FALSE;
}
+
/*!
* @brief 呪いの打ち破り処理 /
* Break the curse of an item
}
}
+
/*!
* @brief 装備修正強化処理 /
* Enchants a plus onto an item. -RAK-
}
-
/*!
* @brief 武器へのエゴ付加処理 /
* Brand the current weapon
msg_print(_("属性付加に失敗した。", "The Branding failed."));
chg_virtue(caster_ptr, V_ENCHANT, -2);
}
+
calc_android_exp(caster_ptr);
}
extern bool curse_weapon_object(player_type *creature_ptr, bool force, object_type *o_ptr);
extern bool curse_weapon(bool force, int slot);
extern bool rustproof(player_type *caster_ptr);
-extern bool brand_bolts(void);
+extern void brand_bolts(player_type *caster_ptr);
extern bool perilous_secrets(player_type *user_ptr);
extern void get_bloody_moon_flags(object_type *o_ptr);
extern void phlogiston(player_type *caster_ptr);