1 #include "spell-realm/spells-trump.h"
2 #include "floor/floor.h"
3 #include "io/targeting.h"
4 #include "monster-floor/monster-summon.h"
5 #include "monster-floor/place-monster-types.h"
6 #include "mutation/mutation.h"
7 #include "player/avatar.h"
8 #include "player/player-effects.h"
9 #include "spell-kind/earthquake.h"
10 #include "spell-kind/spells-charm.h"
11 #include "spell-kind/spells-floor.h"
12 #include "spell-kind/spells-lite.h"
13 #include "spell-kind/spells-neighbor.h"
14 #include "spell-kind/spells-random.h"
15 #include "spell-kind/spells-sight.h"
16 #include "spell-kind/spells-teleport.h"
17 #include "spell/spells-status.h"
18 #include "spell/spells-summon.h"
21 * @brief トランプ領域の「シャッフル」の効果をランダムに決めて処理する。
22 * @param caster_ptr プレーヤーへの参照ポインタ
25 void cast_shuffle(player_type *caster_ptr)
27 PLAYER_LEVEL plev = caster_ptr->lev;
30 int vir = virtue_number(caster_ptr, V_CHANCE);
33 if ((caster_ptr->pclass == CLASS_ROGUE) || (caster_ptr->pclass == CLASS_HIGH_MAGE) || (caster_ptr->pclass == CLASS_SORCERER))
34 die = (randint1(110)) + plev / 5;
39 if (caster_ptr->virtues[vir - 1] > 0) {
40 while (randint1(400) < caster_ptr->virtues[vir - 1])
43 while (randint1(400) < (0 - caster_ptr->virtues[vir - 1]))
48 msg_print(_("あなたはカードを切って一枚引いた...", "You shuffle the deck and draw a card..."));
51 chg_virtue(caster_ptr, V_CHANCE, 1);
54 floor_type *floor_ptr = caster_ptr->current_floor_ptr;
56 msg_print(_("なんてこった!《死》だ!", "Oh no! It's Death!"));
58 for (i = 0; i < randint1(3); i++) {
59 activate_hi_summon(caster_ptr, caster_ptr->y, caster_ptr->x, FALSE);
66 msg_print(_("なんてこった!《悪魔》だ!", "Oh no! It's the Devil!"));
67 summon_specific(caster_ptr, 0, caster_ptr->y, caster_ptr->x, floor_ptr->dun_level, SUMMON_DEMON, (PM_ALLOW_GROUP | PM_ALLOW_UNIQUE | PM_NO_PET));
73 msg_print(_("なんてこった!《吊られた男》だ!", "Oh no! It's the Hanged Man."));
74 activate_ty_curse(caster_ptr, FALSE, &count);
79 msg_print(_("《不調和の剣》だ。", "It's the swords of discord."));
80 aggravate_monsters(caster_ptr, 0);
85 msg_print(_("《愚者》だ。", "It's the Fool."));
86 do_dec_stat(caster_ptr, A_INT);
87 do_dec_stat(caster_ptr, A_WIS);
92 msg_print(_("奇妙なモンスターの絵だ。", "It's the picture of a strange monster."));
94 caster_ptr, 1, FALSE, caster_ptr->y, caster_ptr->x, (floor_ptr->dun_level * 3 / 2), (32 + randint1(6)), PM_ALLOW_GROUP | PM_ALLOW_UNIQUE);
99 msg_print(_("《月》だ。", "It's the Moon."));
100 unlite_area(caster_ptr, 10, 3);
105 msg_print(_("《運命の輪》だ。", "It's the Wheel of Fortune."));
106 wild_magic(caster_ptr, randint0(32));
111 msg_print(_("テレポート・カードだ。", "It's a teleport trump card."));
112 teleport_player(caster_ptr, 10, TELEPORT_PASSIVE);
117 msg_print(_("《正義》だ。", "It's Justice."));
118 set_blessed(caster_ptr, caster_ptr->lev, FALSE);
123 msg_print(_("テレポート・カードだ。", "It's a teleport trump card."));
124 teleport_player(caster_ptr, 100, TELEPORT_PASSIVE);
129 msg_print(_("テレポート・カードだ。", "It's a teleport trump card."));
130 teleport_player(caster_ptr, 200, TELEPORT_PASSIVE);
135 msg_print(_("《塔》だ。", "It's the Tower."));
136 wall_breaker(caster_ptr);
141 msg_print(_("《節制》だ。", "It's Temperance."));
142 sleep_monsters_touch(caster_ptr);
147 msg_print(_("《塔》だ。", "It's the Tower."));
148 earthquake(caster_ptr, caster_ptr->y, caster_ptr->x, 5, 0);
153 msg_print(_("友好的なモンスターの絵だ。", "It's the picture of a friendly monster."));
154 trump_summoning(caster_ptr, 1, TRUE, caster_ptr->y, caster_ptr->x, (floor_ptr->dun_level * 3 / 2), SUMMON_MOLD, 0L);
159 msg_print(_("友好的なモンスターの絵だ。", "It's the picture of a friendly monster."));
160 trump_summoning(caster_ptr, 1, TRUE, caster_ptr->y, caster_ptr->x, (floor_ptr->dun_level * 3 / 2), SUMMON_BAT, 0L);
165 msg_print(_("友好的なモンスターの絵だ。", "It's the picture of a friendly monster."));
166 trump_summoning(caster_ptr, 1, TRUE, caster_ptr->y, caster_ptr->x, (floor_ptr->dun_level * 3 / 2), SUMMON_VORTEX, 0L);
171 msg_print(_("友好的なモンスターの絵だ。", "It's the picture of a friendly monster."));
172 trump_summoning(caster_ptr, 1, TRUE, caster_ptr->y, caster_ptr->x, (floor_ptr->dun_level * 3 / 2), SUMMON_COIN_MIMIC, 0L);
177 msg_print(_("《恋人》だ。", "It's the Lovers."));
179 if (get_aim_dir(caster_ptr, &dir)) {
180 charm_monster(caster_ptr, dir, MIN(caster_ptr->lev, 20));
187 msg_print(_("《隠者》だ。", "It's the Hermit."));
188 wall_stone(caster_ptr);
193 msg_print(_("《審判》だ。", "It's the Judgement."));
194 roll_hitdice(caster_ptr, 0L);
195 lose_all_mutations(caster_ptr);
200 msg_print(_("《太陽》だ。", "It's the Sun."));
201 chg_virtue(caster_ptr, V_KNOWLEDGE, 1);
202 chg_virtue(caster_ptr, V_ENLIGHTEN, 1);
203 wiz_lite(caster_ptr, FALSE);
207 msg_print(_("《世界》だ。", "It's the World."));
208 if (caster_ptr->exp >= PY_MAX_EXP) {
212 s32b ee = (caster_ptr->exp / 25) + 1;
215 msg_print(_("更に経験を積んだような気がする。", "You feel more experienced."));
216 gain_exp(caster_ptr, ee);