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
@@ -16,21 +16,14 @@ constexpr float DEGREES_TO_RADIANS = 0.017453292f;
|
||||
constexpr float DEGREES_PER_RADIAN = 57.295776f;
|
||||
constexpr float DUNGEON_TEAR_HEIGHT_MAX = -5.1f;
|
||||
constexpr float DUNGEON_TEAR_OFFSET_Y = -18;
|
||||
constexpr float EXPLOSIVE_TEAR_SCALE = 0.5f;
|
||||
constexpr float INHERIT_SCALE = 0.6f;
|
||||
constexpr float LANE_HALF_ARC = 90;
|
||||
constexpr float LANE_SPREAD_X = 1.15f;
|
||||
constexpr float LANE_SPREAD_Y = 0.8f;
|
||||
constexpr float QUADSPLIT_TEAR_SCALE = 1.2f;
|
||||
constexpr float RANDOM_UNIT = 2.3283064e-10f;
|
||||
constexpr float SPREAD_CLAMP = 90;
|
||||
constexpr float TEAR_FALL_SPREAD = 0.2f;
|
||||
constexpr float TEAR_SCALE_DAMAGE = 0.01f;
|
||||
constexpr float TEAR_SCALE_MIN = 0.01f;
|
||||
constexpr float TEAR_SCALE_ROOT = 0.23f;
|
||||
constexpr float TEAR_SCALE_SIZE = 0.55f;
|
||||
constexpr float HOLOGRAM_TEAR_ALPHA = 0.2f;
|
||||
constexpr int TINT_ALPHA = 3;
|
||||
constexpr float WIZ_EYE_ANGLE = 45;
|
||||
// How much each extra tear widens a volley's tears and lasers, by what adds it, and how the other weapons follow.
|
||||
constexpr float SPREAD_ITEM_LASER = 2.333f;
|
||||
@@ -61,7 +54,6 @@ constexpr int DARK_ARTS_STEPS = 16;
|
||||
constexpr float DARK_ARTS_STEP = 0.0625f;
|
||||
constexpr int MAX_TEARS = 16;
|
||||
constexpr int MAX_EYES = 8;
|
||||
constexpr int RED_STEW_BLOOD_FRAMES = 90;
|
||||
constexpr int BABY_TECHNOLOGY = 16;
|
||||
constexpr int BABY_TWENTY_TWENTY = 65;
|
||||
constexpr int PLAYERFORM_CONJOINED = 7;
|
||||
@@ -70,34 +62,18 @@ constexpr int TRANSFORMATION_COUNT = 3;
|
||||
constexpr int TEAR_COLOR_PRIORITY = 255;
|
||||
|
||||
constexpr int COLLECTIBLE_20_20 = 245;
|
||||
constexpr int COLLECTIBLE_ALMOND_MILK = 561;
|
||||
constexpr int COLLECTIBLE_ANTI_GRAVITY = 222;
|
||||
constexpr int COLLECTIBLE_BRIMSTONE_WEAPON = 118;
|
||||
constexpr int COLLECTIBLE_C_SECTION = 678;
|
||||
constexpr int COLLECTIBLE_CHOCOLATE_MILK = 69;
|
||||
constexpr int COLLECTIBLE_CURSED_EYE_WEAPON = 316;
|
||||
constexpr int COLLECTIBLE_DEAD_TOOTH = 446;
|
||||
constexpr int COLLECTIBLE_DR_FETUS = 52;
|
||||
constexpr int COLLECTIBLE_EPIC_FETUS = 168;
|
||||
constexpr int COLLECTIBLE_EVIL_EYE = 410;
|
||||
constexpr int COLLECTIBLE_EYE_SORE = 558;
|
||||
constexpr int COLLECTIBLE_INNER_EYE = 2;
|
||||
constexpr int COLLECTIBLE_LARGE_ZIT = 502;
|
||||
constexpr int COLLECTIBLE_LEAD_PENCIL = 444;
|
||||
constexpr int COLLECTIBLE_LOKIS_HORNS = 87;
|
||||
constexpr int COLLECTIBLE_LUDOVICO = 329;
|
||||
constexpr int COLLECTIBLE_MARKED = 394;
|
||||
constexpr int COLLECTIBLE_MOMS_EYE = 55;
|
||||
constexpr int COLLECTIBLE_MOMS_KNIFE = 114;
|
||||
constexpr int COLLECTIBLE_MONSTROS_LUNG = 229;
|
||||
constexpr int COLLECTIBLE_NEPTUNUS = 597;
|
||||
constexpr int COLLECTIBLE_STAPLER = 708;
|
||||
constexpr int COLLECTIBLE_STYE = 731;
|
||||
constexpr int COLLECTIBLE_TECH_X = 395;
|
||||
constexpr int COLLECTIBLE_TECHNOLOGY = 68;
|
||||
constexpr int COLLECTIBLE_THE_WIZ = 358;
|
||||
constexpr int COLLECTIBLE_TRACTOR_BEAM = 397;
|
||||
constexpr int NULLITEM_REVERSE_HANGED_MAN = 65;
|
||||
constexpr int NULLITEM_DARK_ARTS = 111;
|
||||
|
||||
// The items GetWeaponModifiers turns into modifier bits, in the order it asks.
|
||||
@@ -377,47 +353,6 @@ PosVel Entity_Player::GetMultiShotPositionVelocity(int loopIndex, WeaponType wea
|
||||
return shot;
|
||||
}
|
||||
|
||||
// 007bf6c0 What a tear from the player is fired with: its stats, flags and color, the eye it leaves from, and a scale
|
||||
// from its damage. Only a plain player's tears are written yet: items, effects, familiars and other characters stop the
|
||||
// game until reached.
|
||||
TearParams Entity_Player::GetTearHitParams(WeaponType weaponType, float damageScale, int displacement, Entity* source)
|
||||
{
|
||||
if ((source && source->IsFamiliar()) || !is_tear_hit_plain() || redStewBonusDuration > RED_STEW_BLOOD_FRAMES)
|
||||
reconstruction_missing("Entity_Player::GetTearHitParams 007bf6c0 (items, effects and familiars)");
|
||||
|
||||
TearParams params;
|
||||
params.tearDamage = damageScale * damage;
|
||||
params.tearHeight = tearHeight;
|
||||
params.tearFlags = tearFlags;
|
||||
params.tearColor = tearColor;
|
||||
float baseDamage = params.tearDamage;
|
||||
float scaleMultiplier = 1;
|
||||
|
||||
bool isOneEyed = playerType == PLAYER_CAIN || HasCollectible(COLLECTIBLE_LEAD_PENCIL) ||
|
||||
!weaponTypes[WEAPON_TEARS] || HasCollectible(COLLECTIBLE_CURSED_EYE_WEAPON) ||
|
||||
HasCollectible(COLLECTIBLE_STAPLER) || playerType == PLAYER_CAIN_B;
|
||||
bool isLeftEye = displacement < 0 || (isOneEyed && (Random() & 1) == 0);
|
||||
params.tearDisplacement = isLeftEye ? -1 : (displacement >= 1 ? 1 : 0);
|
||||
|
||||
if (weaponType == WEAPON_TEARS || weaponType == WEAPON_FETUS)
|
||||
{
|
||||
bool isLudovico = params.tearFlags.test(TEAR_LUDOVICO);
|
||||
if (params.tearFlags.test(TEAR_EXPLOSIVE) && !isLudovico) scaleMultiplier = EXPLOSIVE_TEAR_SCALE;
|
||||
if (params.tearFlags.test(TEAR_QUADSPLIT) && !isLudovico) params.tearScale *= QUADSPLIT_TEAR_SCALE;
|
||||
if ((playerType == PLAYER_THEFORGOTTEN || playerType == PLAYER_THEFORGOTTEN_B) &&
|
||||
params.tearVariant != TEAR_SCHYTHE)
|
||||
params.tearVariant = TEAR_BONE;
|
||||
if (weaponType == WEAPON_FETUS) params.tearVariant = TEAR_FETUS;
|
||||
}
|
||||
|
||||
float size = params.tearScale > 1 ? std::log(params.tearScale) + 1 : params.tearScale;
|
||||
params.tearScale =
|
||||
(std::sqrt(baseDamage) * TEAR_SCALE_ROOT + size * TEAR_SCALE_SIZE + baseDamage * TEAR_SCALE_DAMAGE) *
|
||||
scaleMultiplier;
|
||||
if (IsHologram()) params.tearColor._tint[TINT_ALPHA] = HOLOGRAM_TEAR_ALPHA;
|
||||
return params;
|
||||
}
|
||||
|
||||
// 00790af0 Fires a tear with the player's hit params from a shot (from the player's tear offset when it shoots it
|
||||
// itself): its height, fall, scale, color, range, Dead Eye's (or Dark Arts') glow and an index, updated once and moved
|
||||
// back a frame.
|
||||
|
||||
Reference in new issue
Block a user