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
+18
-3
@@ -1,5 +1,6 @@
|
||||
#include "entity_slot.h"
|
||||
#include "entity_config.h"
|
||||
#include "entity_pickup.h"
|
||||
#include "game.h"
|
||||
#include "log.h"
|
||||
#include "manager.h"
|
||||
@@ -53,6 +54,8 @@ constexpr float BLOOD_MACHINE_OFFSET_X = -5;
|
||||
constexpr float MACHINE_WIDTH = 1.5f;
|
||||
constexpr float SHELL_GAME_WIDTH = 3;
|
||||
constexpr float MACHINE_DEPTH = 0.75f;
|
||||
constexpr int HELL_GAME_PRIZE_LAYER = 7;
|
||||
constexpr int CRANE_GAME_PRIZE_LAYER = 2;
|
||||
|
||||
// Whether the run counts toward achievements (Game::AchievementUnlocksDisallowed 00705080, which Game does not declare
|
||||
// yet): not on a custom seed, a seed or mod that blocks them, or a rerun.
|
||||
@@ -216,8 +219,20 @@ void Entity_Slot::spawn_break_drops()
|
||||
reconstruction_missing("Entity_Slot::spawn_break_drops 00663aa0");
|
||||
}
|
||||
|
||||
// 00665500
|
||||
void Entity_Slot::SetPrizeType(int)
|
||||
// 00665500 Sets the collectible a slot pays out, shown on the Hell Game's prize layer or the Crane Game's glass (a
|
||||
// question mark under Curse of the Blind).
|
||||
void Entity_Slot::SetPrizeType(int collectibleId)
|
||||
{
|
||||
reconstruction_missing("Entity_Slot::SetPrizeType 00665500");
|
||||
prizeCollectible = collectibleId;
|
||||
bool isBlind = g_game->GetCurses() & CURSE_OF_BLIND;
|
||||
if (variant == SLOT_HELL_GAME)
|
||||
{
|
||||
Entity_Pickup::load_collectible_gfx(prizeAnm2, HELL_GAME_PRIZE_LAYER, prizeCollectible, dropRNG._seed, isBlind);
|
||||
prizeAnm2.LoadGraphics();
|
||||
}
|
||||
else if (variant == SLOT_CRANE_GAME)
|
||||
{
|
||||
Entity_Pickup::load_collectible_gfx(sprite, CRANE_GAME_PRIZE_LAYER, prizeCollectible, dropRNG._seed, isBlind);
|
||||
sprite.LoadGraphics();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user