* The "known" should be TRUE for cast/pray, FALSE for study
* </pre>
*/
-static int get_spell(COMMAND_CODE *sn, cptr prompt, OBJECT_SUBTYPE_VALUE sval, bool learned, REALM_IDX use_realm)
+static int get_spell(SPELL_IDX *sn, cptr prompt, OBJECT_SUBTYPE_VALUE sval, bool learned, REALM_IDX use_realm)
{
int i;
SPELL_IDX spell = -1;
const magic_type *s_ptr;
char out_val[160];
cptr p;
+ COMMAND_CODE code;
#ifdef JP
char jverb_buf[128];
#endif
#ifdef ALLOW_REPEAT /* TNB */
/* Get the spell, if available */
- if (repeat_pull(sn))
+ if (repeat_pull(&code))
{
+ *sn = (SPELL_IDX)code;
/* Verify the spell */
if (spell_okay(*sn, learned, FALSE, use_realm))
{
#ifdef ALLOW_REPEAT /* TNB */
- repeat_push(*sn);
+ repeat_push((COMMAND_CODE)spell);
#endif /* ALLOW_REPEAT -- TNB */
*/
static void confirm_use_force(bool browse_only)
{
- SPELL_IDX item;
char which;
+ COMMAND_CODE code;
#ifdef ALLOW_REPEAT
/* Get the item index */
- if (repeat_pull(&item) && (item == INVEN_FORCE))
+ if (repeat_pull(&code) && (code == INVEN_FORCE))
{
browse_only ? do_cmd_mind_browse() : do_cmd_mind();
return;
REALM_IDX use_realm = 0;
int j, line;
SPELL_IDX spell = -1;
- int num = 0;
+ int num = 0;
- int spells[64];
- char temp[62*4];
+ SPELL_IDX spells[64];
+ char temp[62*4];
object_type *o_ptr;
REALM_IDX realm;
int chance;
int increment = 0;
- int use_realm;
- int need_mana;
+ REALM_IDX use_realm;
+ MANA_POINT need_mana;
cptr prayer;
-
object_type *o_ptr;
-
const magic_type *s_ptr;
-
cptr q, s;
bool over_exerted = FALSE;
MONSTER_IDX *who;
u16b dummy_why;
int max_pet = 0;
- int cu, cv;
+ bool_hack cu, cv;
cu = Term->scr->cu;
cv = Term->scr->cv;
* @param force TRUEならば強制的に落馬する
* @return 実際に落馬したらTRUEを返す
*/
-bool rakuba(int dam, bool force)
+bool rakuba(HIT_POINT dam, bool force)
{
int i, y, x, oy, ox;
int sn = 0, sy = 0, sx = 0;
*/
void do_cmd_pet(void)
{
- SPELL_IDX i = 0;
+ COMMAND_CODE i = 0;
int num;
int powers[36];
cptr power_desc[36];
int pet_ctr;
monster_type *m_ptr;
- int mode = 0;
+ PET_COMMAND_IDX mode = 0;
char buf[160];
char target_buf[160];
if (!redraw || use_menu)
{
byte y = 1, x = 0;
- int ctr = 0;
+ PET_COMMAND_IDX ctr = 0;
/* Show list */
redraw = TRUE;