Curation round 19: EvaluateItems and charged shots, actives split into Rebirth and Repentance dispatches, cards and runes, champions and death effects, War, Death, Uriel and the boss sweep, Delirium, T. Lilith's Gello and familiars, effects, price sprites and the devil room
This commit is contained in:
1 parent
9dfc09518c
commit
ee863e70e6
105 files changed
+14201
-2331
No files matched your search
+4
-39
@@ -85,7 +85,6 @@ constexpr int SPAWNER_CAGE = 265;
|
||||
constexpr int SPAWNER_FORSAKEN = 403;
|
||||
constexpr int SPAWNER_MEGA_SATAN = 274;
|
||||
constexpr int SPAWNER_DOGMA = 950;
|
||||
constexpr int SPAWNER_MONSTRO_2 = 43;
|
||||
constexpr int SPAWNER_MOMS_HEART_LASER = 49;
|
||||
constexpr int SPAWNER_EYE = 60;
|
||||
constexpr int SPAWNER_PIN = 62;
|
||||
@@ -124,45 +123,11 @@ static float random_fraction()
|
||||
return random_unit();
|
||||
}
|
||||
|
||||
// A colorize from a hue in degrees, a saturation and a value at a strength, as hsv_to_rgb makes the color.
|
||||
// A colorize from a hue in degrees, a saturation and a value at a strength (hsv_to_rgb).
|
||||
static ColorMod colorize_from_hue(float hue, float saturation, float value, float strength)
|
||||
{
|
||||
float chroma = saturation * value;
|
||||
float second = (1 - std::abs(std::fmod(hue / 60, 2.0f) - 1)) * chroma;
|
||||
float red = 0;
|
||||
float green = 0;
|
||||
float blue = 0;
|
||||
switch ((int)(hue / 60) % 6)
|
||||
{
|
||||
case 0:
|
||||
red = chroma;
|
||||
green = second;
|
||||
break;
|
||||
case 1:
|
||||
red = second;
|
||||
green = chroma;
|
||||
break;
|
||||
case 2:
|
||||
green = chroma;
|
||||
blue = second;
|
||||
break;
|
||||
case 3:
|
||||
green = second;
|
||||
blue = chroma;
|
||||
break;
|
||||
case 4:
|
||||
red = second;
|
||||
blue = chroma;
|
||||
break;
|
||||
case 5:
|
||||
red = chroma;
|
||||
blue = second;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
float base = value - chroma;
|
||||
return {{1, 1, 1, 1}, {(red + base) * strength, (green + base) * strength, (blue + base) * strength, 1}, {0, 0, 0}};
|
||||
KColor color = hsv_to_rgb(hue, saturation, value, 1);
|
||||
return {{1, 1, 1, 1}, {color._red * strength, color._green * strength, color._blue * strength, 1}, {0, 0, 0}};
|
||||
}
|
||||
|
||||
// The player a laser's tears come from: its spawner, or the player of a familiar that fires the player's lasers.
|
||||
@@ -468,7 +433,7 @@ void Entity_Laser::PlayInitSound()
|
||||
case LASER_BRIM_TECH:
|
||||
if (!spawnerEntity) return laser_sound_play(SOUND_BLOOD_LASER, {});
|
||||
if (spawner == SPAWNER_EYE) return laser_sound_play(SOUND_REDLIGHTNING_ZAP_STRONG, {});
|
||||
if (spawner == SPAWNER_MONSTRO_2 || spawner == SPAWNER_MOMS_HEART_LASER)
|
||||
if (spawner == ENTITY_MONSTRO2 || spawner == SPAWNER_MOMS_HEART_LASER)
|
||||
return laser_sound_play(SOUND_BLOOD_LASER_LARGE, {});
|
||||
if (spawner == ENTITY_SATAN) return laser_sound_play(SOUND_SATAN_HAND_LASER, {});
|
||||
if (spawner == SPAWNER_FORSAKEN) return laser_sound_play(SOUND_FORSAKEN_LASER, {.loop = SOUND_LOOP});
|
||||
|
||||
Reference in new issue
Block a user