Curation round 21: rock drops, Boss Rush and room setup, Dross, Ashpit and Gehenna enemies, Book of Virtues wisps and Dream Catcher, the last familiars and effects, player damage branches, a Corpse floor and Abyss crash fix, shared constants (186 duplicates)
This commit is contained in:
1 parent
8dbeb1bc4a
commit
6a11163842
184 files changed
+16980
-1419
No files matched your search
@@ -9,6 +9,7 @@
|
||||
#include "active_items.h"
|
||||
#include "hud.h"
|
||||
#include "pocket_items.h"
|
||||
#include "seeds.h"
|
||||
#include "sfx_manager.h"
|
||||
#include "game.h"
|
||||
#include "log.h"
|
||||
@@ -77,7 +78,6 @@ constexpr int PICKUP_GRAB_BAG = 69;
|
||||
constexpr int PICKUP_HEART = 10;
|
||||
constexpr float PICKUP_SPAWN_RADIUS = 40;
|
||||
constexpr int POCKET_ACTIVE_SLOT = 2;
|
||||
constexpr float RANDOM_FLOAT_SCALE = 2.3283064e-10f;
|
||||
// A removed player lets go of what it holds at a tenth of its speed.
|
||||
constexpr float HELD_RELEASE_SPEED = 0.1f;
|
||||
constexpr int RED_REDEMPTION_KEY_CHARGES = 20;
|
||||
@@ -935,8 +935,7 @@ void Entity_Player::start_position_set()
|
||||
if (game.difficulty == DIFFICULTY_GREED || game.difficulty == DIFFICULTY_GREEDIER) startY = GREED_START_SPOT_Y;
|
||||
else
|
||||
{
|
||||
bool isAltStage = game.stageType == STAGETYPE_REPENTANCE || game.stageType == STAGETYPE_REPENTANCE_B;
|
||||
if (game.stage + (isAltStage ? 1 : 0) != 1 || game.IsAscent())
|
||||
if (game.stage_depth_get() != 1 || game.IsAscent())
|
||||
{
|
||||
pos = PlayerManager::get_player_start_position(this, {});
|
||||
if (game.challenge == CHALLENGE_BACKASSWARDS && game.stage == STAGE_DARK_ROOM)
|
||||
@@ -1267,7 +1266,7 @@ void Entity_Player::spawn_low_health_blood_splat()
|
||||
|
||||
Entity* splat =
|
||||
g_game->Spawn({.position = pos, .type = ENTITY_EFFECT, .variant = EFFECT_BLOOD_SPLAT, .seed = Random()});
|
||||
float scale = (float)Random() * RANDOM_FLOAT_SCALE * 0.5f + 0.3f;
|
||||
float scale = random_unit() * 0.5f + 0.3f;
|
||||
splat->sprite.scale = vector_make(scale, scale);
|
||||
splat->sprite.rotation = (float)(Random() & 3) * 90;
|
||||
splat->sprite.isFlipX = !(Random() & 1);
|
||||
@@ -1521,7 +1520,9 @@ void Entity_Player::release_weapons_and_effects(bool isRemoveEntities)
|
||||
weapon.reset();
|
||||
}
|
||||
link_release(azazelsRageLaser, isRemoveEntities);
|
||||
link_release(dadsRingAura, isRemoveEntities);
|
||||
link_release(breathOfLifeEffect, isRemoveEntities);
|
||||
link_release(isaacsHeart, isRemoveEntities);
|
||||
link_release(trinityShield, isRemoveEntities);
|
||||
link_release(deadToothRing, isRemoveEntities);
|
||||
link_release(redemptionEffect, isRemoveEntities);
|
||||
@@ -1529,11 +1530,13 @@ void Entity_Player::release_weapons_and_effects(bool isRemoveEntities)
|
||||
link_release(megaBlastLaser, isRemoveEntities);
|
||||
link_release(markedTarget, isRemoveEntities);
|
||||
link_release(forgottenBody, isRemoveEntities);
|
||||
link_release(monstranceAura, isRemoveEntities);
|
||||
link_release(babyFamiliar, isRemoveEntities);
|
||||
link_release(salvationEffect, isRemoveEntities);
|
||||
link_release(tetheredEffect, isRemoveEntities);
|
||||
link_release(astralProjectionBody, isRemoveEntities);
|
||||
link_release(montezumaLaser, isRemoveEntities);
|
||||
link_release(divineShield, isRemoveEntities);
|
||||
link_release(darkArtsLastSnare, isRemoveEntities);
|
||||
link_release(darkEsau, isRemoveEntities);
|
||||
moveToTarget = {};
|
||||
|
||||
Reference in new issue
Block a user