harpoon tech

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
This commit is contained in:
landgreen
2021-09-12 15:34:29 -07:00
parent f7cd48c3ff
commit f719c8edb9
9 changed files with 174 additions and 103 deletions

View File

@@ -194,6 +194,7 @@ function collisionChecks(event) {
if (v > 9) {
let dmg = 0.075 * b.dmgScale * v * obj.mass * (tech.throwChargeRate) * (tech.isBlockHarm ? 2.5 : 1) * (tech.isMobBlockFling ? 2.5 : 1) * (tech.isBlockRestitution ? 2.5 : 1);
if (mob[k].isShielded) dmg *= 0.7
// console.log(dmg)
mob[k].damage(dmg, true);
if (tech.isBlockPowerUps && !mob[k].alive && mob[k].isDropPowerUp && m.throwCycle > m.cycle) {
let type = tech.isEnergyNoAmmo ? "heal" : "ammo"