minimal HUD
setting - minimal HUD remove: defense bar, damage bar, tech, in game console improved text clarity on coupling removed tech decoupling added cloaking and sneak attack graphics also, the 50% defense when cloaked is now clear from the defense bar ternary 44->83% damage but requires current gun to have ammo/3 (was any gun) wormhole invariant: uses much less energy to pause time standing wave has less recoil when blocking new images bug fixes
This commit is contained in:
20
js/engine.js
20
js/engine.js
@@ -107,7 +107,7 @@ function collisionChecks(event) {
|
||||
!mob[k].isSlowed && !mob[k].isStunned
|
||||
) {
|
||||
let dmg = Math.min(Math.max(0.025 * Math.sqrt(mob[k].mass), 0.05), 0.3) * simulation.dmgScale; //player damage is capped at 0.3*dmgScale of 1.0
|
||||
if (m.isCloak) dmg *= 0.5
|
||||
// if (m.isCloak) dmg *= 0.5
|
||||
mob[k].foundPlayer();
|
||||
if (tech.isRewindAvoidDeath && (m.energy + 0.05) > Math.min(0.95, m.maxEnergy) && dmg > 0.01) { //CPT reversal runs in m.damage, but it stops the rest of the collision code here too
|
||||
m.damage(dmg);
|
||||
@@ -119,25 +119,11 @@ function collisionChecks(event) {
|
||||
if (document.getElementById("tech-flip-flop")) document.getElementById("tech-flip-flop").innerHTML = ` = <strong>OFF</strong>`
|
||||
m.eyeFillColor = 'transparent'
|
||||
m.damage(dmg);
|
||||
if (tech.isFlipFlopCoupling) {
|
||||
m.couplingChange(-5)
|
||||
for (let i = 0; i < mob.length; i++) {
|
||||
if (mob[i].isDecoupling) mob[i].alive = false //remove WIMP
|
||||
}
|
||||
spawn.WIMP()
|
||||
mob[mob.length - 1].isDecoupling = true //so you can find it to remove
|
||||
}
|
||||
} else {
|
||||
tech.isFlipFlopOn = true //immune to damage this hit, lose immunity for next hit
|
||||
if (document.getElementById("tech-flip-flop")) document.getElementById("tech-flip-flop").innerHTML = ` = <strong>ON</strong>`
|
||||
m.eyeFillColor = m.fieldMeterColor //'#0cf'
|
||||
if (!tech.isFlipFlopHarm) m.damage(dmg);
|
||||
if (tech.isFlipFlopCoupling) {
|
||||
m.couplingChange(5)
|
||||
for (let i = 0; i < mob.length; i++) {
|
||||
if (mob[i].isDecoupling) mob[i].alive = false //remove WIMP
|
||||
}
|
||||
}
|
||||
}
|
||||
if (tech.isFlipFlopHealth) {
|
||||
m.setMaxHealth();
|
||||
@@ -161,7 +147,7 @@ function collisionChecks(event) {
|
||||
}
|
||||
if (tech.isPiezo) m.energy += 20.48;
|
||||
if (tech.isCouplingNoHit && m.coupling > 0) {
|
||||
m.couplingChange(-0.5)
|
||||
m.couplingChange(-5)
|
||||
|
||||
const unit = Vector.rotate({ x: 1, y: 0 }, 6.28 * Math.random())
|
||||
let where = Vector.add(m.pos, Vector.mult(unit, 17))
|
||||
@@ -295,7 +281,7 @@ function collisionChecks(event) {
|
||||
}
|
||||
}
|
||||
|
||||
let dmg = tech.blockDamage * m.dmgScale * v * obj.mass * (tech.isMobBlockFling ? 2.5 : 1) * (tech.isBlockRestitution ? 2.5 : 1) * ((m.fieldMode === 0 || m.fieldMode === 8) ? 1 + 0.4 * m.coupling : 1);
|
||||
let dmg = tech.blockDamage * m.dmgScale * v * obj.mass * (tech.isMobBlockFling ? 2.5 : 1) * (tech.isBlockRestitution ? 2.5 : 1) * ((m.fieldMode === 0 || m.fieldMode === 8) ? 1 + 0.04 * m.coupling : 1);
|
||||
if (mob[k].isShielded) dmg *= 0.7
|
||||
|
||||
mob[k].damage(dmg, true);
|
||||
|
||||
Reference in New Issue
Block a user