From 0572fa06f06c912d09f4c3f8bde46aeebc56611e Mon Sep 17 00:00:00 2001 From: Farogan Date: Sat, 23 Jun 2018 00:48:48 +0200 Subject: [PATCH 1/2] Output gPlayerInfo via console output of LVL, XP and estimate of games, minutes and hours needed to lvl up. --- saliensHack.user.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/saliensHack.user.js b/saliensHack.user.js index b6d8361..ed81494 100644 --- a/saliensHack.user.js +++ b/saliensHack.user.js @@ -139,7 +139,24 @@ var joinZone = function(zoneId) { if (joiningZone) return; + console.log('--------------------------------'); + console.log('-------------FIGHT--------------'); + console.log('--------------------------------'); console.log('Joining zone:', zoneId); + console.log('Uncaptured Zones:', gGame.m_State.m_PlanetData.zones.length); + console.log('--------------------------------'); + console.log('LVL: ' + gPlayerInfo.level); + console.log('EXP: ' + gPlayerInfo.score + ' / ' + gPlayerInfo.next_level_score); + console.log('--------------------------------'); + var need = gPlayerInfo.next_level_score - gPlayerInfo.score; + var gamesn = need / 2400; + var lvlupm = need / 2400 * 2; + var lvluph = need / 2400 * 2 / 60; + var lvluphf = lvluph.toFixed(2); + console.log('Games needed: ' + gamesn); + console.log('LVLUP minutes: ' + lvlupm); + console.log('LVLUP hours: ' + lvluphf); + console.log('--------------------------------'); joiningZone = true; From 8b30284c3f174a000d7ffea8f2ea124aa6018c30 Mon Sep 17 00:00:00 2001 From: Farogan Date: Sat, 23 Jun 2018 01:37:24 +0200 Subject: [PATCH 2/2] Adds difficulty check for estimating the lvlup --- saliensHack.user.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/saliensHack.user.js b/saliensHack.user.js index ed81494..922ce9c 100644 --- a/saliensHack.user.js +++ b/saliensHack.user.js @@ -92,7 +92,7 @@ if (gGame.m_State.m_VictoryScreen || gGame.m_State.m_LevelUpScreen) { gGame.ChangeState( new CBattleSelectionState( gGame.m_State.m_PlanetData.id ) ); - console.log('round done'); + console.log('########## ROUND DONE ##########'); return; } @@ -149,10 +149,17 @@ console.log('EXP: ' + gPlayerInfo.score + ' / ' + gPlayerInfo.next_level_score); console.log('--------------------------------'); var need = gPlayerInfo.next_level_score - gPlayerInfo.score; - var gamesn = need / 2400; - var lvlupm = need / 2400 * 2; - var lvluph = need / 2400 * 2 / 60; + var zones = gGame.m_State.m_PlanetData.zones; + var dif = zones[zoneId].difficulty; + var score + if (dif === 1) { score = 600 } + if (dif === 2) { score = 1200 } + if (dif === 3) { score = 2400 } + var gamesn = need / score; + var lvlupm = gamesn * 2; + var lvluph = gamesn * 2 / 60; var lvluphf = lvluph.toFixed(2); + console.log('Difficulty: ' + dif); console.log('Games needed: ' + gamesn); console.log('LVLUP minutes: ' + lvlupm); console.log('LVLUP hours: ' + lvluphf);