待辦事項 #20882

薬の最後の一服が徳・満腹度を増減しない

啟用日期: 2010-02-28 08:10 最後更新: 2020-12-20 22:07

回報者:
(匿名)
負責人:
類型:
狀態:
關閉
元件:
(無)
優先權:
5 - 中
嚴重程度:
5 - 中
處理結果:
修正
檔案:

細節

r2928と同様のことが起きている模様
以下修正パッチ

diff --git a/src/cmd6.c b/src/cmd6.c
index 8ad73b3..f8dd82c 100644
--- a/src/cmd6.c
+++ b/src/cmd6.c
@@ -1440,7 +1440,7 @@ msg_print("
 	/* Combine / Reorder the pack (later) */
 	p_ptr->notice |= (PN_COMBINE | PN_REORDER);
 
-	if (!(object_is_aware(o_ptr)))
+	if (!(object_is_aware(q_ptr)))
 	{
 		chg_virtue(V_PATIENCE, -1);
 		chg_virtue(V_CHANCE, 1);
@@ -1467,7 +1467,7 @@ msg_print("
 		switch (p_ptr->prace)
 		{
 			case RACE_VAMPIRE:
-				(void)set_food(p_ptr->food + (o_ptr->pval / 10));
+				(void)set_food(p_ptr->food + (q_ptr->pval / 10));
 				break;
 			case RACE_SKELETON:
 				/* Do nothing */
@@ -1476,7 +1476,7 @@ msg_print("
 			case RACE_ZOMBIE:
 			case RACE_DEMON:
 			case RACE_SPECTRE:
-				set_food(p_ptr->food + ((o_ptr->pval) / 20));
+				set_food(p_ptr->food + ((q_ptr->pval) / 20));
 				break;
 			case RACE_ANDROID:
 				if (q_ptr->tval == TV_FLASK)
@@ -1490,7 +1490,7 @@ msg_print("
 				}
 				else
 				{
-					set_food(p_ptr->food + ((o_ptr->pval) / 20));
+					set_food(p_ptr->food + ((q_ptr->pval) / 20));
 				}
 				break;
 			case RACE_ENT:
@@ -1499,22 +1499,22 @@ msg_print("
 #else
 				msg_print("You are moistened.");
 #endif
-				set_food(MIN(p_ptr->food + o_ptr->pval + MAX(0, o_ptr->pval * 10) + 2000, PY_FOOD_MAX - 1));
+				set_food(MIN(p_ptr->food + q_ptr->pval + MAX(0, q_ptr->pval * 10) + 2000, PY_FOOD_MAX - 1));
 				break;
 			default:
-				(void)set_food(p_ptr->food + o_ptr->pval);
+				(void)set_food(p_ptr->food + q_ptr->pval);
 				break;
 		}
 		break;
 	case MIMIC_DEMON:
 	case MIMIC_DEMON_LORD:
-		set_food(p_ptr->food + ((o_ptr->pval) / 20));
+		set_food(p_ptr->food + ((q_ptr->pval) / 20));
 		break;
 	case MIMIC_VAMPIRE:
-		(void)set_food(p_ptr->food + (o_ptr->pval / 10));
+		(void)set_food(p_ptr->food + (q_ptr->pval / 10));
 		break;
 	default:
-		(void)set_food(p_ptr->food + o_ptr->pval);
+		(void)set_food(p_ptr->food + q_ptr->pval);
 		break;
 	}
 }

Ticket History (3/4 Histories)

2010-02-28 08:10 Updated by: None
  • New Ticket "薬の最後の一服が徳・満腹度を増減しない" created
2011-03-09 01:15 Updated by: deskull
  • Ticket Close date is changed to 2011-03-09 01:15
  • 處理結果 Update from to 修正
  • 狀態 Update from 開啟 to 關閉
2020-12-20 21:54 Updated by: deskull
2020-12-20 22:07 Updated by: deskull
  • 負責人 Update from (無) to deskull

Attachment File List

No attachments

編輯

Please login to add comment to this ticket » 登入