lore_ptr->misc_flags.set(MonsterMiscType::HAS_FRIENDS);
}
- if (lore_ptr->r_ptr->flags1 & RF1_ESCORT) {
- lore_ptr->flags1 |= (RF1_ESCORT);
+ if (lore_ptr->r_ptr->misc_flags.has(MonsterMiscType::ESCORT)) {
+ lore_ptr->misc_flags.set(MonsterMiscType::ESCORT);
}
if (lore_ptr->r_ptr->flags1 & RF1_ESCORTS) {
(void)place_monster_group(player_ptr, who, y, x, r_idx, mode);
}
- if (!(r_ptr->flags1 & (RF1_ESCORT))) {
+ if (r_ptr->misc_flags.has_not(MonsterMiscType::ESCORT)) {
return true;
}
}
hooked_roff(_("護衛の構成は", "These escorts"));
- if ((lore_ptr->flags1 & RF1_ESCORT) || (lore_ptr->flags1 & RF1_ESCORTS)) {
+ if (lore_ptr->misc_flags.has(MonsterMiscType::ESCORT) || (lore_ptr->flags1 & RF1_ESCORTS)) {
hooked_roff(_("少なくとも", " at the least"));
}
void display_monster_collective(lore_type *lore_ptr)
{
- if ((lore_ptr->flags1 & RF1_ESCORT) || (lore_ptr->flags1 & RF1_ESCORTS) || lore_ptr->reinforce) {
+ if (lore_ptr->misc_flags.has(MonsterMiscType::ESCORT) || (lore_ptr->flags1 & RF1_ESCORTS) || lore_ptr->reinforce) {
hooked_roff(format(_("%s^は通常護衛を伴って現れる。", "%s^ usually appears with escorts. "), Who::who(lore_ptr->msex)));
display_monster_escort_contents(lore_ptr);
} else if (lore_ptr->misc_flags.has(MonsterMiscType::HAS_FRIENDS)) {