Skip to content

Commit

Permalink
No Nurseries Until setting.
Browse files Browse the repository at this point in the history
put 10 minimum scientists in for earlygame
  • Loading branch information
gen BTC authored and gen BTC committed Nov 21, 2016
1 parent 42c9b38 commit 2aa2a56
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions AutoTrimps2.js
Original file line number Diff line number Diff line change
Expand Up @@ -1189,6 +1189,10 @@ function buyBuildings() {
safeBuyBuilding('Tribute');
}
var targetBreed = parseInt(getPageSetting('GeneticistTimer'));
//NoNurseriesUntil', 'No Nurseries Until z', 'For Magma z230+ purposes. Nurseries get shut down, and wasting nurseries early on is probably a bad idea. Might want to set this to 230+ as well.'
var nursminlvl = getPageSetting('NoNurseriesUntil');
if (game.global.world < nursminlvl)
return;
//only buy nurseries if enabled, and we need to lower our breed time, or our target breed time is 0, or we aren't trying to manage our breed time before geneticists, and they aren't locked
//even if we are trying to manage breed timer pre-geneticists, start buying nurseries once geneticists are unlocked AS LONG AS we can afford a geneticist (to prevent nurseries from outpacing geneticists soon after they are unlocked)
if ((targetBreed < getBreedTime() || targetBreed <= 0 ||
Expand Down Expand Up @@ -1414,7 +1418,8 @@ function buyJobs() {
//make sure the game always buys at least 1 farmer, so we can unlock lumberjacks.
} else if (game.jobs.Farmer.owned == 0 && game.jobs.Lumberjack.locked && freeWorkers > 0) {
safeBuyJob('Farmer', 1);
}
} else if (game.jobs.Scientist.owned < 10 && scienceNeeded > 100)
safeBuyJob('Scientist', 10);
freeWorkers = Math.ceil(game.resources.trimps.realMax() / 2) - game.resources.trimps.employed;
totalDistributableWorkers = freeWorkers + game.jobs.Farmer.owned + game.jobs.Miner.owned + game.jobs.Lumberjack.owned;
if (game.global.challengeActive == 'Watch'){
Expand Down Expand Up @@ -2891,7 +2896,7 @@ function delayStart() {
function delayStartAgain(){
setInterval(mainLoop, runInterval);
updateCustomButtons();
tooltip('confirm', null, 'update', '<b>ChangeLog: -Please Read- </b><br><b>Patch 4.0 fixes are happening.<br></b>Fixed spire map bug<br>Added new ratios to AutoPerks<br>AutoFight if timer is <0.5 not <0.1 now<br> Doesnt run the 10 maps for Mapbonus before Spire now. Please increase/adjust your MinutesBeforeSpire Timer accordingly (the 10 maps were never accounted for in that timer). <br>Re-arranged all the categories in the settings window and updated tooltips<br>Kill your trimps (AutoHomicide) for Anti-Stacks more aggressively', 'cancelTooltip()', 'Script Update Notice' + ATversion);
tooltip('confirm', null, 'update', '<b>ChangeLog: -Please Read- </b><br><b>11/21 Patch 4.0 fixes are happening.<br>Added No Nurseries Until setting in genBTC page</b><br>11/20 Fixed spire map bug<br>Added new ratios to AutoPerks<br>AutoFight if timer is <0.5 not <0.1 now<br>11/19 Doesnt run the 10 maps for Mapbonus before Spire now. Please increase/adjust your MinutesBeforeSpire Timer accordingly (the 10 maps were never accounted for in that timer). <br>Re-arranged all the categories in the settings window and updated tooltips<br>Kill your trimps (AutoHomicide) for Anti-Stacks more aggressively', 'cancelTooltip()', 'Script Update Notice' + ATversion);
document.getElementById('Prestige').value = autoTrimpSettings.PrestigeBackup.selected;
}

Expand Down
2 changes: 1 addition & 1 deletion NewUI2.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ document.getElementById("AutoGoldenUpgrades").parentNode.insertBefore(AGULabel,d
createSetting('AutoHeirlooms2', 'Auto Heirlooms2', 'IMPORTANT SETTING. New algorithm for Heirlooms. While enabled, the old AutoHeirlooms algorithm will be disabled (the button will stay lit or you can turn that one off). CAUTION: Turning this on will immediately re-sort your heirlooms according to the new algorithm, and turning it off again DOES revert to the original algorithm even though it may NOT have a visible result on your heirlooms. (fyi: This lack of action highlights one of the problems with the old one.) ', 'boolean', null, null, 'genBTC');
createSetting('AutoUpgradeHeirlooms', 'Auto Upgrade Heirlooms', 'Automatically buys the upgrades the script advises for the Equipped shield and staff, until we are out of nullifium.', 'boolean', null, null,'genBTC');
createSetting('TrainerCaptoTributes', 'Cap Trainers to a % of Tributes', 'Only Buy a Trainer when its cost is LESS than X% of cost of a tribute. This setting can work in combination with the other one, or set the other one to -1 and this will take full control. Default: -1 (Disabled). 50% is close to the point where the cap does nothing. You can go as low as you want but recommended is 10% to 1%. (example: Trainer cost of 5001, Tribute cost of 100000, @ 5%, it would NOT buy the trainer.)', 'value', '-1', null, 'genBTC');

createSetting('NoNurseriesUntil', 'No Nurseries Until z', 'For Magma z230+ purposes. Nurseries get shut down, and wasting nurseries early on is probably a bad idea. Might want to set this to 230+ for now.', 'value', 0, null, 'genBTC');
// Scryer settings
createSetting('UseScryerStance', 'Use Scryer Stance', 'Stay in Scryer stance in z181 and above (Overrides Autostance). Falls back to regular Autostance when not in use (so leave that on). Current point is to get Dark Essence. EXPERIMENTAL. This is the Master button. All other buttons have no effect if this one is off.', 'boolean',true,null,'Scryer');
createSetting('ScryerMinZone', 'Min Zone', 'Minimum zone to start using scryer in.(inclusive) rec:(60 or 181)', 'value', '181', null, 'Scryer');
Expand Down

0 comments on commit 2aa2a56

Please sign in to comment.