extern bool panic_hit(void);
extern bool psychometry(void);
extern bool draconian_breath(player_type *creature_ptr);
+extern bool android_inside_weapon(player_type *creature_ptr);
+extern bool create_ration(player_type *crature_ptr);
/* spells3.c */
extern bool teleport_away(MONSTER_IDX m_idx, POSITION dis, BIT_FLAGS mode);
break;
case RACE_HOBBIT:
- {
- object_type *q_ptr;
- object_type forge;
- q_ptr = &forge;
-
- /* Create the food ration */
- object_prep(q_ptr, lookup_kind(TV_FOOD, SV_FOOD_RATION));
-
- /* Drop the object from heaven */
- (void)drop_near(q_ptr, -1, p_ptr->y, p_ptr->x);
- msg_print(_("食事を料理して作った。", "You cook some food."));
- }
+ return create_ration(p_ptr);
break;
case RACE_GNOME:
stop_mouth();
msg_format(_("あなたは%sのブレスを吐いた。", "You breathe %s."), Type_desc);
- fire_breath(Type, creature_ptr->lev, dir, creature_ptr->lev * 2, (creature_ptr->lev / 15) + 1);
+ fire_breath(Type, dir, creature_ptr->lev * 2, (creature_ptr->lev / 15) + 1);
return TRUE;
}
}
return TRUE;
}
+
+bool create_ration(player_type *crature_ptr)
+{
+ object_type *q_ptr;
+ object_type forge;
+ q_ptr = &forge;
+
+ /* Create the food ration */
+ object_prep(q_ptr, lookup_kind(TV_FOOD, SV_FOOD_RATION));
+
+ /* Drop the object from heaven */
+ (void)drop_near(q_ptr, -1, crature_ptr->y, crature_ptr->x);
+ msg_print(_("食事を料理して作った。", "You cook some food."));
+ return TRUE;
+}