tungsten carbide

removed tech: supersaturation - 50 max health
tech: tungsten carbide - gain 100 max health, but take falling damage

supercapacitor renamed Maxwell's demon
  energy above your max decays 92% slower. add 16 junk tech
  (was 70% with no junk tech)

mine synthesis renamed booby trap
  spawns a mine when ever you pick up a power up, add 9 junk tech
This commit is contained in:
landgreen
2021-06-04 06:38:17 -07:00
parent 005436a177
commit b307a50a72
6 changed files with 60 additions and 75 deletions

View File

@@ -207,27 +207,11 @@ const m = {
m.crouch = true;
m.yOffGoal = m.yOffWhen.crouch;
if ((playerHead.position.y - player.position.y) < 0) {
Matter.Body.setPosition(playerHead, {
x: player.position.x,
y: player.position.y + 9.1740767
})
// Matter.Body.translate(playerHead, {
// x: 0,
// y: 40
// });
}
// playerHead.collisionFilter.group = -1
// playerHead.collisionFilter.category = 0
// playerHead.collisionFilter.mask = -1
// playerHead.isSensor = true; //works, but has a 2 second lag...
// collisionFilter: {
// group: 0,
// category: cat.player,
// mask: cat.body | cat.map | cat.mob | cat.mobBullet | cat.mobShield
// },
}
},
undoCrouch() {
@@ -502,7 +486,7 @@ const m = {
},
baseHealth: 1,
setMaxHealth() {
m.maxHealth = m.baseHealth + tech.bonusHealth + tech.armorFromPowerUps
m.maxHealth = m.baseHealth + tech.armorFromPowerUps + tech.isFallingDamage //+ tech.bonusHealth
document.getElementById("health-bg").style.width = `${Math.floor(300*m.maxHealth)}px`
simulation.makeTextLog(`<span class='color-var'>m</span>.<span class='color-h'>maxHealth</span> <span class='color-symbol'>=</span> ${m.maxHealth.toFixed(2)}`)
if (m.health > m.maxHealth) m.health = m.maxHealth;