bug fix
This commit is contained in:
12
js/index.js
12
js/index.js
@@ -590,10 +590,15 @@ const build = {
|
||||
}
|
||||
removeOne();
|
||||
}
|
||||
let hasExperimentalMode = false
|
||||
if (!simulation.isCheating) {
|
||||
for (let i = 0, len = tech.tech.length; i < len; i++) {
|
||||
if (tech.tech[i].count > 0 && !tech.tech[i].isLore && !tech.tech[i].isExperimentalMode) {
|
||||
simulation.isCheating = true;
|
||||
if (tech.tech[i].count > 0) {
|
||||
if (tech.tech[i].isExperimentalMode) {
|
||||
hasExperimentalMode = true
|
||||
} else if (!tech.tech[i].isLore) {
|
||||
simulation.isCheating = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (b.inventory.length !== 0 || m.fieldMode !== 0) simulation.isCheating = true;
|
||||
@@ -611,6 +616,9 @@ const build = {
|
||||
} else { //if you have no tech (not cheating) remove all power ups that might have spawned from tech
|
||||
for (let i = 0; i < powerUp.length; ++i) Matter.Composite.remove(engine.world, powerUp[i]);
|
||||
powerUp = [];
|
||||
if (hasExperimentalMode) {
|
||||
for (let i = 0; i < 7; i++) tech.giveTech("undefined")
|
||||
}
|
||||
}
|
||||
document.body.style.cursor = "none";
|
||||
document.body.style.overflow = "hidden"
|
||||
|
||||
@@ -6324,7 +6324,6 @@
|
||||
requires: "",
|
||||
effect() {
|
||||
m.shipMode()
|
||||
for (let i = 0; i < 7; i++) tech.giveTech("undefined")
|
||||
},
|
||||
remove() {}
|
||||
},
|
||||
@@ -6348,7 +6347,6 @@
|
||||
simulation.trails()
|
||||
}
|
||||
}, 20000); //every 20 seconds
|
||||
for (let i = 0; i < 7; i++) tech.giveTech("undefined")
|
||||
|
||||
},
|
||||
remove() {
|
||||
@@ -6375,7 +6373,6 @@
|
||||
}
|
||||
}
|
||||
}, 5000); //every 5 seconds
|
||||
for (let i = 0; i < 7; i++) tech.giveTech("undefined")
|
||||
},
|
||||
interval: undefined,
|
||||
remove() {
|
||||
@@ -6403,7 +6400,6 @@
|
||||
m.transX += (m.transSmoothX - m.transX) * 0.07;
|
||||
m.transY += (m.transSmoothY - m.transY) * 0.07;
|
||||
}
|
||||
for (let i = 0; i < 7; i++) tech.giveTech("undefined")
|
||||
},
|
||||
remove() {
|
||||
if (this.count > 0) m.look = m.lookDefault()
|
||||
@@ -6432,7 +6428,6 @@
|
||||
}
|
||||
}
|
||||
}, 1000); //every 1 seconds
|
||||
for (let i = 0; i < 7; i++) tech.giveTech("undefined")
|
||||
},
|
||||
interval: undefined,
|
||||
remove() {
|
||||
@@ -6453,7 +6448,6 @@
|
||||
requires: "",
|
||||
effect() {
|
||||
tech.deathSpawns = 0.2
|
||||
for (let i = 0; i < 7; i++) tech.giveTech("undefined")
|
||||
},
|
||||
remove() {
|
||||
tech.deathSpawns = 0
|
||||
@@ -6473,7 +6467,6 @@
|
||||
requires: "",
|
||||
effect() {
|
||||
tech.wimpExperiment = 5
|
||||
for (let i = 0; i < 7; i++) tech.giveTech("undefined")
|
||||
},
|
||||
remove() {
|
||||
tech.wimpExperiment = 0
|
||||
|
||||
9
todo.txt
9
todo.txt
@@ -1,13 +1,6 @@
|
||||
******************************************************** NEXT PATCH **************************************************
|
||||
|
||||
harpoon damage is increased 30%
|
||||
picks up power ups from farther away
|
||||
harpoon's range has been reduced about 20%
|
||||
filament and unaaq require about 40% more ammo for the same effect
|
||||
harpoon density lowers when it retracts
|
||||
so it doesn't do as much damage on retracting
|
||||
|
||||
more bug fixes
|
||||
|
||||
******************************************************** TODO ********************************************************
|
||||
|
||||
@@ -34,6 +27,8 @@ harpoon
|
||||
post launch tracking: more airFriction, more thrust, harder turning
|
||||
if no target found slow down and aim much better?
|
||||
harpoon tech
|
||||
crouch fire grapple hook
|
||||
attaches to map at long range and pulls player?
|
||||
tech that buffs alt fire:
|
||||
remove the string, all shots are alt fire
|
||||
alt fire has a 50% chance to not use ammo?
|
||||
|
||||
Reference in New Issue
Block a user