File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ module.exports = function TerableAngler(mod) {
7
7
getNumAnglerTokens = false ,
8
8
timeout = null ,
9
9
numAnglerTokens = 0 ,
10
- amountToBuy = 0 ,
11
10
amountBought = 0 ,
12
11
itemsToProcess = [ ] ,
13
12
contactBuy = { } ,
@@ -80,7 +79,6 @@ module.exports = function TerableAngler(mod) {
80
79
command . message ( `Contacted NPCs cleaned.` ) ;
81
80
} ,
82
81
start ( number ) {
83
- amountToBuy = 1 ; // buy 8 inventory slots at a time
84
82
amountBought = 0 ;
85
83
load ( ) ;
86
84
selling = false ;
@@ -140,7 +138,7 @@ module.exports = function TerableAngler(mod) {
140
138
}
141
139
if ( ! event . more ) {
142
140
getNumAnglerTokens = false ;
143
- if ( amountToBuy * 1800 > numAnglerTokens ) {
141
+ if ( 900 > numAnglerTokens ) {
144
142
command . message ( "You're out of Angler Tokens. Stopping..." ) ;
145
143
unload ( ) ;
146
144
} else { processItemsToBuy ( ) ; }
@@ -179,7 +177,7 @@ module.exports = function TerableAngler(mod) {
179
177
timeout = setTimeout ( startBuying , mod . settings . timeBetweenNpcContacts ) ; // sell -> buy
180
178
}
181
179
} else if ( ! selling && event . type === 20 ) { // 20 = angler token
182
- if ( amountToBuy > amountBought ) { // buy more
180
+ if ( ! amountBought ) { // buy more
183
181
let delay = mod . settings . initialDelay ;
184
182
timeout = mod . setTimeout ( ( ) => {
185
183
mod . toServer ( 'C_MEDAL_STORE_BUY_ADD_BASKET' , 1 , {
Original file line number Diff line number Diff line change 5
5
"hash" : " b7ca95a0fb5dfe01dfc0045bfe7227417743aa097d9785db8e5b03e3d96e1919"
6
6
},
7
7
"example.gif" : " ca8270707f0369928a43b6b6f1f386a04c50c044b2bf3c9d9c29fde23fbffc20" ,
8
- "index.js" : " 22903b3f205f560ccb9efa0cb8398df7ecb98eeaa7f0628c8379642a4a8b98bf " ,
8
+ "index.js" : " 5d0f7567a2d1732b2301b7a69571e35ad3944f58c1d8dad4cfd9d968bbc117df " ,
9
9
"module.json" : " 7fae27fc2a0e78329d45ef7224939c6bfa031237edbd6f10108f42ea54d055dc" ,
10
10
"README.md" : " d0db5c06f47855e75547b584b18d6b29827cd0d67a7702a64d52738b8ed708ac" ,
11
11
"settings_migrator.js" : " 15e6e0a3cf0139438aa2d3145a465774905ec658aab0a6c54406c3a73724f58a" ,
You can’t perform that action at this time.
0 commit comments