OSDN Git Service

[Refactor] #2124 Changed struct object_type to class ObjectType
[hengbandforosx/hengbandosx.git] / src / mind / mind-hobbit.cpp
1 #include "mind/mind-hobbit.h"
2 #include "floor/floor-object.h"
3 #include "object/object-kind-hook.h"
4 #include "sv-definition/sv-food-types.h"
5 #include "system/object-type-definition.h"
6 #include "system/player-type-definition.h"
7 #include "view/display-messages.h"
8
9 bool create_ration(PlayerType *player_ptr)
10 {
11     ObjectType forge;
12     ObjectType *q_ptr = &forge;
13     q_ptr->prep(lookup_kind(ItemKindType::FOOD, SV_FOOD_RATION));
14     (void)drop_near(player_ptr, q_ptr, -1, player_ptr->y, player_ptr->x);
15     msg_print(_("食事を料理して作った。", "You cook some food."));
16     return true;
17 }