OSDN Git Service

[Fix] #39008 Update daily bounty when staying inn at night.
authoriks <iks@users.sourceforge.jp>
Sat, 7 Nov 2020 12:56:21 +0000 (21:56 +0900)
committeriks <iks@users.sourceforge.jp>
Sat, 7 Nov 2020 12:56:21 +0000 (21:56 +0900)
src/cmd-building/cmd-inn.c

index 556aac9..29145a5 100644 (file)
@@ -4,6 +4,7 @@
 #include "game-option/birth-options.h"
 #include "io/write-diary.h"
 #include "market/building-actions-table.h"
+#include "market/bounty.h"
 #include "status/bad-status-setter.h"
 #include "player/digestion-processor.h"
 #include "player/eldritch-horror.h"
@@ -202,8 +203,10 @@ static bool stay_inn(player_type *customer_ptr)
        pass_game_turn_by_stay();
        prevent_turn_overflow(customer_ptr);
 
-       if ((prev_hour >= 18) && (prev_hour <= 23))
+       if ((prev_hour >= 18) && (prev_hour <= 23)) {
+               determine_daily_bounty(customer_ptr, FALSE); /* Update daily bounty */
                exe_write_diary(customer_ptr, DIARY_DIALY, 0, NULL);
+       }
 
        customer_ptr->chp = customer_ptr->mhp;
        if (has_a_nightmare(customer_ptr)) return TRUE;