From a1b062e2a4863196b422673195a4ad8fe2199924 Mon Sep 17 00:00:00 2001 From: landgreen Date: Mon, 13 Sep 2021 05:27:52 -0700 Subject: [PATCH] bug fixes --- .DS_Store | Bin 6148 -> 6148 bytes js/bullet.js | 58 +++++---------------------------------------------- js/spawn.js | 2 +- js/tech.js | 4 ++-- todo.txt | 24 +++++---------------- 5 files changed, 13 insertions(+), 75 deletions(-) diff --git a/.DS_Store b/.DS_Store index 71713619abbaa30f7aa6c0dd40c90b197467bc4a..4f804d16cf7167565d245fd530d9aa4027422bd4 100644 GIT binary patch delta 15 WcmZoMXffEJ#muysf3ptr4G{n*`2^Si delta 15 WcmZoMXffEJ#mux 1) { for (let i = 0; i < tech.missileCount; i++) { setTimeout(() => { - const where = { - x: m.pos.x, - y: m.pos.y - 40 - } - b.missile(where, -Math.PI / 2 + 0.2 * (Math.random() - 0.5) * Math.sqrt(tech.missileCount), -2, Math.sqrt(countReduction) * (tech.missileSize ? 1.5 : 1)) + const where = { x: m.pos.x, y: m.pos.y - 40 } + b.missile(where, -Math.PI / 2 + 0.2 * (Math.random() - 0.5) * Math.sqrt(tech.missileCount), -2, Math.sqrt(countReduction)) bullet[bullet.length - 1].force.x += 0.025 * countReduction * (i - (tech.missileCount - 1) / 2); }, 20 * tech.missileCount * Math.random()); } @@ -4693,51 +4690,6 @@ const b = { // }, i * 50); // } } - - - // if (tech.missileCount) { - // if (m.crouch) { - // for (let i = 0; i < 3; i++) { - // b.missile({ - // x: m.pos.x, - // y: m.pos.y - 40 - // }, -Math.PI / 2 + 0.08 * (1 - i) + 0.3 * (Math.random() - 0.5), 0, 0.6 * (tech.missileSize ? 1.5 : 1)) - // bullet[bullet.length - 1].force.x -= 0.015 * (i - 1); - // } - // } else { - // m.fireCDcycle = m.cycle + 80 * b.fireCDscale; // cool down - // const direction = { - // x: Math.cos(m.angle), - // y: Math.sin(m.angle) - // } - // const push = Vector.mult(Vector.perp(direction), 0.02) - // for (let i = 0; i < 3; i++) { - // b.missile({ - // x: m.pos.x + 40 * direction.x, - // y: m.pos.y + 40 * direction.y - // }, m.angle + 0.06 * (Math.random() - 0.5), 5, 0.7 * (tech.missileSize ? 1.5 : 1)) - // bullet[bullet.length - 1].force.x += push.x * (i - 1); - // bullet[bullet.length - 1].force.y += push.y * (i - 1); - // } - // } - // } else { - // if (m.crouch) { - // m.fireCDcycle = m.cycle + 10 * b.fireCDscale; // cool down - // const off = Math.random() - 0.5 - // b.missile({ - // x: m.pos.x, - // y: m.pos.y - 40 - // }, - // -Math.PI / 2 + 0.15 * off, 0, 0.83 * (tech.missileSize ? 1.5 : 1)) - // bullet[bullet.length - 1].force.x += off * 0.03; - // // bullet[bullet.length - 1].force.y += push.y * (i - 1); - // } else { - // m.fireCDcycle = m.cycle + 55 * b.fireCDscale; // cool down - - // // bullet[bullet.length - 1].force.y += 0.01; //a small push down at first to make it seem like the missile is briefly falling - // } - - // } } }, { name: "grenades", @@ -5068,7 +5020,7 @@ const b = { this.ammo++ //make up for the ammo used up in fire() simulation.updateGunHUD(); } - m.fireCDcycle = m.cycle + 180 //Infinity; // cool down + m.fireCDcycle = m.cycle + 90 //Infinity; // cool down } else { for (let i = 0, len = mob.length; i < len; ++i) { if (mob[i].alive && !mob[i].isBadTarget && Matter.Query.ray(map, m.pos, mob[i].position).length === 0) { @@ -5081,7 +5033,7 @@ const b = { } } b.harpoon(where, closest.target, m.angle, length, true, totalCycles) - m.fireCDcycle = m.cycle + 180 //Infinity; // cool down + m.fireCDcycle = m.cycle + 120 //Infinity; // cool down } const recoil = Vector.mult(Vector.normalise(Vector.sub(where, m.pos)), m.crouch ? 0.015 : 0.035) player.force.x -= recoil.x diff --git a/js/spawn.js b/js/spawn.js index ffe9f41..e298c93 100644 --- a/js/spawn.js +++ b/js/spawn.js @@ -735,7 +735,7 @@ const spawn = { const me = mob[mob.length - 1]; me.isBoss = true; Matter.Body.setDensity(me, 0.002); //normal density even though its a boss - me.damageReduction = 0.05; //extra reduction for a boss, because normal density + me.damageReduction = 0.04; //extra reduction for a boss, because normal density me.frictionAir = 0.01; me.accelMag = 0.0002; me.onDeath = function() { diff --git a/js/tech.js b/js/tech.js index c47c97e..615a17c 100644 --- a/js/tech.js +++ b/js/tech.js @@ -5117,7 +5117,7 @@ frequency: 2, frequencyDefault: 2, allowed() { - return (tech.haveGunCheck("laser") || tech.laserBotCount > 1 || tech.isLaserMine) && tech.laserDamage === 0.15 + return (tech.haveGunCheck("laser") || tech.laserBotCount > 1 || tech.isLaserMine) && tech.laserDamage === 0.16 }, requires: "laser, not free-electron", effect() { @@ -5151,7 +5151,7 @@ }, remove() { tech.laserFieldDrain = 0.002; - tech.laserDamage = 0.16; //used in check on pulse: tech.laserDamage === 0.16 + tech.laserDamage = 0.16; //used in check on pulse and diode: tech.laserDamage === 0.16 tech.laserColor = "#f00" tech.laserColorAlpha = "rgba(255, 0, 0, 0.5)" } diff --git a/todo.txt b/todo.txt index 7be8575..1aacf08 100644 --- a/todo.txt +++ b/todo.txt @@ -1,35 +1,21 @@ ******************************************************** NEXT PATCH ************************************************** -harpoon gun - shaped more like a harpoon - grabs power ups slower, and from the tip of the harpoon - only uses energy on returning - doesn't have thrust if there is no mob target - - tech: reticulum - make one more harpoon if there are mobs nearby that you are facing - I'm letting this stack to 9 even though it's silly cause that is n-gon's style - tech: ceramics now lets both harpoons and needles ignore shields - this was coded poorly so if shield bugs show up it might be from this - tech: fragmentation makes ~15% fewer nails for everything it affects - tech: filament gives 3% length per ammo (was 1%) - also length is capped at 75 ammo because after that it's just annoying - tech: unaaq is longer at low ammo but scales slower at high ammo - -bugs - fixed laser collisions on player head when crouching - returned experiment gun and field circles +harpoon cd on miss fire lowered to 1.5s (was 3s) +bugs fixes ******************************************************** TODO ******************************************************** +Separate actually crouching and forced crouching for gun altfires? "Interstellar Disturbance": Cosmic String applies to mobs who cross the wormhole's path, even after initial wormholing, but at reduced damage and stun time. disable zoom progress when paused gun: harpoon + delay for a not returning harpoon is too long + the return system should just be simple, with no or a very predictable way to lose the harpoon return to player is slower for heavier harpoons - harpoons despawn before they have time to return with filament and lots o ammo harpoon tech holding down fire lets the string extend farther, this can overwrite crouch mode