coupling tech
tech: crystallography - convert all your research into 0.25 coupling per research tech: residual dipolar coupling - cancelling field gun or tech gives +0.5 coupling tech: fine-structure constant - +6 coupling, eject this tech if you take damage coupling for cloaking field now gives +33% ambush damage tech: ambush removed coupling for time dilation now gives +25% longer time dilation effect about +2 seconds coupling tech isn't well balanced yet, so give me feedback non-unitary operator renamed to Hilbert space bug fixes
This commit is contained in:
11
js/index.js
11
js/index.js
@@ -229,14 +229,13 @@ const build = {
|
||||
|
||||
//used for junk estimation
|
||||
let junkCount = 0
|
||||
let totalCount = 0
|
||||
let totalCount = 1 //start at one to avoid NaN issues
|
||||
for (let i = 0; i < tech.tech.length; i++) {
|
||||
if (tech.tech[i].count < tech.tech[i].maxCount && tech.tech[i].allowed() && !tech.tech[i].isBanished) {
|
||||
totalCount += tech.tech[i].frequency
|
||||
if (tech.tech[i].isJunk) junkCount += tech.tech[i].frequency
|
||||
}
|
||||
}
|
||||
// ${m.coupling> 0 ? '<br>'+m.couplingDescription(): ""}
|
||||
//left side
|
||||
let botText = ""
|
||||
if (tech.nailBotCount) botText += `<br>nail-bots: ${tech.nailBotCount}`
|
||||
@@ -259,7 +258,7 @@ const build = {
|
||||
<br><strong><em>fire rate</em></strong>: ${((1-b.fireCDscale)*100).toFixed(b.fireCDscale < 0.1 ? 2 : 0)}%
|
||||
<br><strong class='color-dup'>duplication</strong>: ${(tech.duplicationChance()*100).toFixed(0)}%
|
||||
<br><strong class='color-coupling'>coupling</strong>: ${(m.coupling).toFixed(2)}
|
||||
|
||||
${m.coupling> 0 ? '<br>'+m.couplingDescription(true): ""}
|
||||
${botText}
|
||||
<br>
|
||||
<br><strong class='color-h'>health</strong>: (${(m.health*100).toFixed(0)} / ${(m.maxHealth*100).toFixed(0)})
|
||||
@@ -962,18 +961,18 @@ window.addEventListener("keydown", function(event) {
|
||||
|
||||
if (tech.isPauseSwitchField || simulation.testing) {
|
||||
document.getElementById("pause-field").addEventListener("click", () => {
|
||||
const energy = m.energy
|
||||
const energy = m.energy //save current energy
|
||||
if (m.fieldMode === 4 && simulation.molecularMode < 3) {
|
||||
simulation.molecularMode++
|
||||
m.fieldUpgrades[4].description = m.fieldUpgrades[4].setDescription()
|
||||
} else {
|
||||
m.setField((m.fieldMode === m.fieldUpgrades.length - 1) ? 1 : m.fieldMode + 1) //cycle to next field
|
||||
m.setField((m.fieldMode === m.fieldUpgrades.length - 1) ? 0 : m.fieldMode + 1) //cycle to next field
|
||||
if (m.fieldMode === 4) {
|
||||
simulation.molecularMode = 0
|
||||
m.fieldUpgrades[4].description = m.fieldUpgrades[4].setDescription()
|
||||
}
|
||||
}
|
||||
m.energy = energy
|
||||
m.energy = energy //return to current energy
|
||||
document.getElementById("pause-field").innerHTML = `<div class="grid-title"><div class="circle-grid field"></div> ${m.fieldUpgrades[m.fieldMode].name}</div> ${m.fieldUpgrades[m.fieldMode].description}`
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user