fun: blood

This commit is contained in:
cha0s 2019-11-12 00:53:16 -06:00
parent 9cce07e10e
commit 6d5cb6cf74

View File

@ -182,8 +182,8 @@ export class Vulnerable extends Trait {
force: [0, 3], force: [0, 3],
velocity: { velocity: {
angle: { angle: {
min: 316, min: 338.5,
max: 405, max: 382.5,
}, },
magnitude: { magnitude: {
min: 0.7, min: 0.7,
@ -273,8 +273,8 @@ export class Vulnerable extends Trait {
}, },
}); });
this.entity.emitParticle('blood', { this.entity.emitParticle('blood', {
rate: 0.0125, rate: 0.025,
count: 10, count: 8 * Math.log10(amount),
}); });
}, },