Skip to content

Commit

Permalink
Readme & AutoMaps MapAtZone
Browse files Browse the repository at this point in the history
  • Loading branch information
genbtc committed Mar 26, 2018
1 parent 3064c03 commit 3b025f1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
11 changes: 6 additions & 5 deletions AutoTrimps2.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@ function initializeAutoTrimps() {

var changelogList = [];
//changelogList.push({date: " ", version: " ", description: "", isNew: true}); //TEMPLATE
changelogList.push({date: "3/23", version: "v2.1.6.9", description: "AutoMaps setting combined with RunUniqueMaps. Be advised, the variable has changed from boolean false,true to a value 0,1,2. Settings file has been migrated as such. New: Map SpecialMod is extremely beta and can break your game. Geneticist Infinity bugfix. New AGU Settings for 60% Void (fixed). Many Graphs fixes. AutoMaps changes. Equipment Cap, see README at <a target='_blank' href='https://github.com/genbtc/AutoTrimps/blob/gh-pages/README.md'>GitHub</a> DarkTheme fix. Scientists Fix. Zek450 Perks Preset Changed. Ongoing Development...", isNew: true});
//changelogList.push({date: "3/25", version: "v2.1.7.0", description: "", isNew: true});
changelogList.push({date: "3/23", version: "v2.1.6.9", description: "Game's <u>Map at Zone</u> can be used with AT now, to run maps forever. AutoMaps setting was combined with RunUniqueMaps (variable has changed from boolean false,true to a value 0,1,2). Settings file has been migrated as such. New: Map SpecialMod is sort of working, at least. Geneticist Infinity bugfix. New AGU Settings for 60% Void (fixed). Many Graphs fixes. AutoMaps changes. Equipment Cap, see README at <a target='#' href='https://github.com/genbtc/AutoTrimps/blob/gh-pages/README.md'>GitHub</a> DarkTheme fix. Scientists Fix. Zek450 Perks Preset Changed. Ongoing Development...", isNew: true});
changelogList.push({date: "3/22", version: "v2.1.6.8", description: "Settings GUI, make better. Import/export improved. Graph buttons: Cycle Up/Down. Internal code fixes. New Graph: Nurseries", isNew: false});
changelogList.push({date: "3/20", version: "v2.1.6.7", description: "Entirely Re-Arranged Settings Layout. Enjoy! New: Display Tab: EnhanceGrid + Go AFK Mode. GUI: Pinned AT Tab menu bar to top when scrolling. Minimize/Maxi/Close Buttons. ShowChangeLog Button. New Graph: FluffyXP&Xp/Hr (starts@300)", isNew: false});
changelogList.push({date: "3/24", version: "v2.1.6.5-stable", description: "Set up <a target='_blank' href='https://genbtc.github.io/AutoTrimps-stable'>Stable Repository</a> for the faint of heart. Equipment changes, see README at <a target='_blank' href='https://github.com/genbtc/AutoTrimps/blob/gh-pages/README.md'>GitHub</a> and check commit history; Sorry for any breakages.", isNew: true});
changelogList.push({date: "3/24", version: "v2.1.6.5-stable", description: "Set up <a target='#' href='https://genbtc.github.io/AutoTrimps-stable'>Stable Repository</a> for the faint of heart.", isNew: true});
//changelogList.push({date: "3/20", version: "v2.1.6.7", description: "Entirely Re-Arranged Settings Layout. Enjoy! New: Display Tab: EnhanceGrid + Go AFK Mode. GUI: Pinned AT Tab menu bar to top when scrolling. Minimize/Maxi/Close Buttons. ShowChangeLog Button. New Graph: FluffyXP&Xp/Hr (starts@300)", isNew: false});
//changelogList.push({date: "3/13", version: "v2.1.6.6", description: "Geneticist management changes. Equipment code improvements. scriptLoad improvements. attempt to track errors.", isNew: false});
//changelogList.push({date: "3/7", version: "v2.1.6.5", description: "Save/Reload Profiles in Import/Export. Magmamancer graph. Magmite/Magma Spam disableable.", isNew: false});

Expand All @@ -69,8 +70,8 @@ function printChangelog() {
};
var footer =
'<b>Ongoing Development</b> - <u>Report any bugs/problems please</u>!\
<br>Talk with the dev: <b>genr8_#8163</b> @ <a target="_blank" href="https://discord.gg/0VbWe0dxB9kIfV2C">AutoTrimps Discord Channel</a>\
<br>Or check <a target="_blank" href="https://github.com/genBTC/AutoTrimps/commits/gh-pages" target="#">the commit history</a> (if you want).'
<br>Talk with the dev: <b>genr8_#8163</b> @ <a target="#" href="https://discord.gg/0VbWe0dxB9kIfV2C">AutoTrimps Discord Channel</a>\
<br>See<a target="#" href="https://github.com/genbtc/AutoTrimps/blob/gh-pages/README.md">ReadMe</a> Or check <a target="#" href="https://github.com/genBTC/AutoTrimps/commits/gh-pages" target="#">the commit history</a> (if you want).'
, action = 'cancelTooltip()'
, title = 'Script Update Notice<br>' + ATversion
, acceptBtnText = "Thank you for playing AutoTrimps. Accept and Continue."
Expand Down
15 changes: 9 additions & 6 deletions modules/maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ var preSpireFarming = false;
var spireMapBonusFarming = false;
var spireTime = 0;
var doMaxMapBonus = false;
var vanillaMapatZone = false;

//AutoMap - function originally created by Belaith (in 1971)
//anything/everything to do with maps.
Expand Down Expand Up @@ -227,7 +228,6 @@ function autoMap() {
if (ourBaseDamage > 0){
shouldDoMaps = !enoughDamage || shouldFarm || scryerStuck;
}

//Check our graph history and - Estimate = The zone should take around this long in milliseconds.
mapTimeEstimate = mapTimeEstimater();

Expand Down Expand Up @@ -339,11 +339,14 @@ function autoMap() {
}
//MaxMapBonusAfterZone (idea from awnv)
var maxMapBonusZ = getPageSetting('MaxMapBonusAfterZone');
doMaxMapBonus = false;
if (maxMapBonusZ >= 0 && game.global.mapBonus < customVars.maxMapBonusAfterZ && game.global.world >= maxMapBonusZ) {
doMaxMapBonus = (maxMapBonusZ >= 0 && game.global.mapBonus < customVars.maxMapBonusAfterZ && game.global.world >= maxMapBonusZ);
if (doMaxMapBonus)
shouldDoMaps = true;
doMaxMapBonus = true;
}
//Allow automaps to work with in-game Map at Zone option:
vanillaMapatZone = (game.options.menu.mapAtZone.enabled && game.options.menu.mapAtZone.setZone == game.global.world);
if (vanillaMapatZone)
shouldDoMaps = true;


//Dynamic Siphonology section (when necessary)
//Lower Farming Zone = Lowers the zone used during Farming mode. Starts 10 zones below current and Finds the minimum map level you can successfully one-shot
Expand Down Expand Up @@ -573,7 +576,7 @@ function autoMap() {
//if we are doing the right map, and it's not a norecycle (unique) map, and we aren't going to hit max map bonus
//or repeatbionics is true and there are still prestige items available to get
var doDefaultMapBonus = game.global.mapBonus < customVars.maxMapBonus-1;
if (selectedMap == game.global.currentMapId && (!getCurrentMapObject().noRecycle && (doDefaultMapBonus || doMaxMapBonus || shouldFarm || stackingTox || needPrestige || shouldDoSpireMaps) || repeatBionics)) {
if (selectedMap == game.global.currentMapId && (!getCurrentMapObject().noRecycle && (doDefaultMapBonus || vanillaMapatZone || doMaxMapBonus || shouldFarm || stackingTox || needPrestige || shouldDoSpireMaps) || repeatBionics)) {
var targetPrestige = autoTrimpSettings.Prestige.selected;
//make sure repeat map is on
if (!game.global.repeatMap) {
Expand Down
3 changes: 2 additions & 1 deletion modules/stance.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ function calcBaseDamageinX() {
//S stance is accounted for (combination of all the above's else clauses)
}

//goes to battlecalc.js which came from Trimps "updates.js" line 1103
function calcBaseDamageinX2() {
//baseDamage - calcOurDmg goes to battlecalc.js which came from Trimps "updates.js" line 1103
//baseDamage
baseDamage = calcOurDmg(game.global.soldierCurrentAttack,false);
//baseBlock
baseBlock = getBattleStats("block");
Expand Down

0 comments on commit 3b025f1

Please sign in to comment.