Add hidden dev debug console (v0.5.0)
This commit is contained in:
1 parent
b8b5c360f2
commit
3f76998fab
22 files changed
+1161
-57
No files matched your search
@@ -144,6 +144,7 @@ function damageEnemy(e, dmg, ang, knockback, opts) {
|
||||
if (e.hp <= 0) return true;
|
||||
if (e.phased) return false;
|
||||
if (!(dmg > 0)) return false; // NaN / zero / negative damage does nothing
|
||||
if (G.debugFlags && G.debugFlags.ohko) dmg = 1e9; // debug: one-shot-kill, still respects plates
|
||||
// crit roll
|
||||
const p = G.player;
|
||||
const o = opts || {};
|
||||
|
||||
Reference in new issue
Block a user