replace remaining Shrink usage in non-stage code

This commit is contained in:
Andrei Alexeyev 2020-01-04 00:00:00 +02:00
parent 215cbe7a75
commit cfbc697936
No known key found for this signature in database
GPG key ID: 363707CD4C7FE8A4
3 changed files with 3 additions and 3 deletions

View file

@ -637,7 +637,7 @@ static void spawn_particle_effects(Boss *boss) {
.color = RGBA(shadowcolor->r, shadowcolor->g, shadowcolor->b, 0.0),
.rule = enemy_flare,
.timeout = 180,
.draw_rule = Shrink,
.draw_rule = pdraw_timeout_scale(2, 0.01),
.args = { 0, add_ref(boss), },
.angle = rng_angle(),
);

View file

@ -930,7 +930,7 @@ void player_death(Player *plr) {
.pos = plr->pos,
.rule = linear,
.timeout = 40,
.draw_rule = Shrink,
.draw_rule = pdraw_timeout_scale(2, 0.01),
.args = { vrng_range(R[0], 3, 10) * vrng_dir(R[1]) },
.flags = PFLAG_NOREFLECT,
);

View file

@ -92,7 +92,7 @@ static void trace_laser(Enemy *e, cmplx vel, float damage) {
.pos = col.location,
.rule = linear,
.timeout = vrng_range(R[0], 3, 8),
.draw_rule = Shrink,
.draw_rule = pdraw_timeout_scale(2, 0.01),
.args = { vrng_range(R[1], 2, 8) * vrng_dir(R[2]) },
.flags = PFLAG_NOREFLECT,
.layer = LAYER_PARTICLE_HIGH,