#include "angband.h"
#include "util.h"
-#include "term.h"
+#include "gameterm.h"
#include "object-flavor.h"
#include "object-hook.h"
#include "player-status.h"
#include "cmd-basic.h"
#include "cmd-smith.h"
-#include "objectkind.h"
-#include "autopick.h"
+#include "object/object-kind.h"
+#include "autopick/autopick.h"
#include "view-mainwindow.h"
#include "player-inventory.h"
static void drain_essence(player_type *creature_ptr)
{
int drain_value[sizeof(creature_ptr->magic_num1) / sizeof(s32b)];
- int i;
+ size_t i;
OBJECT_IDX item;
int dec = 4;
bool observe = FALSE;
object_type *o_ptr;
concptr q, s;
POSITION iy, ix;
- byte_hack marked;
+ byte marked;
ITEM_NUMBER number;
OBJECT_IDX next_o_idx;
WEIGHT weight;
o_ptr->number = number;
if (o_ptr->tval == TV_DRAG_ARMOR) o_ptr->timeout = old_timeout;
if (item >= 0) creature_ptr->total_weight += (o_ptr->weight*o_ptr->number - weight * number);
- o_ptr->ident |= (IDENT_MENTAL);
+ o_ptr->ident |= (IDENT_FULL_KNOWN);
object_aware(creature_ptr, o_ptr);
object_known(o_ptr);
if ((mode != 10) && (object_is_artifact(o_ptr) || object_is_smith(o_ptr)))
{
- msg_print(_("そのアイテムはこれ以上改良できない。", "This item is no more able to be improved."));
+ msg_print(_("そのアイテムはこれ以上改良できない。", "This item can not be improved any further."));
return;
}
}
take_turn(creature_ptr, 100);
-
-#ifdef JP
- msg_format("%sに%sの能力を付加しました。", o_name, es_ptr->add_name);
-#else
- msg_format("You have added ability of %s to %s.", es_ptr->add_name, o_name);
-#endif
+ _(msg_format("%sに%sの能力を付加しました。", o_name, es_ptr->add_name),
+ msg_format("You have added ability of %s to %s.", es_ptr->add_name, o_name));
creature_ptr->update |= (PU_COMBINE | PU_REORDER);
creature_ptr->window |= (PW_INVEN);
}