Ticket #20040

ブラックマーケットの過剰充填魔法棒

Eröffnet am: 2009-12-28 17:06 Letztes Update: 2020-12-20 21:17

Auswertung:
(Anonym)
Verantwortlicher:
Typ:
Status:
Geschlossen
Komponente:
(Keine)
Priorität:
3
Schweregrad:
5 - Mittel
Lösung:
Gefixt
Datei:
Keine

Details

ブラックマーケットで、割引された魔法棒が過剰に充填されたることがある
過去にも掲示板等で報告されているので仕様かもしれないが、確認が取れないので報告させていただきます
以下修正パッチ

  1. diff --git a/src/store.c b/src/store.c
  2. index bd0187b..eb8ba0d 100644
  3. --- a/src/store.c
  4. +++ b/src/store.c
  5. @@ -1058,12 +1058,6 @@ static void mass_produce(object_type *o_ptr)
  6. if (cost < 1601L) size += damroll(1, 5);
  7. else if (cost < 3201L) size += damroll(1, 3);
  8. }
  9. -
  10. - /* Ensure that mass-produced rods and wands get the correct pvals. */
  11. - if ((o_ptr->tval == TV_ROD) || (o_ptr->tval == TV_WAND))
  12. - {
  13. - o_ptr->pval *= size;
  14. - }
  15. break;
  16. }
  17. }
  18. @@ -1111,6 +1105,12 @@ msg_print("
  19. /* Save the total pile size */
  20. o_ptr->number = size - (size * discount / 100);
  21. +
  22. + /* Ensure that mass-produced rods and wands get the correct pvals. */
  23. + if ((o_ptr->tval == TV_ROD) || (o_ptr->tval == TV_WAND))
  24. + {
  25. + o_ptr->pval *= o_ptr->number;
  26. + }
  27. }

Ticket-Verlauf (3/4 Historien)

2009-12-28 17:06 Aktualisiert von: None
  • New Ticket "ブラックマーケットの過剰充填魔法棒" created
2010-01-05 17:06 Aktualisiert von: habu
  • Verantwortlicher Update from (Keine) to habu
2010-01-05 17:06 Aktualisiert von: habu
  • Ticket Close date is changed to 2010-01-05 17:06
  • Status Update from Offen to Geschlossen
Kommentar

r3064にて修正。

2020-12-20 21:17 Aktualisiert von: deskull

Dateianhangliste

Keine Anhänge

Bearbeiten

Please login to add comment to this ticket » Anmelden