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:
1 parent
698eeb74e9
commit
f8ce24fc6c
146 files changed
+16389
-3104
No files matched your search
@@ -0,0 +1,758 @@
|
||||
#include "boss_death.h"
|
||||
#include "boss_ai.h"
|
||||
#include "entity_combat.h"
|
||||
#include "entity_config.h"
|
||||
#include "entity_effect.h"
|
||||
#include "entity_pickup.h"
|
||||
#include "entity_player.h"
|
||||
#include "game.h"
|
||||
#include "item_config.h"
|
||||
#include "item_overlay.h"
|
||||
#include "log.h"
|
||||
#include "manager.h"
|
||||
#include "npc_ai.h"
|
||||
#include "options_config.h"
|
||||
#include "persistent_game_data.h"
|
||||
#include "room.h"
|
||||
#include "room_descriptor.h"
|
||||
#include "room_grid.h"
|
||||
#include "room_render.h"
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <cstdio>
|
||||
|
||||
constexpr int ENTITY_SLOTH = 46;
|
||||
constexpr int ENTITY_ENVY = 51;
|
||||
constexpr int ENTITY_PRIDE = 52;
|
||||
constexpr int ENTITY_FALLEN = 81;
|
||||
constexpr int ENTITY_POLYCEPHALUS = 269;
|
||||
constexpr int VARIANT_SUPER = 1;
|
||||
constexpr int VARIANT_ULTRA_PRIDE = 2;
|
||||
constexpr int VARIANT_KRAMPUS = 1;
|
||||
constexpr int VARIANT_THE_PILE = 1;
|
||||
constexpr int VARIANT_MOTHER_PHASE_TWO = 10;
|
||||
constexpr int BIG_HORN_SMALL_HOLE = 1;
|
||||
constexpr int BIG_HORN_BIG_HOLE = 2;
|
||||
constexpr int ENVY_SIZES = 10;
|
||||
constexpr int ROTGUT_BOSS_ROOM_SUBTYPE = 3;
|
||||
constexpr int DUNGEON_BOSS_SUBTYPE_FIRST = 2;
|
||||
constexpr int MINIBOSS_PRIDE = 6;
|
||||
constexpr int MINIBOSS_ULTRA_PRIDE = 14;
|
||||
constexpr int MINIBOSS_ID_LIMIT = 16;
|
||||
|
||||
constexpr int EFFECT_POOF04 = 17;
|
||||
constexpr int EFFECT_BLOOD_GUSH = 42;
|
||||
constexpr int EFFECT_LARGE_BLOOD_EXPLOSION = 77;
|
||||
|
||||
constexpr int COLLECTIBLE_LUMP_OF_COAL = 132;
|
||||
constexpr int COLLECTIBLE_HEAD_OF_KRAMPUS = 293;
|
||||
constexpr int COLLECTIBLE_QUARTER = 74;
|
||||
constexpr int COLLECTIBLE_FOREVER_ALONE = 128;
|
||||
constexpr int NULL_ITEM_SOL = 56;
|
||||
constexpr int GIANTBOOK_SOL = 5;
|
||||
constexpr int BOMB_TROLL_SUBTYPE = 3;
|
||||
constexpr std::array<int, 5> HORNFEL_ITEMS = {256, 220, 19, 137, 646};
|
||||
|
||||
constexpr int ACHIEVEMENT_A_QUARTER = 10;
|
||||
constexpr int ACHIEVEMENT_LOKIS_HORNS = 15;
|
||||
constexpr int ACHIEVEMENT_BOOK_OF_SIN = 22;
|
||||
constexpr int ACHIEVEMENT_EVERYTHING_TERRIBLE = 33;
|
||||
constexpr int ACHIEVEMENT_LEFT_HAND = 77;
|
||||
constexpr int ACHIEVEMENT_CELLAR = 86;
|
||||
constexpr int ACHIEVEMENT_CATACOMBS = 87;
|
||||
constexpr int ACHIEVEMENT_NECROPOLIS = 88;
|
||||
constexpr int ACHIEVEMENT_HEAD_OF_KRAMPUS = 143;
|
||||
constexpr int ACHIEVEMENT_SEVEN_SEALS = 372;
|
||||
constexpr int ACHIEVEMENT_DROSS = 412;
|
||||
constexpr int ACHIEVEMENT_ASHPIT = 413;
|
||||
constexpr int ACHIEVEMENT_GEHENNA = 414;
|
||||
constexpr int ACHIEVEMENT_BRIMSTONE_BOMBS = 546;
|
||||
constexpr int EVENT_BABY_PLUM_KILLS = 493;
|
||||
|
||||
constexpr int MUSIC_JINGLE_BOSS_OVER = 83;
|
||||
constexpr int MUSIC_JINGLE_BOSS_OVER2 = 97;
|
||||
constexpr int MUSIC_JINGLE_BOSS_OVER3 = 42;
|
||||
constexpr int MUSIC_JINGLE_MINIBOSS_OVER = 92;
|
||||
constexpr int STAGE_HOME = 13;
|
||||
constexpr int GAME_STATE_PERFECTION_SPAWNED = 45;
|
||||
|
||||
constexpr RNG DEATH_RNG_SHIFTS = {0, 4, 3, 17};
|
||||
constexpr RNG HEART_RNG_SHIFTS = {0, 2, 9, 15};
|
||||
constexpr RNG HEART_DIRECTION_SHIFTS = {0, 3, 13, 7};
|
||||
constexpr RNG COLOR_HEART_SHIFTS = {0, 3, 5, 22};
|
||||
constexpr RNG CONSOLATION_SHIFTS = {0, 3, 3, 29};
|
||||
constexpr RNG SOL_SHIFTS = {0, 5, 27, 25};
|
||||
constexpr int DEATH_SEED_SHIFT_INDEX = 4;
|
||||
constexpr int HORNFEL_SHIFT_INDEX = 23;
|
||||
constexpr int PERFECTION_SHIFT_INDEX = 24;
|
||||
constexpr int HORNFEL_CHEST_ODDS = 7;
|
||||
constexpr int HORNFEL_CHESTS = 3;
|
||||
constexpr int SIN_ITEM_ODDS = 4;
|
||||
constexpr int SUPER_SIN_ITEM_ODDS = 7;
|
||||
constexpr int ULTRA_PRIDE_ITEM_ODDS = 4;
|
||||
constexpr int SIN_COINS_MIN = 4;
|
||||
constexpr int SIN_COINS_SPAN = 5;
|
||||
constexpr float SIN_COIN_SPEED = 2;
|
||||
constexpr float SIN_COIN_SPEED_SPAN = 5;
|
||||
constexpr float DROP_SPEED = 7;
|
||||
constexpr float SIN_DROP_SPEED = 5;
|
||||
constexpr float SOL_DAMAGE = 100;
|
||||
constexpr int SOL_DAMAGE_COUNTDOWN = 30;
|
||||
constexpr size_t LOG_LINE = 128;
|
||||
|
||||
constexpr int GUIDE_SHAKE_INTERVAL = 3;
|
||||
constexpr int GUIDE_SHAKE_FRAMES = 5;
|
||||
constexpr int GUIDE_GIB_INTERVAL = 10;
|
||||
constexpr int GUIDE_GIB_MIN = 6;
|
||||
constexpr uint32_t GUIDE_GIB_MASK = 3;
|
||||
constexpr float GUIDE_GIB_SPREAD = 60;
|
||||
constexpr uint32_t GUIDE_GIB_FLAGS = GIB_FLAG_BLOOD | GIB_FLAG_BONE | GIB_FLAG_GUT | GIB_FLAG_WORM;
|
||||
constexpr int GUIDE_EXPLOSION_MIN = 3;
|
||||
constexpr float GUIDE_REACH = 4;
|
||||
constexpr float GUIDE_PERSPECTIVE = 0.65f;
|
||||
constexpr float GUIDE_VOLUME = 0.5f;
|
||||
constexpr float GUIDE_VOLUME_SPAN = 0.2f;
|
||||
constexpr float GUIDE_POOF_DEPTH = 50;
|
||||
constexpr float GUIDE_POOF_TURN = 90;
|
||||
constexpr uint32_t GUIDE_POOF_TURNS = 3;
|
||||
constexpr float GUIDE_POOF_SHRINK = 0.4f;
|
||||
constexpr int GUIDE_GUSHES = 4;
|
||||
constexpr float GUIDE_GUSH_REACH = 3.8f;
|
||||
constexpr float GUIDE_GUSH_DEPTH = 50;
|
||||
constexpr int SOUND_DEATH_BURST_HUGE = 141;
|
||||
constexpr int SOUND_DEATH_BURST_GUIDED = 72;
|
||||
constexpr float GFUEL_EARLY_FRAMES = 10;
|
||||
constexpr int GFUEL_DELAYED_COUNT = 2;
|
||||
constexpr uint32_t GFUEL_SEED_MASK = 0xfffff;
|
||||
constexpr uint32_t GFUEL_BABY_PLUM_SEED = 0xdedbb;
|
||||
|
||||
// The blood explosion sizes a death's Explosion event bursts in, by the dying boss's size and shadow.
|
||||
constexpr int EXPLOSION_SMALL = 1;
|
||||
constexpr int EXPLOSION_MEDIUM = 2;
|
||||
constexpr int EXPLOSION_LARGE = 3;
|
||||
constexpr int EXPLOSION_HUGE = 4;
|
||||
constexpr float EXPLOSION_SMALL_SIZE = 13;
|
||||
constexpr float EXPLOSION_LARGE_SIZE = 18;
|
||||
constexpr float EXPLOSION_LARGE_SHADOW = 30;
|
||||
constexpr float EXPLOSION_HUGE_SIZE = 40;
|
||||
constexpr float EXPLOSION_HUGE_SHADOW = 50;
|
||||
|
||||
// The bosses each set of kills completes, and the unlock it gives.
|
||||
struct BossSet
|
||||
{
|
||||
std::array<int, 6> bosses{};
|
||||
int achievement = 0;
|
||||
};
|
||||
|
||||
constexpr std::array<BossSet, 8> BOSS_SETS = {{
|
||||
{{1, 2, 13, 17, 44, 56}, ACHIEVEMENT_CELLAR},
|
||||
{{3, 4, 14, 28, 47, 45}, ACHIEVEMENT_CATACOMBS},
|
||||
{{5, 6, 15, 48, 46}, ACHIEVEMENT_NECROPOLIS},
|
||||
{{31}, ACHIEVEMENT_LOKIS_HORNS},
|
||||
{{9, 10, 11, 12, 38}, ACHIEVEMENT_SEVEN_SEALS},
|
||||
{{77, 75, 76, 91}, ACHIEVEMENT_DROSS},
|
||||
{{83, 80, 74, 82}, ACHIEVEMENT_ASHPIT},
|
||||
{{6, 79, 81}, ACHIEVEMENT_GEHENNA},
|
||||
}};
|
||||
|
||||
// A sin's own collectible when it drops one, and its super form's.
|
||||
struct SinItem
|
||||
{
|
||||
int item = 0;
|
||||
int superItem = 0;
|
||||
};
|
||||
|
||||
constexpr std::array<SinItem, 7> SIN_ITEMS = {{{42, 140}, {13, 45}, {37, 106}, {15, 129}, {0, 0}, {0, 0}, {65, 81}}};
|
||||
|
||||
// What a sin leaves without its collectible, sloth to pride: a card, a pill, two bombs, two hearts, coins, a troll bomb
|
||||
// or a key.
|
||||
enum SinDrop
|
||||
{
|
||||
SIN_DROP_PICKUP,
|
||||
SIN_DROP_PAIR,
|
||||
SIN_DROP_COINS,
|
||||
SIN_DROP_IN_PLACE
|
||||
};
|
||||
|
||||
struct SinConsolation
|
||||
{
|
||||
SinDrop drop = SIN_DROP_PICKUP;
|
||||
int variant = 0;
|
||||
int subType = 0;
|
||||
};
|
||||
|
||||
constexpr std::array<SinConsolation, 7> SIN_CONSOLATIONS = {{
|
||||
{SIN_DROP_PICKUP, PICKUP_TAROTCARD},
|
||||
{SIN_DROP_PICKUP, PICKUP_PILL},
|
||||
{SIN_DROP_PAIR, PICKUP_BOMB},
|
||||
{SIN_DROP_PAIR, PICKUP_HEART},
|
||||
{SIN_DROP_COINS, PICKUP_COIN},
|
||||
{SIN_DROP_IN_PLACE, PICKUP_BOMB, BOMB_TROLL_SUBTYPE},
|
||||
{SIN_DROP_PICKUP, PICKUP_KEY},
|
||||
}};
|
||||
|
||||
// Logs a line with one number, as KAGE_LogMessage's callers format it.
|
||||
static void boss_log(const char* format, int value)
|
||||
{
|
||||
char line[LOG_LINE];
|
||||
std::snprintf(line, sizeof(line), format, value);
|
||||
KAGE_LogMessage(LOG_INFO, (uint8_t*)line);
|
||||
}
|
||||
|
||||
// An RNG with a shift triple and a seed.
|
||||
static RNG rng_make(const RNG& shifts, uint32_t seed)
|
||||
{
|
||||
RNG rng = shifts;
|
||||
rng._seed = seed;
|
||||
return rng;
|
||||
}
|
||||
|
||||
// Room::FindFreePickupSpawnPosition at the default step.
|
||||
static Vector free_spot_get(const Vector& position)
|
||||
{
|
||||
return room_free_pickup_position_find({.position = position});
|
||||
}
|
||||
|
||||
// A pickup the boss drops.
|
||||
static Entity* drop_spawn(Entity_NPC& boss, const Vector& position, const Vector& velocity, int variant, int subType,
|
||||
uint32_t seed)
|
||||
{
|
||||
return g_game->Spawn({.position = position,
|
||||
.velocity = velocity,
|
||||
.spawner = &boss,
|
||||
.subType = subType,
|
||||
.type = ENTITY_PICKUP,
|
||||
.variant = variant,
|
||||
.seed = seed});
|
||||
}
|
||||
|
||||
// Whether Daemon's Tail lets a heart through: always without it, one roll in five with it.
|
||||
static bool is_heart_allowed(uint32_t roll)
|
||||
{
|
||||
return !g_game->playerManager.AnyoneHasTrinket(TRINKET_DAEMONS_TAIL) || roll % DAEMONS_TAIL_ODDS == 0;
|
||||
}
|
||||
|
||||
// Plays the room's victory jingle (and queues the boss over music after it), unless it plays already when asked.
|
||||
static void victory_jingle_play(Room& room, bool isSkippedWhenPlaying)
|
||||
{
|
||||
MusicManager& music = g_manager->musicManager;
|
||||
int jingle = (int)room.GetBossVictoryJingle();
|
||||
|
||||
if (jingle == 0 || (isSkippedWhenPlaying && music.currentMusicId == jingle)) return;
|
||||
music.Play(jingle, g_manager->optionsConfig.musicVolume);
|
||||
if (music.tracks.size() > MUSIC_BOSS_OVER) music.queuedMusicId = MUSIC_BOSS_OVER;
|
||||
}
|
||||
|
||||
// 0092a5e0 Marks a boss as killed in the save and gives the floors every boss of a set unlocks. Ids outside the boss
|
||||
// list are ignored, where the original wrote before it for a negative one.
|
||||
void PersistentGameData::AddBoss(int bossId)
|
||||
{
|
||||
if (isReadOnly || bossId < 0 || bossId >= BOSS_COUNT) return;
|
||||
|
||||
bosses[bossId] = true;
|
||||
isChangesMade = true;
|
||||
boss_log("Boss %d added to SaveState\n", bossId);
|
||||
for (const BossSet& set : BOSS_SETS)
|
||||
if (std::ranges::all_of(set.bosses, [&](int id) { return id == 0 || bosses[id]; })) TryUnlock(set.achievement);
|
||||
}
|
||||
|
||||
// 0092a520 Marks a sin as killed in the save (the ids seven up as their sins, Ultra Pride's as Pride), and gives The
|
||||
// Book of Sin once all seven are.
|
||||
void PersistentGameData::AddMiniBoss(int miniBossId)
|
||||
{
|
||||
if (isReadOnly) return;
|
||||
if (miniBossId < 0 || miniBossId >= MINIBOSS_ID_LIMIT)
|
||||
{
|
||||
boss_log("[warn] AddMiniBoss: invalid miniboss id %d\n", miniBossId);
|
||||
return;
|
||||
}
|
||||
|
||||
int sin = miniBossId == MINIBOSS_ULTRA_PRIDE ? MINIBOSS_PRIDE : miniBossId;
|
||||
if (sin >= MINIBOSS_COUNT) sin -= MINIBOSS_COUNT;
|
||||
if (sin >= MINIBOSS_COUNT) return;
|
||||
miniBosses[sin] = true;
|
||||
isChangesMade = true;
|
||||
boss_log("MiniBoss %d added to SaveState\n", sin);
|
||||
if (std::ranges::all_of(miniBosses, [](bool isKilled) { return isKilled; })) TryUnlock(ACHIEVEMENT_BOOK_OF_SIN);
|
||||
}
|
||||
|
||||
// 00820720 The jingle a boss's death plays: none at Home's night or in the Mom's Heart secret exit, the miniboss one
|
||||
// for minibosses, Repentance's on the alt floors, and the room's own (its alt music flag) elsewhere.
|
||||
uint32_t Room::GetBossVictoryJingle()
|
||||
{
|
||||
Game& game = *g_game;
|
||||
if (game.stage == STAGE_HOME && game.stageType == STAGE_TYPE_HOME_NIGHT) return 0;
|
||||
if (game.get_secret_exit_kind() == SECRET_EXIT_MOMS_HEART && game.currentRoomIdx == ROOM_SECRET_EXIT_IDX) return 0;
|
||||
|
||||
if (game.room->roomType == ROOM_MINIBOSS || game.room->isSurpriseMiniboss) return MUSIC_JINGLE_MINIBOSS_OVER;
|
||||
if (game.stageType == STAGETYPE_REPENTANCE || game.stageType == STAGETYPE_REPENTANCE_B)
|
||||
return MUSIC_JINGLE_BOSS_OVER3;
|
||||
return descriptor->flags & ROOM_DESCRIPTOR_FLAG_ALT_BOSS_MUSIC ? MUSIC_JINGLE_BOSS_OVER2 : MUSIC_JINGLE_BOSS_OVER;
|
||||
}
|
||||
|
||||
// The hearts a boss room's (or Boss Rush's) last boss drops: two, one once Everything is Terrible is unlocked, Boss
|
||||
// Rush at most one, and Hard mode may take one away. Daemon's Tail lets one in five through.
|
||||
static void boss_hearts_drop(Room& room, Entity_NPC& boss, RNG& rng)
|
||||
{
|
||||
PersistentGameData& save = g_manager->persistentGameData;
|
||||
RNG heartRng = rng_make(HEART_RNG_SHIFTS, rng.Next());
|
||||
RNG directionRng = rng_make(HEART_DIRECTION_SHIFTS, boss.initSeed);
|
||||
bool isTerrible = save.Unlocked(ACHIEVEMENT_EVERYTHING_TERRIBLE);
|
||||
int hearts = isTerrible ? 1 : 2;
|
||||
|
||||
if (room.roomType == ROOM_BOSSRUSH) hearts = isTerrible ? 1 - (int)heartRng.RandomInt(2) : 1;
|
||||
if (game_is_hard_mode()) hearts -= (int)heartRng.RandomInt(2);
|
||||
|
||||
for (int i = 0; i < hearts; i++)
|
||||
{
|
||||
if (!is_heart_allowed(rng.Next())) continue;
|
||||
|
||||
uint32_t seed = heartRng.Next();
|
||||
Vector velocity = vector_scale(RandomVector(directionRng.Next()), DROP_SPEED);
|
||||
drop_spawn(boss, free_spot_get(boss.pos), velocity, PICKUP_HEART, 0, seed);
|
||||
}
|
||||
}
|
||||
|
||||
// The heart a boss in one of its colors drops: a soul heart for a few colors (Larry Jr's, Mom's, Famine's, Gemini's,
|
||||
// Gurdy Jr's), any heart otherwise.
|
||||
static void boss_color_heart_drop(Entity_NPC& boss, RNG& rng)
|
||||
{
|
||||
int color = boss.bosscoloridx;
|
||||
bool isSoul = false;
|
||||
|
||||
switch (boss.type)
|
||||
{
|
||||
case ENTITY_LARRYJR:
|
||||
isSoul = boss.variant == 0 && color == 1;
|
||||
break;
|
||||
case ENTITY_MOM:
|
||||
isSoul = true;
|
||||
break;
|
||||
case ENTITY_FAMINE:
|
||||
isSoul = boss.variant == 0 && color == 0;
|
||||
break;
|
||||
case ENTITY_GEMINI:
|
||||
isSoul = (boss.variant == 0 || boss.variant == GEMINI_BABY) && color == 1;
|
||||
break;
|
||||
case ENTITY_GURDY_JR:
|
||||
isSoul = color == 0;
|
||||
break;
|
||||
}
|
||||
if (!is_heart_allowed(rng.Next())) return;
|
||||
|
||||
RNG directionRng = rng_make(COLOR_HEART_SHIFTS, boss.initSeed);
|
||||
uint32_t seed = rng.Next();
|
||||
Vector velocity = vector_scale(RandomVector(directionRng.Next()), DROP_SPEED);
|
||||
drop_spawn(boss, free_spot_get(boss.pos), velocity, PICKUP_HEART, isSoul ? HEART_SOUL : 0, seed);
|
||||
}
|
||||
|
||||
// Sol on the floor's last boss: every vulnerable enemy takes 100 from a Sol holder, every player is healed and charged
|
||||
// (a holder also gets Sol's effect), the curses lift, the map shows, the rain stops and the giant book plays.
|
||||
static void sol_trigger(Room& room, uint32_t seed)
|
||||
{
|
||||
Game& game = *g_game;
|
||||
RNG solRng = rng_make(SOL_SHIFTS, seed);
|
||||
|
||||
EntityList_EL& enemies = room.entityList.updateEL;
|
||||
for (size_t i = 0; i < enemies.size(); i++)
|
||||
{
|
||||
Entity* enemy = enemies[i];
|
||||
if (!enemy->IsVulnerableEnemy(nullptr)) continue;
|
||||
|
||||
Entity_Player* owner = game.playerManager.RandomCollectibleOwner(COLLECTIBLE_SOL, solRng.Next(), nullptr);
|
||||
enemy->TakeDamage(SOL_DAMAGE, 0, EntityRef(owner), SOL_DAMAGE_COUNTDOWN);
|
||||
}
|
||||
|
||||
for (size_t i = 0; i < game.playerManager.playerList.size(); i++)
|
||||
{
|
||||
Entity_Player* player = game.GetPlayer((int)i);
|
||||
player->SetFullHearts();
|
||||
player->FullCharge(-1, false, false);
|
||||
ItemConfig_Item* sol = g_manager->itemConfig.GetNullItem(NULL_ITEM_SOL);
|
||||
if (player->HasCollectible(COLLECTIBLE_SOL) && sol)
|
||||
player->temporaryEffects.AddEffect(TemporaryEffect(sol), true, 1);
|
||||
}
|
||||
game.RemoveCurses(UINT32_MAX);
|
||||
game.ShowMap();
|
||||
game.room->isRainStopped = true;
|
||||
game.itemOverlay.Show(GIANTBOOK_SOL, 0, nullptr);
|
||||
}
|
||||
|
||||
// Hornfel's death unlocks Brimstone Bombs and leaves a bomb collectible one time in seven, three bombs otherwise.
|
||||
static void hornfel_drop(Entity_NPC& boss, RNG& rng)
|
||||
{
|
||||
Game& game = *g_game;
|
||||
g_manager->persistentGameData.TryUnlock(ACHIEVEMENT_BRIMSTONE_BOMBS);
|
||||
|
||||
int item = game.itemPool.GetCollectibleFromList(HORNFEL_ITEMS, rng.Next(), 0, 0);
|
||||
if (item == 0 || rng.RandomInt(HORNFEL_CHEST_ODDS) != 0)
|
||||
{
|
||||
RNG chestRng;
|
||||
chestRng.game_constructor(boss.initSeed, HORNFEL_SHIFT_INDEX);
|
||||
for (int i = 0; i < HORNFEL_CHESTS; i++)
|
||||
{
|
||||
uint32_t seed = rng.Next();
|
||||
Vector velocity = vector_scale(RandomVector(chestRng.Next()), DROP_SPEED);
|
||||
drop_spawn(boss, boss.pos, velocity, PICKUP_BOMB, 0, seed);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Vector spot = free_spot_get(boss.pos);
|
||||
drop_spawn(boss, spot, {}, PICKUP_COLLECTIBLE, item, rng.Next());
|
||||
game.itemPool.removedCollectibles[item] = true;
|
||||
}
|
||||
|
||||
// The last boss of a floor killed without a hit for two floors drops Perfection, once a run.
|
||||
static void perfection_drop(Entity_NPC& boss, RNG& rng)
|
||||
{
|
||||
Game& game = *g_game;
|
||||
game.gameStateFlags |= 1ull << GAME_STATE_PERFECTION_SPAWNED;
|
||||
|
||||
RNG directionRng;
|
||||
directionRng.game_constructor(boss.initSeed, PERFECTION_SHIFT_INDEX);
|
||||
uint32_t seed = rng.Next();
|
||||
Vector velocity = vector_scale(RandomVector(directionRng.Next()), DROP_SPEED);
|
||||
drop_spawn(boss, boss.pos, velocity, PICKUP_TRINKET, TRINKET_PERFECTION, seed);
|
||||
}
|
||||
|
||||
// The rewards of the last boss of a room but the minibosses: the victory jingle, the boss room's hearts, a boss color's
|
||||
// heart, Sol, Hornfel's drop and Perfection, then the boss is marked killed in the save. A dungeon's boss rooms only
|
||||
// mark Rotgut's return room as done.
|
||||
static void boss_death_rewards(Room& room, Entity_NPC& boss, RNG& rng, bool isGreedWave)
|
||||
{
|
||||
Game& game = *g_game;
|
||||
RoomType roomType = room.roomType;
|
||||
RoomDescriptor* descriptor = room.descriptor;
|
||||
bool isDungeonBoss = roomType == ROOM_DUNGEON && descriptor->data->subtype >= DUNGEON_BOSS_SUBTYPE_FIRST &&
|
||||
descriptor->data->subtype <= ROTGUT_BOSS_ROOM_SUBTYPE;
|
||||
if (isDungeonBoss)
|
||||
{
|
||||
if (boss.type != ENTITY_ROTGUT || descriptor->data->subtype != ROTGUT_BOSS_ROOM_SUBTYPE) return;
|
||||
RoomDescriptor* returnRoom = game.GetRoomByIdx(game.dungeonReturnRoomIndex, -1);
|
||||
if (returnRoom->data && returnRoom->data->type == ROOM_BOSS)
|
||||
returnRoom->flags |= ROOM_DESCRIPTOR_FLAG_ROTGUT_CLEARED;
|
||||
return;
|
||||
}
|
||||
|
||||
boss_log("deathspawn_boss, color idx %d\n", boss.bosscoloridx);
|
||||
int music = g_manager->musicManager.currentMusicId;
|
||||
bool isBossMusic = music == MUSIC_BOSS || music == MUSIC_BOSS2 || music == MUSIC_BOSS3;
|
||||
if ((roomType == ROOM_BOSS || roomType == ROOM_ANGEL || isBossMusic) && !game.ambush._isActive &&
|
||||
(!game.IsGreedMode() || roomType != ROOM_DEFAULT))
|
||||
victory_jingle_play(room, true);
|
||||
|
||||
if (roomType == ROOM_BOSS || roomType == ROOM_BOSSRUSH) boss_hearts_drop(room, boss, rng);
|
||||
if (boss.subtype != 0 && !isGreedWave) boss_color_heart_drop(boss, rng);
|
||||
|
||||
bool isLastBossRoom = descriptor->listIndex == game.lastBossRoomListIdx;
|
||||
if (isLastBossRoom && game.playerManager.FirstCollectibleOwner(COLLECTIBLE_SOL, LAZARUS_SHARE_CHECK))
|
||||
sol_trigger(room, rng._seed);
|
||||
if (boss.type == ENTITY_HORNFEL && boss.isDead) hornfel_drop(boss, rng);
|
||||
if (isLastBossRoom && game.stagesWithoutDamage > 1 && !(game.levelStateFlags >> LEVEL_STATE_DAMAGED & 1) &&
|
||||
!(game.gameStateFlags >> GAME_STATE_PERFECTION_SPAWNED & 1))
|
||||
perfection_drop(boss, rng);
|
||||
|
||||
g_manager->persistentGameData.AddBoss(boss.GetBossID());
|
||||
if (boss.type == ENTITY_BABY_PLUM) g_manager->persistentGameData.IncreaseEventCounter(EVENT_BABY_PLUM_KILLS, 1);
|
||||
}
|
||||
|
||||
// A sin's collectible, one time in four (a super sin's also one time in seven more): Greed's Quarter once unlocked, a
|
||||
// super Envy's Forever Alone. Whether it dropped.
|
||||
static bool sin_item_drop(Entity_NPC& sin, RNG& rng)
|
||||
{
|
||||
const SinItem& items = SIN_ITEMS[sin.type - ENTITY_SLOTH];
|
||||
bool isSuper = sin.variant == VARIANT_SUPER;
|
||||
int item = isSuper ? items.superItem : items.item;
|
||||
if (sin.type == ENTITY_GREED)
|
||||
item = isSuper && g_manager->persistentGameData.Unlocked(ACHIEVEMENT_A_QUARTER) ? COLLECTIBLE_QUARTER
|
||||
: COLLECTIBLE_STEAM_SALE;
|
||||
if (sin.type == ENTITY_ENVY)
|
||||
item = sin.variant % ENVY_SIZES == VARIANT_SUPER ? COLLECTIBLE_FOREVER_ALONE : COLLECTIBLE_SHOOP_DA_WHOOP;
|
||||
|
||||
ItemPool& pool = g_game->itemPool;
|
||||
if (!pool.is_collectible_available(item, UNLOCK_CHECKED) || !pool.RemoveCollectible(item, REMOVE_ANY, REMOVE_APPLY))
|
||||
return false;
|
||||
Vector spot = free_spot_get(sin.pos);
|
||||
drop_spawn(sin, spot, {}, PICKUP_COLLECTIBLE, item, rng.Next());
|
||||
return true;
|
||||
}
|
||||
|
||||
// What a sin leaves without its collectible (see SIN_CONSOLATIONS). The second heart of a pair also passes Daemon's
|
||||
// Tail, one time in two.
|
||||
static void sin_consolation_drop(Entity_NPC& sin, RNG& rng)
|
||||
{
|
||||
const SinConsolation& drop = SIN_CONSOLATIONS[sin.type - ENTITY_SLOTH];
|
||||
RNG directionRng = rng_make(CONSOLATION_SHIFTS, sin.initSeed);
|
||||
|
||||
switch (drop.drop)
|
||||
{
|
||||
case SIN_DROP_PICKUP:
|
||||
{
|
||||
Vector spot = free_spot_get(sin.pos);
|
||||
drop_spawn(sin, spot, {}, drop.variant, 0, rng.Next());
|
||||
return;
|
||||
}
|
||||
case SIN_DROP_PAIR:
|
||||
{
|
||||
Vector velocity = vector_scale(RandomVector(directionRng.Next()), SIN_DROP_SPEED);
|
||||
drop_spawn(sin, sin.pos, velocity, drop.variant, 0, rng.Next());
|
||||
uint32_t roll = rng.Next();
|
||||
bool isTailed =
|
||||
drop.variant == PICKUP_HEART && g_game->playerManager.AnyoneHasTrinket(TRINKET_DAEMONS_TAIL);
|
||||
if (!isTailed || (roll & 1) == 0)
|
||||
drop_spawn(sin, sin.pos, vector_scale(velocity, -1), drop.variant, 0, rng.Next());
|
||||
return;
|
||||
}
|
||||
case SIN_DROP_COINS:
|
||||
{
|
||||
int coins = (int)rng.RandomInt(SIN_COINS_SPAN) + SIN_COINS_MIN;
|
||||
for (int i = 0; i < coins; i++)
|
||||
{
|
||||
Vector direction = RandomVector(directionRng.Next());
|
||||
float speed = random_unit() * SIN_COIN_SPEED_SPAN + SIN_COIN_SPEED;
|
||||
drop_spawn(sin, sin.pos, vector_scale(direction, speed), drop.variant, 0, rng.Next());
|
||||
}
|
||||
return;
|
||||
}
|
||||
case SIN_DROP_IN_PLACE:
|
||||
{
|
||||
uint32_t seed = rng.Next();
|
||||
drop_spawn(sin, sin.pos, {}, drop.variant, drop.subType, seed);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// The rewards of the last of a room's minibosses (the sins, Krampus, Ultra Pride and its baby): the jingle, their own
|
||||
// drop (Ultra Pride's Left Hand, Krampus's coal or head, the baby's Eternal D6 or a key, a sin's collectible or its
|
||||
// consolation), then the sin marked killed in the save and the unlocks.
|
||||
static void miniboss_death_rewards(Room& room, Entity_NPC& boss, RNG& rng, bool isGreedWave)
|
||||
{
|
||||
PersistentGameData& save = g_manager->persistentGameData;
|
||||
ItemPool& pool = g_game->itemPool;
|
||||
bool isUltraPride = boss.type == ENTITY_SLOTH && boss.variant == VARIANT_ULTRA_PRIDE;
|
||||
bool isUltraPrideBaby = boss.type == ENTITY_BABY && boss.variant == VARIANT_ULTRA_PRIDE;
|
||||
bool isKrampus = boss.type == ENTITY_FALLEN && boss.variant == VARIANT_KRAMPUS;
|
||||
|
||||
if (room.roomType == ROOM_MINIBOSS || room.isSurpriseMiniboss ||
|
||||
(room.roomType == ROOM_BOSS && g_game->IsGreedMode()))
|
||||
victory_jingle_play(room, false);
|
||||
|
||||
if (!isGreedWave)
|
||||
{
|
||||
if (isUltraPride)
|
||||
{
|
||||
uint32_t seed = rng.Next();
|
||||
drop_spawn(boss, free_spot_get(boss.pos), {}, PICKUP_TRINKET, TRINKET_LEFT_HAND, seed);
|
||||
save.TryUnlock(ACHIEVEMENT_LEFT_HAND);
|
||||
}
|
||||
else if (isKrampus)
|
||||
{
|
||||
Vector spot = free_spot_get(boss.pos);
|
||||
int item = COLLECTIBLE_LUMP_OF_COAL;
|
||||
if (pool.is_collectible_available(COLLECTIBLE_HEAD_OF_KRAMPUS, UNLOCK_IGNORED) && rng.RandomInt(2) != 0)
|
||||
item = COLLECTIBLE_HEAD_OF_KRAMPUS;
|
||||
drop_spawn(boss, spot, {}, PICKUP_COLLECTIBLE, item, rng.Next());
|
||||
pool.RemoveCollectible(item, REMOVE_ANY, REMOVE_APPLY);
|
||||
}
|
||||
else if (isUltraPrideBaby)
|
||||
{
|
||||
bool isItem = rng.RandomInt(ULTRA_PRIDE_ITEM_ODDS) == 0 &&
|
||||
pool.is_collectible_available(COLLECTIBLE_ETERNAL_D6, UNLOCK_CHECKED) &&
|
||||
pool.RemoveCollectible(COLLECTIBLE_ETERNAL_D6, REMOVE_ANY, REMOVE_APPLY);
|
||||
Vector spot = free_spot_get(boss.pos);
|
||||
if (isItem) drop_spawn(boss, spot, {}, PICKUP_COLLECTIBLE, COLLECTIBLE_ETERNAL_D6, rng.Next());
|
||||
else drop_spawn(boss, spot, {}, PICKUP_KEY, 0, rng.Next());
|
||||
}
|
||||
else
|
||||
{
|
||||
bool isItemRolled = rng.RandomInt(SIN_ITEM_ODDS) == 0 ||
|
||||
(rng.RandomInt(SUPER_SIN_ITEM_ODDS) == 0 && boss.variant == VARIANT_SUPER);
|
||||
if (!(isItemRolled && sin_item_drop(boss, rng))) sin_consolation_drop(boss, rng);
|
||||
}
|
||||
}
|
||||
|
||||
if (isUltraPride || isUltraPrideBaby) save.AddMiniBoss(MINIBOSS_PRIDE);
|
||||
else if (boss.type >= ENTITY_SLOTH && boss.type <= ENTITY_PRIDE) save.AddMiniBoss(boss.type - ENTITY_SLOTH);
|
||||
else if (isKrampus) save.TryUnlock(ACHIEVEMENT_HEAD_OF_KRAMPUS);
|
||||
}
|
||||
|
||||
// 007fec00 A boss leaving for good: counts it off the room's bosses (once, never a friendly one or one that does not
|
||||
// count), and the last one gives the room's rewards, a miniboss's or a boss's, then moves the room's death seed on.
|
||||
// Big Horn's holes never count. Uriel's and Gabriel's key pieces are not reconstructed yet.
|
||||
void Room::TriggerBossDeath(Entity_NPC& boss)
|
||||
{
|
||||
Game& game = *g_game;
|
||||
if (boss.type == ENTITY_BIG_HORN && (boss.variant == BIG_HORN_SMALL_HOLE || boss.variant == BIG_HORN_BIG_HOLE))
|
||||
return;
|
||||
|
||||
bool isGreedWave =
|
||||
(game.difficulty == DIFFICULTY_GREED || game.difficulty == DIFFICULTY_GREEDIER) && roomType == ROOM_DEFAULT;
|
||||
if (boss.HasEntityFlags(FLAG_BOSSDEATH_TRIGGERED | FLAG_DONT_COUNT_BOSS_HP)) return;
|
||||
boss.AddEntityFlags(FLAG_BOSSDEATH_TRIGGERED);
|
||||
if (boss.HasEntityFlags(FLAG_FRIENDLY)) return;
|
||||
|
||||
boss_log("TriggerBossDeath: %d bosses remaining.\n", bossesRemaining - 1);
|
||||
bossesRemaining--;
|
||||
if (bossesRemaining <= 0)
|
||||
{
|
||||
if (game.ambush._isActive) reconstruction_missing("Room::TriggerBossDeath 007fec00: an ambush's death seed");
|
||||
|
||||
RNG rng = rng_make(DEATH_RNG_SHIFTS, descriptor->bossDeathSeed);
|
||||
bool isMiniboss = (boss.type >= ENTITY_SLOTH && boss.type <= ENTITY_PRIDE) ||
|
||||
(boss.type == ENTITY_FALLEN && boss.variant == VARIANT_KRAMPUS) ||
|
||||
(boss.type == ENTITY_BABY && boss.variant == VARIANT_ULTRA_PRIDE);
|
||||
if (isMiniboss) miniboss_death_rewards(*this, boss, rng, isGreedWave);
|
||||
else boss_death_rewards(*this, boss, rng, isGreedWave);
|
||||
|
||||
RNG seedRng;
|
||||
seedRng.game_constructor(descriptor->bossDeathSeed, DEATH_SEED_SHIFT_INDEX);
|
||||
descriptor->bossDeathSeed = seedRng.Next();
|
||||
}
|
||||
|
||||
bool isAngel = boss.type == ENTITY_URIEL || boss.type == ENTITY_GABRIEL;
|
||||
RoomType currentType = game.room->roomType;
|
||||
bool isAngelRoom = currentType == ROOM_ANGEL || currentType == ROOM_SACRIFICE || currentType == ROOM_SUPERSECRET;
|
||||
if (isAngel && isAngelRoom) reconstruction_missing("Room::TriggerBossDeath 007fec00: the angels' key pieces");
|
||||
}
|
||||
|
||||
// 006d7520 A death animation's blood guide between its BloodStart and BloodStop (or Explosion) events: a huge boss
|
||||
// (and Mother's second phase) shakes the screen and throws gibs and blood about the guide, the rest puff blood poofs
|
||||
// there. Satan's guide starts four gushes that follow him, which BloodStop and Explosion end. G-Fuel's poofs are not
|
||||
// reconstructed yet.
|
||||
void Entity_NPC::update_blood_guide_gibs(const NullFrame& guide)
|
||||
{
|
||||
bool isBleeding = sprite.WasEventTriggered("BloodStart") && !sprite.WasEventTriggered("BloodStop") &&
|
||||
!sprite.WasEventTriggered("Explosion");
|
||||
bool isHuge = (type == ENTITY_MOTHER && variant == VARIANT_MOTHER_PHASE_TWO) || (config->gibFlags & GIB_FLAG_HUGE);
|
||||
auto guideSpot = [&](float reach) {
|
||||
Vector direction = random_direction();
|
||||
float distance = random_unit();
|
||||
return vector_make(distance * direction.x * guide.scale.x * reach + guide.pos.x,
|
||||
distance * direction.y * guide.scale.y * reach + guide.pos.y);
|
||||
};
|
||||
|
||||
if (isBleeding && isHuge)
|
||||
{
|
||||
if (GetIntervalTicks(GUIDE_SHAKE_INTERVAL, 0)) game_shake_screen(GUIDE_SHAKE_FRAMES);
|
||||
if (GetIntervalTicks(GUIDE_GIB_INTERVAL, 0))
|
||||
{
|
||||
Vector offset = vector_scale(guideSpot(GUIDE_REACH), 1 / GUIDE_PERSPECTIVE);
|
||||
gibs_spawn({.color = splatColor,
|
||||
.position = vector_add(pos, offset),
|
||||
.spawner = this,
|
||||
.spread = GUIDE_GIB_SPREAD,
|
||||
.amount = (int)(Random() & GUIDE_GIB_MASK) + GUIDE_GIB_MIN,
|
||||
.gibFlags = GUIDE_GIB_FLAGS});
|
||||
blood_explosion_spawn((int)(Random() & 1) + GUIDE_EXPLOSION_MIN, pos, offset, splatColor, {});
|
||||
PlaySound(SOUND_DEATH_BURST_HUGE, random_unit() * GUIDE_VOLUME_SPAN + GUIDE_VOLUME, 2, false, 1);
|
||||
}
|
||||
}
|
||||
else if (isBleeding && (Random() & 1) == 0)
|
||||
{
|
||||
if (g_game->playerManager.GetGFuelCount() > 0)
|
||||
reconstruction_missing("Entity_NPC::update_blood_guide_gibs 006d7520: G-Fuel's explosions");
|
||||
|
||||
auto* poof = static_cast<Entity_Effect*>(g_game->Spawn(
|
||||
{.position = pos, .spawner = this, .type = ENTITY_EFFECT, .variant = EFFECT_POOF04, .seed = Random()}));
|
||||
poof->renderDepthOffset = GUIDE_POOF_DEPTH;
|
||||
poof->sprite.offset = guideSpot(GUIDE_REACH);
|
||||
poof->sprite.rotation = (float)(Random() & GUIDE_POOF_TURNS) * GUIDE_POOF_TURN;
|
||||
float flipY = (Random() & 1) == 0 ? 1.0f : -1.0f;
|
||||
float flipX = (Random() & 1) == 0 ? 1.0f : -1.0f;
|
||||
float shrink = 1 - random_unit() * GUIDE_POOF_SHRINK;
|
||||
poof->sprite.scale = vector_make(shrink * flipX, shrink * flipY);
|
||||
poof->SetColor(splatColor, -1, COLOR_PRIORITY_DEFAULT, false, true);
|
||||
PlaySound(SOUND_DEATH_BURST_GUIDED, random_unit() * GUIDE_VOLUME_SPAN + GUIDE_VOLUME, 2, false, 1);
|
||||
}
|
||||
|
||||
if (type == ENTITY_SATAN && sprite.IsEventTriggered("BloodStart"))
|
||||
{
|
||||
for (int i = 0; i < GUIDE_GUSHES; i++)
|
||||
{
|
||||
auto* gush = static_cast<Entity_Effect*>(g_game->Spawn({.position = pos,
|
||||
.spawner = this,
|
||||
.type = ENTITY_EFFECT,
|
||||
.variant = EFFECT_BLOOD_GUSH,
|
||||
.seed = Random()}));
|
||||
gush->FollowParent(this);
|
||||
float angle = random_unit() * RANDOM_HALF_TURN;
|
||||
angle += angle;
|
||||
float distance = random_unit();
|
||||
gush->sprite.offset =
|
||||
vector_make(std::cos(angle) * distance * guide.scale.x * GUIDE_GUSH_REACH + guide.pos.x,
|
||||
distance * std::sin(angle) * guide.scale.y * GUIDE_GUSH_REACH + guide.pos.y);
|
||||
gush->renderDepthOffset = (Random() & 1) == 0 ? GUIDE_GUSH_DEPTH : -GUIDE_GUSH_DEPTH;
|
||||
gush->timeout = -1;
|
||||
gush->lifespan = -1;
|
||||
if ((Random() & 1) == 0) gush->sprite.isFlipX = true;
|
||||
gush->SetColor(splatColor, -1, COLOR_PRIORITY_DEFAULT, false, true);
|
||||
}
|
||||
}
|
||||
|
||||
if (!sprite.IsEventTriggered("BloodStop") && !sprite.IsEventTriggered("Explosion")) return;
|
||||
for (Entity* entity : std::vector<Entity*>(g_game->room->entityList.updateEL))
|
||||
if (entity && entity->type == ENTITY_EFFECT && entity->variant == EFFECT_BLOOD_GUSH && entity->parent == this)
|
||||
entity->Remove();
|
||||
}
|
||||
|
||||
// The blood explosion size a dying boss bursts in.
|
||||
static int explosion_size_get(Entity_NPC& npc)
|
||||
{
|
||||
int size = npc.size < EXPLOSION_SMALL_SIZE ? EXPLOSION_SMALL : EXPLOSION_MEDIUM;
|
||||
if (npc.size >= EXPLOSION_LARGE_SIZE || npc.shadowSize > EXPLOSION_LARGE_SHADOW) size = EXPLOSION_LARGE;
|
||||
if (npc.size >= EXPLOSION_HUGE_SIZE || npc.shadowSize > EXPLOSION_HUGE_SHADOW) size = EXPLOSION_HUGE;
|
||||
return size;
|
||||
}
|
||||
|
||||
// Part of 006c4b30: a death animation with a blood guide bleeds along it (update_blood_guide_gibs), and its Explosion
|
||||
// event bursts the boss: a blood explosion at the guide sized to it (with a large one for a boss with large gibs, but
|
||||
// Pin's tail), its shadow gone and its gibs thrown. G-Fuel's explosions, Mom's Heart's shots and The Pile's chunks are
|
||||
// not reconstructed yet.
|
||||
void npc_blood_guide_update(Entity_NPC& npc, const NullFrame& bloodGuide)
|
||||
{
|
||||
npc.update_blood_guide_gibs(bloodGuide);
|
||||
|
||||
bool isBabyPlumGfuel = npc.type == ENTITY_BABY_PLUM && (npc.initSeed & GFUEL_SEED_MASK) == GFUEL_BABY_PLUM_SEED;
|
||||
bool isGfuelDelayed = !npc.HasEntityFlags(FLAG_NO_BLOOD_SPLASH) &&
|
||||
(g_game->playerManager.GetGFuelCount() > GFUEL_DELAYED_COUNT || isBabyPlumGfuel) &&
|
||||
((npc.initSeed & 1) == 0 || npc.type == ENTITY_BABY_PLUM);
|
||||
if (isGfuelDelayed)
|
||||
{
|
||||
float frame = npc.sprite.animState.animFrame;
|
||||
float next = (float)npc.sprite.animState.NextEventTrigger("Explosion");
|
||||
float step = npc.sprite.playbackSpeed * npc.speedMultiplier;
|
||||
if (frame + GFUEL_EARLY_FRAMES <= next && next < frame + step + GFUEL_EARLY_FRAMES)
|
||||
reconstruction_missing("Entity_NPC::Update 006c4b30: G-Fuel's delayed explosion");
|
||||
}
|
||||
|
||||
if (!npc.sprite.IsEventTriggered("Explosion")) return;
|
||||
if (!npc.HasEntityFlags(FLAG_NO_BLOOD_SPLASH))
|
||||
{
|
||||
if (g_game->playerManager.GetGFuelCount() > 0)
|
||||
reconstruction_missing("Entity_NPC::Update 006c4b30: G-Fuel's death explosions");
|
||||
|
||||
Entity* explosion = g_game->Spawn({.position = npc.pos,
|
||||
.subType = explosion_size_get(npc),
|
||||
.type = ENTITY_EFFECT,
|
||||
.variant = EFFECT_BLOOD_EXPLOSION,
|
||||
.seed = Random()});
|
||||
explosion->sprite.offset = bloodGuide.pos;
|
||||
explosion->SetColor(npc.splatColor, -1, COLOR_PRIORITY_DEFAULT, false, true);
|
||||
if (npc.IsBoss() && (npc.config->gibFlags & GIB_FLAG_LARGE) && (npc.type != ENTITY_PIN || !npc.parent))
|
||||
{
|
||||
Entity* large = g_game->Spawn({.position = npc.pos,
|
||||
.spawner = &npc,
|
||||
.type = ENTITY_EFFECT,
|
||||
.variant = EFFECT_LARGE_BLOOD_EXPLOSION,
|
||||
.seed = Random()});
|
||||
large->SetColor(npc.splatColor, -1, COLOR_PRIORITY_DEFAULT, false, true);
|
||||
}
|
||||
}
|
||||
if (npc.type == ENTITY_MOMS_HEART) reconstruction_missing("Entity_NPC::Update 006c4b30: Mom's Heart's death shots");
|
||||
if (npc.type == ENTITY_POLYCEPHALUS && npc.variant == VARIANT_THE_PILE)
|
||||
reconstruction_missing("Entity_NPC::Update 006c4b30: The Pile's chunks");
|
||||
npc.shadowSize = 0;
|
||||
npc.BloodExplode();
|
||||
}
|
||||
Reference in new issue
Block a user