diff --git a/.DS_Store b/.DS_Store
index 21a921b..108480a 100644
Binary files a/.DS_Store and b/.DS_Store differ
diff --git a/js/level.js b/js/level.js
index dab50e3..dc2b9f8 100644
--- a/js/level.js
+++ b/js/level.js
@@ -108,6 +108,9 @@ const level = {
m.eyeFillColor = m.fieldMeterColor
simulation.makeTextLog(`tech.isFlipFlopOn = true`);
}
+ if (tech.removeMaxHealthOnKill > 0.01) {
+ for (let i = 0; i < 2; i++) powerUps.spawn(level.exit.x + 10 * (Math.random() - 0.5), level.exit.y - 100 + 10 * (Math.random() - 0.5), "tech", false)
+ }
},
custom() {},
customTopLayer() {},
diff --git a/js/mob.js b/js/mob.js
index 613c8a5..397eda6 100644
--- a/js/mob.js
+++ b/js/mob.js
@@ -1140,6 +1140,17 @@ const mobs = {
bullet[bullet.length - 1].endCycle = simulation.cycle + 840 //14 seconds
this.leaveBody = false; // no body since it turned into the bot
}
+ if (tech.removeMaxHealthOnKill) {
+ if (tech.isEnergyHealth) {
+ if (m.maxEnergy > tech.removeMaxHealthOnKill) {
+ tech.healMaxEnergyBonus -= tech.removeMaxHealthOnKill
+ m.setMaxEnergy();
+ }
+ } else if (m.maxHealth > tech.removeMaxHealthOnKill) {
+ tech.extraMaxHealth -= tech.removeMaxHealthOnKill //decrease max health
+ m.setMaxHealth();
+ }
+ }
} else if (tech.isShieldAmmo && this.shield && !this.isExtraShield) {
let type = tech.isEnergyNoAmmo ? "heal" : "ammo"
if (Math.random() < 0.4) {
diff --git a/js/tech.js b/js/tech.js
index 3c2e469..11bef4c 100644
--- a/js/tech.js
+++ b/js/tech.js
@@ -6091,6 +6091,26 @@
tech.isCloakStun = false;
}
},
+ {
+ name: "pacifist",
+ description: "if you kill a mob lose 2% max health
spawn 2 tech at the end of every level",
+ isFieldTech: true,
+ maxCount: 1,
+ count: 0,
+ frequency: 2,
+ frequencyDefault: 2,
+ allowed() {
+ return m.fieldUpgrades[m.fieldMode].name === "metamaterial cloaking" && !tech.removeMaxHealthOnKill
+ },
+ requires: "metamaterial cloaking, not -pacifist-",
+ effect() {
+ tech.removeMaxHealthOnKill = 0.02
+ for (let i = 0; i < 2; i++) powerUps.spawn(level.exit.x + 10 * (Math.random() - 0.5), level.exit.y - 100 + 10 * (Math.random() - 0.5), "tech", false)
+ },
+ remove() {
+ tech.removeMaxHealthOnKill = 0
+ }
+ },
{
name: "ambush",
description: "metamaterial cloaking field damage effect
is increased from 300% to 600%",
@@ -6472,6 +6492,25 @@
tech.wimpExperiment = 0
}
},
+ {
+ name: "-pacifist-",
+ description: "experiment: if you kill a mob
lose 1% max health",
+ maxCount: 1,
+ count: 0,
+ frequency: 0,
+ isBadRandomOption: true,
+ isExperimentalMode: true,
+ allowed() {
+ return build.isExperimentSelection
+ },
+ requires: "",
+ effect() {
+ tech.removeMaxHealthOnKill = 0.01
+ },
+ remove() {
+ tech.removeMaxHealthOnKill = 0
+ }
+ },
//**************************************************
//************************************************** JUNK
//************************************************** tech
@@ -6494,6 +6533,25 @@
// },
// remove() {}
// },
+ {
+ name: "bounce",
+ description: "you bounce off things. It's annoying, but not that bad.",
+ maxCount: 1,
+ count: 0,
+ frequency: 0,
+ isExperimentHide: true,
+ isJunk: true,
+ allowed() {
+ return true
+ },
+ requires: "",
+ effect() {
+ player.restitution = 0.9
+ },
+ remove() {
+ if (this.count) player.restitution = 0
+ }
+ },
{
name: "true colors",
description: `set all power ups to their real world colors`,
@@ -8164,5 +8222,6 @@
extraHarpoons: null,
ammoCap: null,
isHarpoonPowerUp: null,
- harpoonDensity: null
+ harpoonDensity: null,
+ removeMaxHealthOnKill: null
}
\ No newline at end of file
diff --git a/todo.txt b/todo.txt
index 78fa146..faff7d6 100644
--- a/todo.txt
+++ b/todo.txt
@@ -1,9 +1,12 @@
******************************************************** NEXT PATCH **************************************************
-
+tech: pacifist - if you kill a mob lose 2% max health, but gain 2 tech at the end of every level
+junk tech: bounce - you bounce, it's kinda annoying
******************************************************** TODO ********************************************************
+experiment: like lose 1% max health every time you kill a mob?
+
JUNK tech: planetesimals game inside n-gon
https://codepen.io/lilgreenland/pen/jrMvaB?editors=0010