• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Révisionee2d61e2b52b0e3384363ffac9c175e5c1b85368 (tree)
l'heure2019-03-30 18:42:01
Auteurdeskull <deskull@user...>
Commiterdeskull

Message de Log

[Refactor] #37353 MD_WRONGDOER_NAME を定義.

Change Summary

Modification

--- a/src/defines.h
+++ b/src/defines.h
@@ -1947,6 +1947,7 @@
19471947 #define MD_TRUE_NAME 0x00000100 /* Chameleon's true name */
19481948 #define MD_IGNORE_HALLU 0x00000200 /* Ignore hallucination, and penetrate shape change */
19491949
1950+#define MD_WRONGDOER_NAME (MD_IGNORE_HALLU | MD_ASSUME_VISIBLE | MD_INDEF_VISIBLE) /* 加害明記向け */
19501951
19511952 /*
19521953 * Bit flags for object_desc()
--- a/src/melee1.c
+++ b/src/melee1.c
@@ -636,11 +636,8 @@ static void touch_zap_player_aux(monster_type *m_ptr, bool immune, int flags_off
636636 GAME_TEXT mon_name[MAX_NLEN];
637637 int aura_damage = damroll(1 + (r_ptr->level / 26), 1 + (r_ptr->level / 17));
638638
639- /* Hack -- Get the "died from" name */
640- monster_desc(mon_name, m_ptr, MD_IGNORE_HALLU | MD_ASSUME_VISIBLE | MD_INDEF_VISIBLE);
641-
639+ monster_desc(mon_name, m_ptr, MD_WRONGDOER_NAME);
642640 msg_print(message);
643-
644641 dam_func(aura_damage, mon_name, -1, TRUE);
645642
646643 if (is_original_ap_and_seen(m_ptr))
@@ -1925,12 +1922,10 @@ bool make_attack_normal(MONSTER_IDX m_idx)
19251922 /* Extract the effective monster level */
19261923 rlev = ((r_ptr->level >= 1) ? r_ptr->level : 1);
19271924
1928-
19291925 /* Get the monster name (or "it") */
19301926 monster_desc(m_name, m_ptr, 0);
19311927
1932- /* Get the "died from" information (i.e. "a kobold") */
1933- monster_desc(ddesc, m_ptr, MD_IGNORE_HALLU | MD_ASSUME_VISIBLE | MD_INDEF_VISIBLE);
1928+ monster_desc(ddesc, m_ptr, MD_WRONGDOER_NAME);
19341929
19351930 if (p_ptr->special_defense & KATA_IAI)
19361931 {
--- a/src/monster1.c
+++ b/src/monster1.c
@@ -2622,8 +2622,7 @@ void monster_death(MONSTER_IDX m_idx, bool drop_item)
26222622 {
26232623 GAME_TEXT m_name[MAX_NLEN];
26242624
2625- /* Extract monster name */
2626- monster_desc(m_name, m_ptr, MD_IGNORE_HALLU | MD_ASSUME_VISIBLE | MD_INDEF_VISIBLE);
2625+ monster_desc(m_name, m_ptr, MD_WRONGDOER_NAME);
26272626
26282627 do_cmd_write_nikki(NIKKI_ARENA, p_ptr->arena_number, m_name);
26292628 }
--- a/src/spells1.c
+++ b/src/spells1.c
@@ -1593,7 +1593,7 @@ static bool project_m(MONSTER_IDX who, POSITION r, POSITION y, POSITION x, HIT_P
15931593 else
15941594 {
15951595 /* Injure +/- confusion */
1596- monster_desc(killer, m_ptr, MD_IGNORE_HALLU | MD_ASSUME_VISIBLE | MD_INDEF_VISIBLE);
1596+ monster_desc(killer, m_ptr, MD_WRONGDOER_NAME);
15971597 take_hit(DAMAGE_ATTACK, dam, killer, -1); /* has already been /3 */
15981598 if (one_in_(4) && !CHECK_MULTISHADOW())
15991599 {
@@ -1683,7 +1683,7 @@ static bool project_m(MONSTER_IDX who, POSITION r, POSITION y, POSITION x, HIT_P
16831683 else
16841684 {
16851685 /* Injure + mana drain */
1686- monster_desc(killer, m_ptr, MD_IGNORE_HALLU | MD_ASSUME_VISIBLE | MD_INDEF_VISIBLE);
1686+ monster_desc(killer, m_ptr, MD_WRONGDOER_NAME);
16871687 if (!CHECK_MULTISHADOW())
16881688 {
16891689 msg_print(_("超能力パワーを吸いとられた!", "Your psychic energy is drained!"));
@@ -5499,7 +5499,7 @@ bool project(MONSTER_IDX who, POSITION rad, POSITION y, POSITION x, HIT_POINT da
54995499 {
55005500 x1 = current_floor_ptr->m_list[who].fx;
55015501 y1 = current_floor_ptr->m_list[who].fy;
5502- monster_desc(who_name, &current_floor_ptr->m_list[who], MD_IGNORE_HALLU | MD_ASSUME_VISIBLE | MD_INDEF_VISIBLE);
5502+ monster_desc(who_name, &current_floor_ptr->m_list[who], MD_WRONGDOER_NAME);
55035503 }
55045504
55055505 else
--- a/src/spells2.c
+++ b/src/spells2.c
@@ -1811,10 +1811,7 @@ bool earthquake_aux(POSITION cy, POSITION cx, POSITION r, MONSTER_IDX m_idx)
18111811 {
18121812 GAME_TEXT m_name[MAX_NLEN];
18131813 monster_type *m_ptr = &current_floor_ptr->m_list[m_idx];
1814-
1815- /* Get the monster's real name */
1816- monster_desc(m_name, m_ptr, MD_IGNORE_HALLU | MD_ASSUME_VISIBLE | MD_INDEF_VISIBLE);
1817-
1814+ monster_desc(m_name, m_ptr, MD_WRONGDOER_NAME);
18181815 killer = format(_("%sの起こした地震", "an earthquake caused by %s"), m_name);
18191816 }
18201817 else