Curation round 20: player update, costumes and render, Missing No., the last actives and cards, familiars, Pin, the Frail, Wormwood and the Heretic, Dross to Gehenna, effects and the devil room purchase, champion colours, the quit path, save fields, shared vector helpers
This commit is contained in:
1 parent
ee863e70e6
commit
8dbeb1bc4a
168 files changed
+15682
-2399
No files matched your search
@@ -45,7 +45,6 @@ constexpr float PLAYER_CLEARANCE = 50;
|
||||
constexpr float REACH = 21;
|
||||
constexpr float MOTHER_HOLE_REACH = 34;
|
||||
constexpr float FORGOTTEN_BODY_RADIUS = 20;
|
||||
constexpr int SOUND_SHOVEL_HOLE_OPEN = 917;
|
||||
|
||||
constexpr int VOID_SHOCKWAVE_FRAMES = 15;
|
||||
constexpr float VOID_SHOCKWAVE_AMPLITUDE = 0.05f;
|
||||
@@ -122,28 +121,8 @@ void GridEntity_TrapDoor::subclass_init()
|
||||
sprite.Play(ANIM_CLOSED);
|
||||
}
|
||||
|
||||
// (00703ab0) Game::GetNearestPlayerEx for the main players only: the nearest player itself (not a co-op ghost, baby,
|
||||
// twin's hold or hologram) that collides with entities.
|
||||
static Entity_Player* main_player_nearest(const Vector& position)
|
||||
{
|
||||
Entity_Player* nearest = nullptr;
|
||||
float best = 1e10f;
|
||||
|
||||
for (Entity_Player* player : g_game->playerManager.playerList)
|
||||
{
|
||||
float distance = vector_length_squared(vector_sub(position, player->pos));
|
||||
if (distance >= best) continue;
|
||||
if (player->variant != 0 || player->isCoopGhost || player->parent || player->IsHologram()) continue;
|
||||
if (player->entityCollisionClass == ENTCOLL_NONE) continue;
|
||||
|
||||
nearest = player;
|
||||
best = distance;
|
||||
}
|
||||
return nearest;
|
||||
}
|
||||
|
||||
// Whether The Forgotten's body lies on the trapdoor (EntityList::QueryRadius over the familiars).
|
||||
static bool is_forgotten_body_on(const Vector& position)
|
||||
bool is_forgotten_body_on(const Vector& position)
|
||||
{
|
||||
EntityList& list = g_game->room->entityList;
|
||||
EntityList_EL found;
|
||||
|
||||
Reference in new issue
Block a user