OSDN Git Service

Merge remote-tracking branch 'remotes/hengbandosx/english-mspell-edits' into feature...
[hengband/hengband.git] / src / specific-object / muramasa.c
1 #include "specific-object/muramasa.h"
2 #include "artifact/fixed-art-types.h"
3 #include "core/asking-player.h"
4 #include "spell/spells-object.h"
5 #include "status/base-status.h"
6 #include "system/object-type-definition.h"
7 #include "view/display-messages.h"
8
9 bool activate_muramasa(player_type *user_ptr, object_type *o_ptr)
10 {
11     if (o_ptr->name1 != ART_MURAMASA)
12         return FALSE;
13
14     if (!get_check(_("本当に使いますか?", "Are you sure?!")))
15         return TRUE;
16
17     msg_print(_("村正が震えた...", "The Muramasa pulsates..."));
18     do_inc_stat(user_ptr, A_STR);
19     if (one_in_(2)) {
20         msg_print(_("村正は壊れた!", "The Muramasa is destroyed!"));
21         curse_weapon_object(user_ptr, TRUE, o_ptr);
22     }
23
24     return TRUE;
25 }