Curation round 12: basement enemies, projectiles, tear flags, lighting and blend modes, actives, boss deaths, familiars, shops and secret rooms

This commit is contained in:
shweet committed 2026-11-20 14:25:15 -05:00
1 parent 698eeb74e9
commit f8ce24fc6c
146 files changed
+16389 -3104

No files matched your search

+5 -9
View File
@@ -1,5 +1,6 @@
#include "entity_player.h"
#include "data.h"
#include "entity_effect.h"
#include "entity_familiar.h"
#include "entity_npc.h"
#include "game.h"
@@ -39,7 +40,6 @@ constexpr float EDEN_FIRE_DELAY_SPREAD = 1.5f;
constexpr float EDEN_RANGE_SPREAD = 120;
constexpr float EDEN_SHOT_SPEED_SPREAD = 0.5f;
constexpr int DEATHMATCH_HEART_SCALE = 8;
constexpr uint32_t GRAPHICS_PREMULTIPLIED_ALPHA = 4;
// The shift triples Init seeds the player's generators with: one stepping the init seed, one for each list of
// generators, and the one every item generator keeps.
@@ -63,15 +63,11 @@ constexpr int CARD_SPECIAL_CHANCE = 25;
constexpr int CARD_START_RUNE_CHANCE = 10;
constexpr int COLOR_PRIORITY_TOP = 255;
constexpr int DAILY_CHRISTMAS = 19;
constexpr int EFFECT_BLOOD_SPLAT = 7;
constexpr int EMPTY_HEART_RED_HEARTS = 3;
constexpr int EVENT_BONUS_ITEMS = 114;
constexpr int FAMILIAR_ABYSS_LOCUST = 231;
constexpr int FAMILIAR_LIL_PORTAL = 232;
constexpr int GIANTBOOK_EMPTY_HEART = 41;
constexpr int GIANTBOOK_ETERNAL = 6;
constexpr int GIANTBOOK_ETERNAL_BLACK = 46;
constexpr uint32_t LEVEL_STATE_SOL = 1 << 18;
constexpr int LOCUST_SUBTYPE_START = 25;
constexpr int PEE_ALPHA = 180;
constexpr int PEE_OFFSET = 244;
@@ -469,7 +465,7 @@ void Entity_Player::sprites_load()
}
int sourceFactor =
g_graphicsManager_flags & GRAPHICS_PREMULTIPLIED_ALPHA ? BLEND_FACTOR_ONE : BLEND_FACTOR_SRC_ALPHA;
KAGE::Graphics::manager.isPremultipliedAlpha ? BLEND_FACTOR_ONE : BLEND_FACTOR_SRC_ALPHA;
for (auto [crown, path] : {std::pair{&crownOfLightSprite, "gfx/CrownOfLight.anm2"},
std::pair{&darkPrincesCrownSprite, "gfx/DarkPrincesCrown.anm2"}})
{
@@ -846,7 +842,7 @@ void Entity_Player::companions_init()
.spawner = this,
.subType = LOCUST_SUBTYPE_START,
.type = ENTITY_FAMILIAR,
.variant = FAMILIAR_ABYSS_LOCUST,
.variant = Entity_Familiar::ABYSS_LOCUST,
.seed = Random()})
->Update();
break;
@@ -975,7 +971,7 @@ void Entity_Player::level_items_apply(bool isForced)
if (!isCoopGhost)
for (Entity* entity : game.room->entityList.mainEL)
if (Entity_Familiar* familiar = dynamic_cast<Entity_Familiar*>(entity);
familiar && familiar->IsType(ENTITY_FAMILIAR, FAMILIAR_LIL_PORTAL, 1) && familiar->player == this)
familiar && familiar->IsType(ENTITY_FAMILIAR, Entity_Familiar::LIL_PORTAL, 1) && familiar->player == this)
familiar->subtype = 0;
floor_maps_apply();
@@ -1028,7 +1024,7 @@ void Entity_Player::floor_maps_apply()
{
if (game.lastBossRoomListIdx >= 0) game.roomList[game.lastBossRoomListIdx].displayFlags |= ROOM_DISPLAY_ICON;
game.minimap.Refresh();
game.levelStateFlags |= LEVEL_STATE_SOL;
game.levelStateFlags |= 1u << LEVEL_STATE_SOL;
}
if (HasCollectible(COLLECTIBLE_LUNA)) game.reveal_secret_room();
if (HasTrinket(TRINKET_MISSING_POSTER))