+
diff --git a/js/index.js b/js/index.js
index b9219fe..dfe995a 100644
--- a/js/index.js
+++ b/js/index.js
@@ -1152,7 +1152,7 @@ document.getElementById("updates").addEventListener("toggle", function() {
loadJSON('https://api.github.com/repos/landgreen/n-gon/commits',
function(data) {
// console.log(data)
- for (let i = 0, len = 3; i < len; i++) {
+ for (let i = 0, len = 20; i < len; i++) {
text += "
" + data[i].commit.author.date.substr(0, 10) + " - "; //+ "
"
text += data[i].commit.message
if (i < len - 1) text += "
"
diff --git a/js/level.js b/js/level.js
index 56fe8ff..1ec8493 100644
--- a/js/level.js
+++ b/js/level.js
@@ -9,7 +9,6 @@ const level = {
levelsCleared: 0,
playableLevels: ["skyscrapers", "rooftops", "warehouse", "highrise", "office", "aerie", "satellite", "sewers", "testChamber"],
levels: [],
-
start() {
if (level.levelsCleared === 0) { //this code only runs on the first level
// simulation.enableConstructMode() //used to build maps in testing mode
diff --git a/js/player.js b/js/player.js
index c0cd448..f529c55 100644
--- a/js/player.js
+++ b/js/player.js
@@ -1572,7 +1572,7 @@ const m = {
if (input.field) {
const oldHarmonicRadius = m.harmonicRadius
m.harmonicRadius = 0.985 * m.harmonicRadius + 0.015 * 2.5
- m.energy -= 0.45 * (m.harmonicRadius - oldHarmonicRadius)
+ m.energy -= 0.35 * (m.harmonicRadius - oldHarmonicRadius)
} else {
m.harmonicRadius = 0.997 * m.harmonicRadius + 0.003 * 1
}
@@ -2488,9 +2488,9 @@ const m = {
},
{
name: "wormhole",
- description: "use
energy to
tunnel through a
wormholewormholes attract
blocks and power ups
10% chance to
duplicate spawned
power ups", //
bullets may also traverse
wormholes
+ description: "use
energy to
tunnel through a
wormholewormholes attract
blocks and power ups
11% chance to
duplicate spawned
power ups", //
bullets may also traverse
wormholes
effect: function() {
- m.duplicateChance = 0.1
+ m.duplicateChance = 0.11
powerUps.setDo(); //needed after adjusting duplication chance
m.hold = function() {
@@ -2539,7 +2539,7 @@ const m = {
dyP = dyP2
}
dist2 = dxP * dxP + dyP * dyP;
- if (dist2 < 600000 && !(m.health === m.maxHealth && powerUp[i].name === "heal")) {
+ if (dist2 < 600000) { //&& !(m.health === m.maxHealth && powerUp[i].name === "heal")
powerUp[i].force.x += 4 * (dxP / dist2) * powerUp[i].mass; // float towards hole
powerUp[i].force.y += 4 * (dyP / dist2) * powerUp[i].mass - powerUp[i].mass * simulation.g; //negate gravity
Matter.Body.setVelocity(powerUp[i], { //extra friction
diff --git a/js/powerup.js b/js/powerup.js
index 8dc572d..4d8e8e6 100644
--- a/js/powerup.js
+++ b/js/powerup.js
@@ -248,7 +248,11 @@ const powerUps = {
}
},
use(type) { //runs when you actually research a list of selections, type can be field, gun, or tech
- powerUps.research.changeRerolls(-1)
+ if (tech.isJunkResearch) {
+ tech.addJunkTechToPool(tech.junkResearchNumber)
+ } else {
+ powerUps.research.changeRerolls(-1)
+ }
// simulation.makeTextLog(`
m.
research--
//
${powerUps.research.count}`)
if (tech.isBanish && type === 'tech') { // banish researched tech
@@ -402,7 +406,12 @@ const powerUps = {
powerUps.field.choiceLog.push(choice2)
powerUps.field.choiceLog.push(choice3)
- if (powerUps.research.count) {
+ if (tech.isJunkResearch) {
+ tech.junkResearchNumber = Math.ceil(5 * Math.random())
+ text += `
`
+ for (let i = 0; i < tech.junkResearchNumber; i++) text += ``
+ text += ` pseudoscience `
+ } else if (powerUps.research.count) {
text += `
`
for (let i = 0, len = Math.min(powerUps.research.count, 30); i < len; i++) text += ``
text += ` research `
@@ -510,26 +519,15 @@ const powerUps = {
powerUps.tech.choiceLog.push(choice3)
// if (powerUps.research.count) text += `
research
${powerUps.research.count}`
- if (powerUps.research.count) {
+ if (tech.isJunkResearch) {
+ tech.junkResearchNumber = Math.ceil(5 * Math.random())
+ text += `
`
+ for (let i = 0; i < tech.junkResearchNumber; i++) text += ``
+ text += ` pseudoscience `
+ } else if (powerUps.research.count) {
text += `
`
for (let i = 0, len = Math.min(powerUps.research.count, 30); i < len; i++) text += ``
text += ` research `
-
-
- // text += `
- //
- //
- //
- //
- //
- //
research`
-
- // text += `
- //
- //
- //
- //
- // ${tech.tech[choose].name} ${isCount}
${tech.tech[choose].description}
`
}
document.getElementById("choose-grid").innerHTML = text
@@ -612,7 +610,13 @@ const powerUps = {
powerUps.gun.choiceLog.push(choice2)
powerUps.gun.choiceLog.push(choice3)
// if (powerUps.research.count) text += `