Curation round 28 (code only): float pow, log and exp widened to double like the game, inlined HasTrinket preview handling, explicit RNG argument order, update_effects rebuilt in the original's order, weapon vtable slots, null-frame reads, and a parity audit finishing every boss, every enemy, the level and most rooms, grid entities and weapons; misnamed pill and null-item ids corrected (55 duplicates)
This commit is contained in:
1 parent
e66baf4063
commit
719e5ef04d
157 files changed
+1399
-717
No files matched your search
+2
-3
@@ -104,7 +104,6 @@ constexpr int ONANS_STREAK_BANNED[] = {68, 118, 329, 52, 168, 114, 395, 394, 55,
|
||||
constexpr int PILL_COLORS = 13;
|
||||
constexpr int PILL_GOLD_ODDS = 140;
|
||||
constexpr int PILL_HORSE_ODDS = 70;
|
||||
constexpr int PILL_EFFECT_NONE = -1;
|
||||
// The effect class each shuffled color slot must have, or -1 for any.
|
||||
constexpr int PILL_SLOT_CLASSES[PILL_COLOR_SLOTS - 1] = {3, 3, 3, 3, 2, 1, 0, -1, -1, 3, 2, 1, -1, -1};
|
||||
// PHD's good side of a bad pill (0x00b6a240), and False PHD's bad side of a good one (its jump table at 0x00734c40).
|
||||
@@ -272,7 +271,7 @@ void ItemPool::Init(uint32_t startSeed, std::string_view path)
|
||||
effects.erase(effect);
|
||||
}
|
||||
|
||||
pillEffects[0] = PILL_EFFECT_NONE;
|
||||
pillEffects[0] = PILLEFFECT_NULL;
|
||||
for (auto& card : config.cards)
|
||||
if (card) g_manager->sfxManager.Preload(card->announcerVoice);
|
||||
identifiedPillEffects = {};
|
||||
@@ -894,7 +893,7 @@ static int effect_swap(std::span<const std::pair<int, int>> pairs, int effect)
|
||||
int ItemPool::GetPillEffect(uint32_t pillColor, Entity_Player* player)
|
||||
{
|
||||
int color = (int)(pillColor & PILL_COLOR_MASK);
|
||||
int effect = color < PILL_COLOR_SLOTS ? pillEffects[color] : PILL_EFFECT_NONE;
|
||||
int effect = color < PILL_COLOR_SLOTS ? pillEffects[color] : PILLEFFECT_NULL;
|
||||
bool isFalsePhd = false;
|
||||
|
||||
if (g_game->dailyChallenge.specialDailyId == SPECIAL_DAILY_AUGUST_16) return PILLEFFECT_EXPLOSIVE_DIARRHEA;
|
||||
|
||||
Reference in new issue
Block a user