Skip to content

Commit

Permalink
change to bwRewardUnlocked for foreman & doublebuild. game.talents.do…
Browse files Browse the repository at this point in the history
…ubleBuild is undefined. game.talents.foreman is undefined
  • Loading branch information
genbtc committed Nov 3, 2023
1 parent e7da94e commit 22ca489
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
19 changes: 9 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>Autotrimps by genbtc</title>
<title>AutoTrimps by genbtc</title>

<link rel="stylesheet" href="github/styles.css">
<link rel="stylesheet" href="github/github-light.css">
Expand All @@ -15,12 +15,12 @@
<body>
<div class="wrapper">
<header>
<h1>Autotrimps</h1>
<p>Automation for the idle incremental game &#39;Trimps&#39;</p>
<h1>AutoTrimps</h1>
<p>Automation for the idle incremental game &#39;Trimps&#39; - genBTC edition</p>

<p class="view"><a href="https://github.com/genbtc/AutoTrimps">View the Project on GitHub <small>genbtc/AutoTrimps</small></a></p>


<p class="view"><a href="install.user.js">Click Here to Install the TamperMonkey/Greasemonkey script for <small>genbtc/AutoTrimps</small></a></p>
<p class="view"> Latest Version: 2.1.6.9-genbtc-3-23-2018c </p>
<ul>
<li><a href="https://github.com/genbtc/AutoTrimps/zipball/master">Download <strong>ZIP File</strong></a></li>
<li><a href="https://github.com/genbtc/AutoTrimps/tarball/master">Download <strong>TAR Ball</strong></a></li>
Expand All @@ -31,27 +31,26 @@ <h1>Autotrimps</h1>
<h3>
<a id="welcome-to-github-pages" class="anchor" href="#welcome-to-github-pages" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Welcome to GitHub Pages.</h3>

<p>This automatic page generator is the easiest way to create beautiful pages for all of your projects. Author your page content here <a href="https://guides.github.com/features/mastering-markdown/">using GitHub Flavored Markdown</a>, select a template crafted by a designer, and publish. After your page is generated, you can check out the new <code>gh-pages</code> branch locally. If you’re using GitHub Desktop, simply sync your repository and you’ll see the new branch.</p>
<p>genBTC AutoTrimps

<h3>
<a id="designer-templates" class="anchor" href="#designer-templates" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Designer Templates</h3>

<p>We’ve crafted some handsome templates for you to use. Go ahead and click 'Continue to layouts' to browse through them. You can easily go back to edit your page before publishing. After publishing your page, you can revisit the page generator and switch to another theme. Your Page content will be preserved.</p>
<p>genBTC AutoTrimps

<h3>
<a id="creating-pages-manually" class="anchor" href="#creating-pages-manually" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Creating pages manually</h3>

<p>If you prefer to not use the automatic generator, push a branch named <code>gh-pages</code> to your repository to create a page manually. In addition to supporting regular HTML content, GitHub Pages support Jekyll, a simple, blog aware static site generator. Jekyll makes it easy to create site-wide headers and footers without having to copy them across every page. It also offers intelligent blog support and other advanced templating features.</p>
<p>genBTC AutoTrimps

<h3>
<a id="authors-and-contributors" class="anchor" href="#authors-and-contributors" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Authors and Contributors</h3>

<p>You can <a href="https://help.github.com/articles/basic-writing-and-formatting-syntax/#mentioning-users-and-teams" class="user-mention">@mention</a> a GitHub username to generate a link to their profile. The resulting <code>&lt;a&gt;</code> element will link to the contributor’s GitHub Profile. For example: In 2007, Chris Wanstrath (<a href="https://github.com/defunkt" class="user-mention">@defunkt</a>), PJ Hyett (<a href="https://github.com/pjhyett" class="user-mention">@pjhyett</a>), and Tom Preston-Werner (<a href="https://github.com/mojombo" class="user-mention">@mojombo</a>) founded GitHub.</p>
<p>genBTC AutoTrimps

<h3>
<a id="support-or-contact" class="anchor" href="#support-or-contact" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Support or Contact</h3>

<p>Having trouble with Pages? Check out our <a href="https://help.github.com/pages">documentation</a> or <a href="https://github.com/contact">contact support</a> and we’ll help you sort it out.</p>
</section>
<footer>
<p>This project is maintained by <a href="https://github.com/genbtc">genbtc</a></p>
Expand Down
2 changes: 1 addition & 1 deletion modules/buildings.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function safeBuyBuilding(building) {
var oldBuy = preBuy2();
//build 2 at a time if we have the mastery for it.
//Note: Bypasses any "Max" caps by 1 if they are odd numbers and we can afford the 2nd one.
if (game.talents.doubleBuild.purchased) {
if (bwRewardUnlocked("DoubleBuild")) {
game.global.buyAmt = 2;
if (!canAffordBuilding(building)) {
game.global.buyAmt = 1;
Expand Down
2 changes: 1 addition & 1 deletion modules/gather.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function manualLabor() {
else if (getPageSetting('ManualGather2') != 2 && game.resources.science.owned < MODULES["gather"].minScienceAmount && document.getElementById('scienceCollectBtn').style.display != 'none' && document.getElementById('science').style.visibility != 'hidden')
setGather('science');
//if we have more than 2 buildings in queue, or (our modifier is real fast and trapstorm is off), build
else if (!game.talents.foreman.purchased && (game.global.buildingsQueue.length ? (game.global.buildingsQueue.length > 1 || game.global.autoCraftModifier == 0 || (getPlayerModifier() > 1000 && game.global.buildingsQueue[0] != 'Trap.1')) : false)) {
else if (bwRewardUnlocked("Foremany") && (game.global.buildingsQueue.length ? (game.global.buildingsQueue.length > 1 || game.global.autoCraftModifier == 0 || (getPlayerModifier() > 1000 && game.global.buildingsQueue[0] != 'Trap.1')) : false)) {
setGather('buildings');
}
//if trapstorm is off (likely we havent gotten it yet, the game is still early, buildings take a while to build ), then Prioritize Storage buildings when they hit the front of the queue (should really be happening anyway since the queue should be >2(fits the clause above this), but in case they are the only object in the queue.)
Expand Down

0 comments on commit 22ca489

Please sign in to comment.