Skip to content

Instantly share code, notes, and snippets.

@CodySwannGT
Created January 28, 2018 23:13
Show Gist options
  • Save CodySwannGT/91c8acc31af2170b0b6d15907bf1e834 to your computer and use it in GitHub Desktop.
Save CodySwannGT/91c8acc31af2170b0b6d15907bf1e834 to your computer and use it in GitHub Desktop.
setInterval(() => {
try {
var bi = FF.ns.battle.BattleInfo.getInstance();
bi.getEnemyParams = function() {
window.alert(JSON.stringify(bi._enemies));
return bi._enemies.map(enemy => Object.assign(enemy, {
initHp: 1,
maxHp: 1,
params: enemy.params.map(param => Object.assign(param, {
atk: 1,
mdef: 1,
lv: 1,
acc: 1
def: 1,
eva: 1,
exp: 1,
spd: 1,
maxHp: 1,
dispName: "Gunner Technology",
mnd: 1
}))
}));
}
} catch(e) {
window.alert(JSON.stringify(e));
};
}, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment