wavelets
harm immunity effects now apply to explosion self damage tech: CPT grenades no longer harm you tech: least action - wavelets are slower and do more damage tech: amplitude - wavelets are taller and do more damage tech: wavelength - wavelets are longer and do more damage
This commit is contained in:
@@ -535,6 +535,9 @@ const m = {
|
||||
},
|
||||
rewind(steps) { // m.rewind(Math.floor(Math.min(599, 137 * m.energy)))
|
||||
if (tech.isRewindGrenade) {
|
||||
const immunityCycle = m.cycle + 60
|
||||
if (m.immuneCycle < immunityCycle) m.immuneCycle = immunityCycle; //player is immune to damage until after grenades might explode...
|
||||
|
||||
for (let i = 1, len = Math.floor(2 + steps / 40); i < len; i++) {
|
||||
b.grenade(Vector.add(m.pos, { x: 10 * (Math.random() - 0.5), y: 10 * (Math.random() - 0.5) }), -i * Math.PI / len) //fire different angles for each grenade
|
||||
const who = bullet[bullet.length - 1]
|
||||
|
||||
Reference in New Issue
Block a user