From 61660345f132aecabfad7c09365e4b83ee4daae4 Mon Sep 17 00:00:00 2001 From: Habu Date: Fri, 27 Nov 2020 00:15:02 +0900 Subject: [PATCH] =?utf8?q?[fix]=20=E3=83=A2=E3=83=B3=E3=82=B9=E3=82=BF?= =?utf8?q?=E3=83=BC=E5=8F=AC=E5=96=9A=E6=95=B0=E3=81=AE=E6=B1=BA=E5=AE=9A?= =?utf8?q?=E6=96=B9=E6=B3=95=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit カオスパトロンの報酬でモンスターの召喚が発生した時、 ループの毎に召喚されるモンスターの数を乱数で決定していた。 意図した処理ではないと思われるので、最初に1度だけ乱数で 召喚されるモンスターの数を決定する。 --- src/player/patron.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/player/patron.c b/src/player/patron.c index 13d2b15b9..53298625a 100644 --- a/src/player/patron.c +++ b/src/player/patron.c @@ -291,7 +291,7 @@ void gain_level_reward(player_type *creature_ptr, int chosen_reward) msg_format(_("%sの声が響き渡った:", "The voice of %s booms out:"), chaos_patrons[creature_ptr->chaos_patron]); msg_print(_("「我が下僕たちよ、かの傲慢なる者を倒すべし!」", "'My pets, destroy the arrogant mortal!'")); - for (dummy = 0; dummy < randint1(5) + 1; dummy++) { + for (int i = 0, summon_num = randint1(5) + 1; i < summon_num; i++) { (void)summon_specific(creature_ptr, 0, creature_ptr->y, creature_ptr->x, creature_ptr->current_floor_ptr->dun_level, 0, (PM_ALLOW_GROUP | PM_ALLOW_UNIQUE | PM_NO_PET)); } -- 2.11.0