beetlemania

mob: beetleBoss
mob: flutter

balance: all mobs at every level are about 2%-3% harder to kill
This commit is contained in:
landgreen
2022-07-31 07:09:57 -07:00
parent 3434869989
commit 746e86cc4a
6 changed files with 245 additions and 46 deletions

View File

@@ -2884,7 +2884,7 @@ const m = {
//show sneak attack status
// if (m.cycle > m.lastKillCycle + 240) {
// if (m.sneakAttackCharge > 0) {
if (m.sneakAttackCycle + Math.min(120, 0.5 * (m.cycle - m.enterCloakCycle)) > m.cycle) {
if (m.sneakAttackCycle + Math.min(120, 0.7 * (m.cycle - m.enterCloakCycle)) > m.cycle) {
ctx.strokeStyle = "rgba(0,0,0,0.5)" //m.fieldMeterColor; //"rgba(255,255,0,0.2)" //ctx.strokeStyle = `rgba(0,0,255,${0.5+0.5*Math.random()})`
ctx.beginPath();
ctx.arc(m.pos.x, m.pos.y, 28, 0, 2 * Math.PI);