negative mass field
plasma field does 20% more damage, but can no longer block bremsstrahlung radiation only apply to the harmonic field, and does a bit less damage negative mass field moves faster horizontally can't block can hold mroe massive blocks, but can't throw them fast takes 0.5 dmg while active
This commit is contained in:
11
js/mobs.js
11
js/mobs.js
@@ -79,13 +79,13 @@ const mobs = {
|
||||
})
|
||||
}
|
||||
},
|
||||
statusStun(who, cycles = 120) {
|
||||
statusStun(who, cycles = 180) {
|
||||
if (!who.shield && !who.isShielded) {
|
||||
Matter.Body.setVelocity(who, {
|
||||
x: who.velocity.x * 0.8,
|
||||
y: who.velocity.y * 0.8
|
||||
x: who.velocity.x * 0.5,
|
||||
y: who.velocity.y * 0.5
|
||||
});
|
||||
Matter.Body.setAngularVelocity(who, who.angularVelocity * 0.8);
|
||||
Matter.Body.setAngularVelocity(who, who.angularVelocity * 0.5);
|
||||
//remove other "stun" effects on this mob
|
||||
let i = who.status.length
|
||||
while (i--) {
|
||||
@@ -98,8 +98,7 @@ const mobs = {
|
||||
x: who.position.x + 100 * (Math.random() - 0.5),
|
||||
y: who.position.y + 100 * (Math.random() - 0.5)
|
||||
}
|
||||
who.force.y += who.mass * 0.001 //extra gravity
|
||||
|
||||
if (who.velocity.y < 2) who.force.y += who.mass * 0.0005 //extra gravity
|
||||
ctx.beginPath();
|
||||
ctx.moveTo(who.vertices[0].x, who.vertices[0].y);
|
||||
for (let j = 1, len = who.vertices.length; j < len; ++j) {
|
||||
|
||||
Reference in New Issue
Block a user