restitution doesn't work with pilot wave
pilot wave energy is back to it's old energy settings tech: restitution - now only triggers power ups from blocks thrown by the player (this makes pilot wave and naturally falling blocks not spawn power ups. flywheel will work if a block was thrown in the last 3 seconds) standing wave harmonic has reduced blocking recoil
This commit is contained in:
@@ -190,7 +190,7 @@ function collisionChecks(event) {
|
||||
let dmg = 0.075 * b.dmgScale * v * obj.mass * tech.throwChargeRate;
|
||||
if (mob[k].isShielded) dmg *= 0.6
|
||||
mob[k].damage(dmg, true);
|
||||
if (tech.isBlockPowerUps && !mob[k].alive && mob[k].isDropPowerUp) {
|
||||
if (tech.isBlockPowerUps && !mob[k].alive && mob[k].isDropPowerUp && m.throwCycle > m.cycle) {
|
||||
let type = tech.isEnergyNoAmmo ? "heal" : "ammo"
|
||||
if (Math.random() < 0.4) {
|
||||
type = "heal"
|
||||
|
||||
Reference in New Issue
Block a user