Curation round 16: Mom's Knife and the bone club, sin minibosses and death rewards, slots and beggars, NPC rendering and twelve bosses, alt path visuals, the Forgotten's flight and tainted HUDs, Sheol and the Cathedral to the credits, familiars and transformations
This commit is contained in:
1 parent
76c594f9a0
commit
e9de039d0f
151 files changed
+14996
-5208
No files matched your search
+16
-11
@@ -3,6 +3,7 @@
|
||||
#include "entity_effect.h"
|
||||
#include "entity_familiar.h"
|
||||
#include "entity_npc.h"
|
||||
#include "entity_slot.h"
|
||||
#include "game.h"
|
||||
#include "log.h"
|
||||
#include "lua_engine.h"
|
||||
@@ -32,8 +33,6 @@ constexpr float GREED_START_SPOT_Y = 280;
|
||||
constexpr float BACKASSWARDS_START_OFFSET_Y = 100;
|
||||
constexpr int BETHANY_START_CHARGE = 4;
|
||||
constexpr int MAGDALENE_B_START_RED_HEARTS = 4;
|
||||
constexpr int PLAYERFORM_BOOK_WORM = 10;
|
||||
constexpr int PLAYERFORM_NECROMANCER = 15;
|
||||
constexpr float EDEN_SPEED_SPREAD = 0.3f;
|
||||
constexpr float EDEN_FIRE_DELAY_SPREAD = 1.5f;
|
||||
constexpr float EDEN_RANGE_SPREAD = 120;
|
||||
@@ -110,12 +109,6 @@ static int card_roll(uint32_t seed, int runeChance, bool isPlaying)
|
||||
return lua_engine_get().GetCard({.rng = &rng, .card = card, .isPlaying = isPlaying, .isRunes = isPlaying});
|
||||
}
|
||||
|
||||
// Room methods the room's takeover has not declared yet.
|
||||
static Vector room_random_pickup_position()
|
||||
{
|
||||
reconstruction_missing("Room::get_random_pickup_position 00813460");
|
||||
}
|
||||
|
||||
// A generator with a seed and the shift triple at an index of RNG's table.
|
||||
RNG rng_make(uint32_t seed, uint32_t shiftIndex)
|
||||
{
|
||||
@@ -616,7 +609,7 @@ void Entity_Player::InitPreLevelInitStats()
|
||||
}
|
||||
break;
|
||||
case PLAYER_BETHANY:
|
||||
if (HasCollectible(COLLECTIBLE_BOOK_OF_VIRTUES)) IncrementPlayerFormCounter(PLAYERFORM_BOOK_WORM, 1);
|
||||
if (HasCollectible(COLLECTIBLE_BOOK_OF_VIRTUES)) IncrementPlayerFormCounter(PLAYER_FORM_BOOKWORM, 1);
|
||||
break;
|
||||
case PLAYER_BETHANY_B:
|
||||
AddBloodCharge(redHearts);
|
||||
@@ -1103,7 +1096,7 @@ void Entity_Player::floor_items_recharge()
|
||||
}
|
||||
else if (active.item == COLLECTIBLE_ERASER) AddActiveCharge(1, slot, false, false, true);
|
||||
}
|
||||
if (!hasCurseMistEffect && !isCoopGhost && playerForms[PLAYERFORM_NECROMANCER] > 2)
|
||||
if (!hasCurseMistEffect && !isCoopGhost && playerForms[PLAYER_FORM_NECROMANCER] > 2)
|
||||
reconstruction_missing("Entity_Player::level_start 007a4ba0 (the Necronomicon transformation)");
|
||||
for (int i = HasTrinket(TRINKET_BETHS_FAITH) ? GetTrinketMultiplier(TRINKET_BETHS_FAITH) * 4 : 0; i > 0; i--)
|
||||
AddWisp(COLLECTIBLE_BOOK_OF_VIRTUES, pos, false, false);
|
||||
@@ -1125,7 +1118,7 @@ void Entity_Player::stem_cell_heal()
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
uint32_t seed = Random();
|
||||
g_game->Spawn({.position = room_random_pickup_position(),
|
||||
g_game->Spawn({.position = room_pickup_position_random(false, false),
|
||||
.type = ENTITY_PICKUP,
|
||||
.variant = PICKUP_HEART,
|
||||
.seed = seed});
|
||||
@@ -1422,6 +1415,18 @@ void Entity_Player::ClearReferences()
|
||||
release_weapons_and_effects(false);
|
||||
}
|
||||
|
||||
// 0065cf60 Whether the player is a co-op baby still blinking in after joining.
|
||||
bool Entity_Player::IsP2Appearing()
|
||||
{
|
||||
return variant == PLAYER_VARIANT_COOP_BABY && damageCooldown > 0;
|
||||
}
|
||||
|
||||
// 00782a60 Whether the head is free to turn, its last turn having run out.
|
||||
uint32_t Entity_Player::CanTurnHead()
|
||||
{
|
||||
return headDirectionTime < 0;
|
||||
}
|
||||
|
||||
// 00757ab0 Whether the player shuts the room's doors, as players do only in the deathmatch.
|
||||
bool Entity_Player::CanShutDoors()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user