mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-04-28 12:47:58 +03:00
creature: move Creature_IsAlly to trx
This commit is contained in:
parent
c324d486d3
commit
2cd7f04a1e
4 changed files with 6 additions and 11 deletions
|
@ -1100,6 +1100,11 @@ bool Creature_IsHostile(const ITEM *const item)
|
|||
|| (Creature_AreAlliesHostile() && Creature_IsAlly(item));
|
||||
}
|
||||
|
||||
bool Creature_IsAlly(const ITEM *const item)
|
||||
{
|
||||
return Object_IsType(item->object_id, g_AllyObjects);
|
||||
}
|
||||
|
||||
int16_t Creature_Effect(
|
||||
const ITEM *const item, const BITE *const bite,
|
||||
int16_t (*const spawn)(
|
||||
|
|
|
@ -32,7 +32,7 @@ int32_t Creature_Vault(
|
|||
bool Creature_AreAlliesHostile(void);
|
||||
void Creature_SetAlliesHostile(bool enable);
|
||||
bool Creature_IsHostile(const ITEM *item);
|
||||
extern bool Creature_IsAlly(const ITEM *item);
|
||||
bool Creature_IsAlly(const ITEM *item);
|
||||
|
||||
int16_t Creature_Effect(
|
||||
const ITEM *item, const BITE *bite,
|
||||
|
|
|
@ -55,8 +55,3 @@ bool Creature_IsBoss(const int16_t item_num)
|
|||
const ITEM *const item = Item_Get(item_num);
|
||||
return Object_IsType(item->object_id, g_BossObjects);
|
||||
}
|
||||
|
||||
bool Creature_IsAlly(const ITEM *const item)
|
||||
{
|
||||
return Object_IsType(item->object_id, g_AllyObjects);
|
||||
}
|
||||
|
|
|
@ -24,11 +24,6 @@
|
|||
#define M_SHOOT_TARGETING_SPEED 300
|
||||
#define M_SHOOT_HIT_CHANCE 0x2000
|
||||
|
||||
bool Creature_IsAlly(const ITEM *const item)
|
||||
{
|
||||
return Object_IsType(item->object_id, g_AllyObjects);
|
||||
}
|
||||
|
||||
int32_t Creature_ShootAtLara(
|
||||
ITEM *const item, const AI_INFO *const info, const BITE *const gun,
|
||||
const int16_t extra_rotation, const int32_t damage)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue