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

+55
View File
@@ -0,0 +1,55 @@
#pragma once
#include "classes.h"
class Room;
class Game;
// What a shop slot sells (RoomDescriptor::shopItemSlots), by the original's numbers.
enum ShopWare : int16_t
{
SHOP_WARE_HEART,
SHOP_WARE_BOMB,
SHOP_WARE_PILL,
SHOP_WARE_KEY,
SHOP_WARE_SOUL_HEART,
SHOP_WARE_BATTERY,
SHOP_WARE_CARD,
SHOP_WARE_GRAB_BAG,
SHOP_WARE_ITEM,
SHOP_WARE_BOSS_ITEM,
SHOP_WARE_TREASURE_ITEM,
SHOP_WARE_TRINKET,
SHOP_WARE_DEVIL_ITEM,
SHOP_WARE_ANGEL_ITEM,
SHOP_WARE_SECRET_ITEM,
SHOP_WARE_RARE_HEART,
SHOP_WARE_RUNE,
SHOP_WARE_SHOP_ITEM,
SHOP_WARE_BABY_SHOP_ITEM,
SHOP_WARE_ETERNAL_HEART,
SHOP_WARE_CREDIT_CARD,
SHOP_WARE_SOUL_CARD
};
// A shop ware being priced or rolled: its kind, the shop slot it sells from (-1 for none, -2 for never discounted),
// the seed it rolls from and its price.
struct ShopOffer
{
int price = 0;
int shopItemId = -1;
int subType = 0;
int variant = 0;
uint32_t seed = 0;
};
int room_shop_ware_roll(Room& room, ShopOffer& offer);
void room_shop_slots_init(Room& room);
void shop_offer_pick(Room& room, ShopOffer& offer);
int room_shop_item_price(Room& room, const ShopOffer& offer, Entity_Player* player);
int room_shop_discount(Room& room, int shopItemId, int price, Entity_Player* player);
void room_restock_trigger(Room& room, int gridIndex, int shopItemId);
void room_restock_partial(Room& room);
void game_random_room_move(Game& game, bool isErrorRoom, uint32_t seed, Entity_Player* player);
void npc_shopkeeper_update(Entity_NPC& npc);
Entity_Player* player_nearest_find(const Vector& position);