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:
shweet committed 2026-11-22 00:33:35 -05:00
1 parent ee863e70e6
commit 8dbeb1bc4a
168 files changed
+15682 -2399

No files matched your search

+8 -9
View File
@@ -18,6 +18,7 @@
#include "manager.h"
#include "npc_ai.h"
#include "npc_basement.h"
#include "pocket_items.h"
#include "room.h"
#include "room_grid.h"
#include "sfx_manager.h"
@@ -407,13 +408,6 @@ static void wisp_reroll(Entity_Familiar& wisp, RNG& rng)
wisp.WispInit();
}
// Game::DevolveEnemy, which the D10 calls, is not written yet.
static void game_enemy_devolve(Entity& enemy)
{
(void)enemy;
reconstruction_missing("Game::DevolveEnemy 00705480");
}
// The items held up until thrown or let go (Glass Cannon, Friend Ball): the item lifted, its sound played.
static void lift_sound_use(ItemUse& use, int sound)
{
@@ -792,7 +786,7 @@ static void d10_use(ItemUse& use)
for (Entity* entity : room_entities())
if (!entity->HasMortalDamage() && !entity->isDead && entity->CanDevolve()) enemies.emplace_back() = entity;
for (EntityPtr& enemy : enemies)
if (enemy) game_enemy_devolve(*enemy.get());
if (enemy) game_enemy_devolve(*enemy.get(), nullptr);
}
dice_end(use);
}
@@ -968,7 +962,7 @@ static void flush_npc(ItemUse& use, Entity_NPC& npc)
{
npc.KillUnique();
if (!npc.IsBoss()) return;
int dips = (int)lerp_clamped(npc.health, 0, npc.maxHitPoints, 0, FLUSH_DIPS_MAX);
int dips = (int)lerp_range(npc.health, {0, npc.maxHitPoints, 0, FLUSH_DIPS_MAX});
bool isCorny = (npc.type == ENTITY_DINGLE && npc.variant == DANGLE) || npc.type == ENTITY_BROWNIE;
for (int i = 0; i < dips; i++)
{
@@ -1476,6 +1470,11 @@ void rebirth_item_effect_run(ItemUse& use)
return d4_use(use);
case COLLECTIBLE_D10:
return d10_use(use);
case COLLECTIBLE_D12:
return d12_use(use);
case COLLECTIBLE_WE_NEED_TO_GO_DEEPER:
case COLLECTIBLE_MOMS_SHOVEL:
return deeper_use(use);
case COLLECTIBLE_BLANK_CARD:
return blank_card_use(use);
case COLLECTIBLE_BOOK_OF_SECRETS: