OSDN Git Service
(root)
/
hengband
/
hengband.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Refactor] #37353 グローバル変数 dungeon_type を他の慣例に従い dungeon_idx に改名。 / Rename dungeon_typ...
[hengband/hengband.git]
/
src
/
monster1.c
diff --git
a/src/monster1.c
b/src/monster1.c
index
3dff59a
..
e15f389
100644
(file)
--- a/
src/monster1.c
+++ b/
src/monster1.c
@@
-3000,14
+3000,14
@@
void monster_death(MONSTER_IDX m_idx, bool drop_item)
}
}
}
}
- if ((r_ptr->flags7 & RF7_GUARDIAN) && (d_info[dungeon_
type
].final_guardian == m_ptr->r_idx))
+ if ((r_ptr->flags7 & RF7_GUARDIAN) && (d_info[dungeon_
idx
].final_guardian == m_ptr->r_idx))
{
{
- KIND_OBJECT_IDX k_idx = d_info[dungeon_
type].final_object ? d_info[dungeon_type
].final_object
+ KIND_OBJECT_IDX k_idx = d_info[dungeon_
idx].final_object ? d_info[dungeon_idx
].final_object
: lookup_kind(TV_SCROLL, SV_SCROLL_ACQUIREMENT);
: lookup_kind(TV_SCROLL, SV_SCROLL_ACQUIREMENT);
- if (d_info[dungeon_
type
].final_artifact)
+ if (d_info[dungeon_
idx
].final_artifact)
{
{
- a_idx = d_info[dungeon_
type
].final_artifact;
+ a_idx = d_info[dungeon_
idx
].final_artifact;
artifact_type *a_ptr = &a_info[a_idx];
if (!a_ptr->cur_num)
artifact_type *a_ptr = &a_info[a_idx];
if (!a_ptr->cur_num)
@@
-3023,7
+3023,7
@@
void monster_death(MONSTER_IDX m_idx, bool drop_item)
else if (!preserve_mode) a_ptr->cur_num = 1;
/* Prevent rewarding both artifact and "default" object */
else if (!preserve_mode) a_ptr->cur_num = 1;
/* Prevent rewarding both artifact and "default" object */
- if (!d_info[dungeon_
type
].final_object) k_idx = 0;
+ if (!d_info[dungeon_
idx
].final_object) k_idx = 0;
}
}
}
}
@@
-3037,7
+3037,7
@@
void monster_death(MONSTER_IDX m_idx, bool drop_item)
apply_magic(q_ptr, object_level, AM_NO_FIXED_ART | AM_GOOD);
(void)drop_near(q_ptr, -1, y, x);
}
apply_magic(q_ptr, object_level, AM_NO_FIXED_ART | AM_GOOD);
(void)drop_near(q_ptr, -1, y, x);
}
- msg_format(_("あなたは%sを制覇した!", "You have conquered %s!"), d_name + d_info[dungeon_
type
].name);
+ msg_format(_("あなたは%sを制覇した!", "You have conquered %s!"), d_name + d_info[dungeon_
idx
].name);
}
}
}
}