From 191e6cbe1b298e3da11d61ba7ffd79dc4b7c66e8 Mon Sep 17 00:00:00 2001 From: Hourier <66951241+Hourier@users.noreply.github.com> Date: Sat, 27 Apr 2024 15:04:38 +0900 Subject: [PATCH] =?utf8?q?[Refactor]=20#3932=20potion=5Fsmash=5Feffect()?= =?utf8?q?=20=E3=81=AE=E5=A4=89=E6=95=B0=E3=82=92=E5=9E=8B=E6=8E=A8?= =?utf8?q?=E8=AB=96=E3=81=AB=E5=A4=89=E3=81=88=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/object/object-broken.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/object/object-broken.cpp b/src/object/object-broken.cpp index b4b5609ad..e713b58cb 100644 --- a/src/object/object-broken.cpp +++ b/src/object/object-broken.cpp @@ -203,10 +203,10 @@ bool ObjectBreaker::can_destroy(ItemEntity *o_ptr) const */ bool potion_smash_effect(PlayerType *player_ptr, MONSTER_IDX src_idx, POSITION y, POSITION x, short bi_id) { - int radius = 2; - AttributeType dt = AttributeType::NONE; - int dam = 0; - bool angry = false; + auto radius = 2; + auto dt = AttributeType::NONE; + auto dam = 0; + auto angry = false; const auto &baseitem = baseitems_info[bi_id]; switch (*baseitem.bi_key.sval()) { case SV_POTION_SALT_WATER: -- 2.11.0