@@ -33,12 +33,10 @@ function buy_computer_menu () {
3333 } else if ( blockMenu . selectedMenuOption ( ) . includes ( "Sell" ) ) {
3434 computer_count += - 1
3535 score += Math . round ( computer_price * 0.8 )
36+ computer_price = computer_price / 1.1
3637 } else if ( blockMenu . selectedMenuOption ( ) . includes ( "Buy" ) ) {
3738 computer_count += 1
3839 score += computer_price * - 1
39- }
40- computer_price = 10
41- for ( let index = 0 ; index < computer_count ; index ++ ) {
4240 computer_price = computer_price * 1.1
4341 }
4442 computer_price = Math . round ( computer_price )
@@ -159,12 +157,10 @@ function buy_asic_menu () {
159157 } else if ( blockMenu . selectedMenuOption ( ) . includes ( "Sell" ) ) {
160158 asic_count += - 1
161159 score += Math . round ( asic_price * 0.8 )
160+ asic_price = asic_price / 1.1
162161 } else if ( blockMenu . selectedMenuOption ( ) . includes ( "Buy" ) ) {
163162 asic_count += 1
164163 score += asic_price * - 1
165- }
166- asic_price = 100
167- for ( let index = 0 ; index < asic_count ; index ++ ) {
168164 asic_price = asic_price * 1.1
169165 }
170166 asic_price = Math . round ( asic_price )
@@ -264,12 +260,10 @@ function buy_autoclicker_menu () {
264260 } else if ( blockMenu . selectedMenuOption ( ) . includes ( "Sell" ) ) {
265261 autoclicker_count += - 1
266262 score += Math . round ( autoclicker_price * 0.8 )
263+ autoclicker_price = autoclicker_price / 1.1
267264 } else if ( blockMenu . selectedMenuOption ( ) . includes ( "Buy" ) ) {
268265 autoclicker_count += 1
269266 score += autoclicker_price * - 1
270- }
271- autoclicker_price = 2
272- for ( let index = 0 ; index < autoclicker_count ; index ++ ) {
273267 autoclicker_price = autoclicker_price * 1.1
274268 }
275269 autoclicker_price = Math . round ( autoclicker_price )
0 commit comments