OSDN Git Service

Merge branch 'master' of git.osdn.net:/gitroot/hengband/hengband
[hengband/hengband.git] / src / specific-object / muramasa.c
1 #include "specific-object/muramasa.h"
2 #include "core/asking-player.h"
3 #include "art-definition/art-sword-types.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(_("\96{\93\96\82É\8eg\82¢\82Ü\82·\82©\81H", "Are you sure?!")))
15         return TRUE;
16
17     msg_print(_("\91º\90³\82ª\90k\82¦\82½\81D\81D\81D", "The Muramasa pulsates..."));
18     do_inc_stat(user_ptr, A_STR);
19     if (one_in_(2)) {
20         msg_print(_("\91º\90³\82Í\89ó\82ê\82½\81I", "The Muramasa is destroyed!"));
21         curse_weapon_object(user_ptr, TRUE, o_ptr);
22     }
23
24     return TRUE;
25 }