Curation round 26 (code only): the Siren, Singe's body and Butt Slicker, DebugRenderer and the hitsphere and player-info debug views, saved key bindings for menu actions, Mega Blast, 4.5 Volt, C Section, Mom's Bracelet, Book of the Dead and Everything Jar, and a parity audit of the player, pickups, level, familiars and Entity_NPC fixing about 90 differences; 005832c0 and 0058a010 renamed
This commit is contained in:
1 parent
5c89798773
commit
cc77c923e8
112 files changed
+4358
-1864
No files matched your search
@@ -467,9 +467,9 @@ void Entity_Player::spawn_lil_clot_familiars()
|
||||
}
|
||||
|
||||
// The trinket part of 006e8ae0: a player not holding an item up who can take the trinket sees its name, drops the
|
||||
// trinket it swaps out (or the Tick a Match Stick or Lighter burns), and holds the new one up, golden or not, until it
|
||||
// is added. Whether it was taken.
|
||||
bool trinket_collect(Entity_Pickup& pickup, Entity_Player& player)
|
||||
// trinket it swaps out (or the Tick a Match Stick or Lighter burns) as dropped, and holds the new one up, golden or not,
|
||||
// until it is added. Whether it was taken.
|
||||
bool trinket_collect(Entity_Pickup& pickup, Entity_Player& player, Entity_Pickup*& dropped)
|
||||
{
|
||||
int id = pickup.subtype;
|
||||
if (player.IsHoldingItem() || player.parent || !player.TryHoldTrinket(id)) return false;
|
||||
@@ -481,7 +481,7 @@ bool trinket_collect(Entity_Pickup& pickup, Entity_Player& player)
|
||||
[](uint32_t held) { return (held & TRINKET_ID_MASK) == TRINKET_TICK; });
|
||||
bool isTickBurnt = isTickHeld && is_tick_burner(id);
|
||||
bool isFull = player.trinkets[0] != 0 && (slots < 2 || player.trinkets[1] != 0);
|
||||
if (isFull || isTickBurnt) player.DropTrinket(player.pos, isTickBurnt);
|
||||
if (isFull || isTickBurnt) dropped = player.DropTrinket(player.pos, isTickBurnt);
|
||||
|
||||
uint32_t flags = pickup.isTouched ? QUEUED_TOUCHED : 0;
|
||||
if (id & TRINKET_GOLDEN_FLAG) flags |= QUEUED_GOLDEN;
|
||||
|
||||
Reference in new issue
Block a user