Skip to content

Commit f45ebae

Browse files
committed
[2048.12] Fix auto buy sell out buildings when sell mode is on
1 parent 168cb08 commit f45ebae

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file.
33

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

6+
## [2048.12] - 2024.03.22
7+
- Fix auto buy sell out buildings when sell mode is on
8+
69
## [2048.11] - 2024.03.18
710
### Feature
811
- Add auto buy feature to buy the best deal automatically

RELEASE.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
## [2048.11] - 2024.03.18
2-
### Feature
3-
- Add auto buy feature to buy the best deal automatically
1+
## [2048.12] - 2024.03.22
2+
- Fix auto buy sell out buildings when sell mode is on

info.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"ID": "BestDealHelper",
44
"Author": "Jethro Yu",
55
"Description": "Help you choose best deal! (Best Deal Helper)",
6-
"ModVersion": 2048.11,
6+
"ModVersion": 2048.12,
77
"GameVersion": 2.048,
8-
"Date": "03/18/2024",
8+
"Date": "03/22/2024",
99
"Dependencies": [
1010
"CCSE"
1111
],

main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ class PaybackRateMod {
756756
this.reorderUpgrades(upgrades);
757757
this.reorderBuildings(buildings);
758758

759-
if (this.config.autoBuy && all[0].waitingTime === "") {
759+
if (this.config.autoBuy && all[0].waitingTime === "" && Game.buyMode == 1) {
760760
all[0].buy();
761761
}
762762
}

0 commit comments

Comments
 (0)