* when you run it. It's probably easy to fix but I haven't tried,\n
* sorry.\n
*/
-static int get_hissatsu_power(int *sn)
+static int get_hissatsu_power(SPELL_IDX *sn)
{
- int i, j = 0;
+ SPELL_IDX i;
+ int j = 0;
int num = 0;
int y = 1;
int x = 15;
int ask = TRUE;
char choice;
char out_val[160];
- char sentaku[32];
+ SPELL_IDX sentaku[32];
cptr p = _("必殺剣", "special attack");
magic_type spell;
ask = (isupper(choice));
/* Lowercase */
- if (ask) choice = tolower(choice);
+ if (ask) choice = (char)tolower(choice);
/* Extract request */
i = (islower(choice) ? A2I(choice) : -1);
*/
void do_cmd_hissatsu(void)
{
- int n = 0;
+ SPELL_IDX n = 0;
magic_type spell;
if (!do_spell(REALM_HISSATSU, n, SPELL_CAST)) return;
/* Take a turn */
- energy_use = 100;
+ p_ptr->energy_use = 100;
/* Use some mana */
p_ptr->csp -= spell.smana;
/* Take a turn */
else
- energy_use = 100;
+ p_ptr->energy_use = 100;
p_ptr->update |= (PU_SPELLS);
}