Skip to content

Commit

Permalink
[2048.12] Fix auto buy sell out buildings when sell mode is on
Browse files Browse the repository at this point in the history
  • Loading branch information
jcppkkk committed Mar 21, 2024
1 parent 168cb08 commit f45ebae
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [2048.12] - 2024.03.22
- Fix auto buy sell out buildings when sell mode is on

## [2048.11] - 2024.03.18
### Feature
- Add auto buy feature to buy the best deal automatically
Expand Down
5 changes: 2 additions & 3 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
## [2048.11] - 2024.03.18
### Feature
- Add auto buy feature to buy the best deal automatically
## [2048.12] - 2024.03.22
- Fix auto buy sell out buildings when sell mode is on
4 changes: 2 additions & 2 deletions info.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"ID": "BestDealHelper",
"Author": "Jethro Yu",
"Description": "Help you choose best deal! (Best Deal Helper)",
"ModVersion": 2048.11,
"ModVersion": 2048.12,
"GameVersion": 2.048,
"Date": "03/18/2024",
"Date": "03/22/2024",
"Dependencies": [
"CCSE"
],
Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ class PaybackRateMod {
this.reorderUpgrades(upgrades);
this.reorderBuildings(buildings);

if (this.config.autoBuy && all[0].waitingTime === "") {
if (this.config.autoBuy && all[0].waitingTime === "" && Game.buyMode == 1) {
all[0].buy();
}
}
Expand Down

0 comments on commit f45ebae

Please sign in to comment.