OSDN Git Service

百人斬りで最初に35点、さらに斬り続けた回数x8減って、さらに終了後にまた
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 2 May 2002 18:18:35 +0000 (18:18 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 2 May 2002 18:18:35 +0000 (18:18 +0000)
35点減っていたので、最後の35点は減らないようにした。

src/hissatsu.c

index b705f15..023b616 100644 (file)
@@ -1025,6 +1025,7 @@ static bool cast_hissatsu_spell(int spell)
                        project_length = 5;
                        if (!get_aim_dir(&dir)) break;
                        if (new)
+                               /* Reserve needed mana point */
                                p_ptr->csp -= technic_info[TECHNIC_HISSATSU][26].smana;
                        else
                                p_ptr->csp -= 8;
@@ -1036,6 +1037,10 @@ static bool cast_hissatsu_spell(int spell)
                        handle_stuff();
                } while (p_ptr->csp > 8);
                if (new) return FALSE;
+
+               /* Restore reserved mana */
+               p_ptr->csp += technic_info[TECHNIC_HISSATSU][26].smana;
+
                break;
        }
        case 27: