return result;
}
-void have_esp_nonliving(player_type *creature_ptr)
+BIT_FLAGS have_esp_nonliving(player_type *creature_ptr)
{
- object_type *o_ptr;
- BIT_FLAGS flgs[TR_FLAG_SIZE];
-
- creature_ptr->esp_nonliving = FALSE;
-
- for (inventory_slot_type i = INVEN_RARM; i < INVEN_TOTAL; i++) {
- o_ptr = &creature_ptr->inventory_list[i];
- if (!o_ptr->k_idx)
- continue;
-
- object_flags(creature_ptr, o_ptr, flgs);
-
- if (have_flag(flgs, TR_ESP_NONLIVING))
- creature_ptr->esp_nonliving = TRUE;
- }
+ BIT_FLAGS result = 0L;
+ result |= check_equipment_flags(creature_ptr, TR_ESP_GOOD);
+ return result;
}
void have_esp_unique(player_type *creature_ptr)
BIT_FLAGS have_esp_dragon(player_type *creature_ptr);
BIT_FLAGS have_esp_human(player_type *creature_ptr);
BIT_FLAGS have_esp_good(player_type *creature_ptr);
-void have_esp_nonliving(player_type *creature_ptr);
+BIT_FLAGS have_esp_nonliving(player_type *creature_ptr);
void have_esp_unique(player_type *creature_ptr);
void have_esp_telepathy(player_type *creature_ptr);
void have_bless_blade(player_type *creature_ptr);
BIT_FLAGS old_esp_human = creature_ptr->esp_human;
BIT_FLAGS old_esp_evil = creature_ptr->esp_evil;
BIT_FLAGS old_esp_good = creature_ptr->esp_good;
- bool old_esp_nonliving = creature_ptr->esp_nonliving;
+ BIT_FLAGS old_esp_nonliving = creature_ptr->esp_nonliving;
bool old_esp_unique = creature_ptr->esp_unique;
bool old_see_inv = creature_ptr->see_inv;
bool old_mighty_throw = creature_ptr->mighty_throw;
creature_ptr->esp_dragon = have_esp_dragon(creature_ptr);
creature_ptr->esp_human = have_esp_human(creature_ptr);
creature_ptr->esp_good = have_esp_good(creature_ptr);
- have_esp_nonliving(creature_ptr);
+ creature_ptr->esp_nonliving = have_esp_nonliving(creature_ptr);
have_esp_unique(creature_ptr);
have_esp_telepathy(creature_ptr);
have_bless_blade(creature_ptr);
BIT_FLAGS esp_human;
BIT_FLAGS esp_evil;
BIT_FLAGS esp_good;
- bool esp_nonliving;
+ BIT_FLAGS esp_nonliving;
bool esp_unique;
bool slow_digest; /* Slower digestion */