From 0589cbc21ddc2cd11be871e9377e255c5082f034 Mon Sep 17 00:00:00 2001 From: Habu Date: Wed, 15 Sep 2021 20:41:02 +0900 Subject: [PATCH] =?utf8?q?[Fix]=20=E7=9F=A2=E5=BC=BE=E3=81=AB=E5=8A=B9?= =?utf8?q?=E6=9E=9C=E3=81=AE=E7=84=A1=E3=81=84=E3=82=A8=E3=83=83=E3=82=BB?= =?utf8?q?=E3=83=B3=E3=82=B9=E3=81=8C=E4=BB=98=E4=B8=8E=E3=81=A7=E3=81=8D?= =?utf8?q?=E3=81=A6=E3=81=97=E3=81=BE=E3=81=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 以前からのおかしな仕様として、矢弾の類に無効な武器属性(追加攻撃や カオス攻撃など)を付けることができてしまう。 付けても特に効果は無いので通常プレイわざわざ付ける事はないが、不親切 なので武器属性付与では効果のあるもの(四属性と毒攻撃)以外では矢弾が 付与の候補に選ばれないようにする。 --- src/object-enchant/smith-info.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/object-enchant/smith-info.cpp b/src/object-enchant/smith-info.cpp index 385697bfc..3a7a25d2e 100644 --- a/src/object-enchant/smith-info.cpp +++ b/src/object-enchant/smith-info.cpp @@ -76,6 +76,9 @@ bool BasicSmithInfo::can_give_smith_effect_impl(const object_type *o_ptr) const if (this->effect == SmithEffect::EASY_2WEAPON) { return (o_ptr->tval == TV_GLOVES); } + if (this->category == SmithCategory::WEAPON_ATTR && o_ptr->is_ammo()) { + return this->add_flags.has_any_of({ TR_BRAND_ACID, TR_BRAND_ELEC, TR_BRAND_FIRE, TR_BRAND_COLD, TR_BRAND_POIS }); + } if (this->category == SmithCategory::WEAPON_ATTR || this->category == SmithCategory::SLAYING) { return o_ptr->is_melee_ammo(); } -- 2.11.0