Curation round 11: effects, room clears, items, Continue, bombs, active items, the boss and Basement II
This commit is contained in:
1 parent
d8385e6c64
commit
698eeb74e9
74 files changed
+13965
-2078
No files matched your search
+2
-13
@@ -245,18 +245,6 @@ static Entity_Effect* effect_spawn(int variant, int subType, Vector position, Ve
|
||||
return static_cast<Entity_Effect*>(effect);
|
||||
}
|
||||
|
||||
// Color::__mul: tints multiply, colorizes average (or one takes the other's while it has none), offsets add.
|
||||
static ColorMod color_multiply(ColorMod color, const ColorMod& other)
|
||||
{
|
||||
for (int i = 0; i < 4; i++) color._tint[i] *= other._tint[i];
|
||||
bool isOtherColorized = other._colorize[0] + other._colorize[1] + other._colorize[2] != 0;
|
||||
bool isColorized = color._colorize[0] + color._colorize[1] + color._colorize[2] != 0;
|
||||
for (int i = 0; isOtherColorized && i < 4; i++)
|
||||
color._colorize[i] = isColorized ? (color._colorize[i] + other._colorize[i]) * HALF_F : other._colorize[i];
|
||||
for (int i = 0; i < 3; i++) color._offset[i] += other._offset[i];
|
||||
return color;
|
||||
}
|
||||
|
||||
// A random angle of a full turn, as the bursts draw it.
|
||||
static float random_angle()
|
||||
{
|
||||
@@ -597,7 +585,8 @@ static Entity_Effect* gib_blood_spawn(const GibSpawn& gibs, int kind, uint32_t s
|
||||
}
|
||||
else
|
||||
{
|
||||
ColorMod tinted = color_multiply(gibs.color, POISON_GIB_TINT);
|
||||
ColorMod tinted = gibs.color;
|
||||
color_multiply(tinted, POISON_GIB_TINT);
|
||||
gib->SetColor(kind == 0 ? tinted : gibs.color, -1, COLOR_PRIORITY_TOP, false, true);
|
||||
gib->splatColor = tinted;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user