worm hole mods
mod: critical bifurcation - nail gun does 400% more damage if it hits very close to the center of a mob mod: supercritical fission - flechettes explode if they hit very close to the center of a mob mod: transdimensional spores - after wormholes eat blocks, they disturb spores mod: traversable geodesics - your bullets can go through worm holes scrap bots now only last only 30 seconds, but they have a 20% chance to spawn from a kill (was 11%) the difficulty should feel a bit harder after clearing the boss level (a bit more more damage taken, and fewer mod drops)
This commit is contained in:
@@ -173,11 +173,11 @@ function collisionChecks(event) {
|
||||
}
|
||||
//mob + bullet collisions
|
||||
if (obj.classType === "bullet" && obj.speed > obj.minDmgSpeed) {
|
||||
obj.beforeDmg(mob[k]); //some bullets do actions when they hits things, like despawn //forces don't seem to work here
|
||||
let dmg = b.dmgScale * (obj.dmg + 0.15 * obj.mass * Vector.magnitude(Vector.sub(mob[k].velocity, obj.velocity)))
|
||||
if (mod.isCrit && mob[k].isStunned) dmg *= 4
|
||||
mob[k].foundPlayer();
|
||||
mob[k].damage(dmg);
|
||||
obj.onDmg(mob[k]); //some bullets do actions when they hits things, like despawn //forces don't seem to work here
|
||||
game.drawList.push({ //add dmg to draw queue
|
||||
x: pairs[i].activeContacts[0].vertex.x,
|
||||
y: pairs[i].activeContacts[0].vertex.y,
|
||||
|
||||
Reference in New Issue
Block a user