Curation round 14: console and Lua API, effects, lasers, enemies, eleven bosses, the Depths and Mom, status effects, the playable characters
This commit is contained in:
1 parent
8ae02a8422
commit
6e3da161fc
138 files changed
+16754
-6825
No files matched your search
@@ -1,6 +1,7 @@
|
||||
#include "entity_familiar.h"
|
||||
#include "entity_npc.h"
|
||||
#include "entity_player.h"
|
||||
#include "entity_player_characters.h"
|
||||
#include "game.h"
|
||||
#include "level.h"
|
||||
#include "log.h"
|
||||
@@ -34,8 +35,8 @@ constexpr int SAMSON_B_HIT_CHARGE = 10000;
|
||||
constexpr int BLEED_OUT_HEALTH = 600;
|
||||
|
||||
// The items and trinkets a landed hit sets off, by id, from Infestation's flies to Tonsil and Pinking Shears.
|
||||
constexpr int HIT_COLLECTIBLES[] = {148, 525, 658, 696, 162, 117, 610, 274, 156, 180, 214, 204, 219, 225, 227, 211, 262,
|
||||
301, 303, 392, 157, 695, 186, 371, 407, 412, 448, 452, 560, 675, 702, 502, 513};
|
||||
constexpr int HIT_COLLECTIBLES[] = {148, 525, 658, 696, 162, 610, 274, 156, 180, 214, 204, 219, 225, 227, 211, 262,
|
||||
301, 303, 392, 371, 407, 412, 448, 452, 560, 675, 702, 502, 513};
|
||||
constexpr int HIT_TRINKETS[] = {40, 48, 29, 1, 8, 67, 158, 97, 105, 33, 104, 122};
|
||||
constexpr int CROWN_OF_LIGHT = 415;
|
||||
constexpr int HYPERCOAGULATION_IGNORED = 0x10040000;
|
||||
@@ -323,7 +324,8 @@ static void hearts_remove(Entity_Player& player, int amount, uint64_t damageFlag
|
||||
if (player.goldenHearts < golden) player.BreakGoldenHearts(golden - player.goldenHearts);
|
||||
}
|
||||
|
||||
// The items a landed hit sets off, none written yet, then Tainted Samson's rage. Bleeding out restarts its timer.
|
||||
// The items a landed hit sets off, Eve's Dead Bird and Samson's Bloody Lust the only ones written yet, then Tainted
|
||||
// Samson's rage. Bleeding out restarts its timer.
|
||||
static void hit_items_check(Entity_Player& player, uint64_t damageFlags, bool isPenalized)
|
||||
{
|
||||
bool isItemHit = std::ranges::any_of(HIT_COLLECTIBLES, [&](int item) { return player.HasCollectible(item); }) ||
|
||||
@@ -333,6 +335,7 @@ static void hit_items_check(Entity_Player& player, uint64_t damageFlags, bool is
|
||||
(player.HasCollectible(COLLECTIBLE_HYPERCOAGULATION) && !(damageFlags & HYPERCOAGULATION_IGNORED)) ||
|
||||
std::ranges::any_of(player.activeItems, [](const ActiveItemDesc& active) { return active.item == COLLECTIBLE_LARYNX; });
|
||||
if (isItemHit) reconstruction_missing("Entity_Player::TakeDamage 007729d0 (the items and trinkets a hit sets off)");
|
||||
character_items_hit(player);
|
||||
if (player.playerType == PLAYER_SAMSON_B && (player.redHearts > 0 || player.soulHearts > 0 || player.boneHearts > 0))
|
||||
player.add_samson_berserk_charge(SAMSON_B_HIT_CHARGE);
|
||||
|
||||
|
||||
Reference in new issue
Block a user