Skip to content

Commit 92250aa

Browse files
Finish upgrades
1 parent d0a7d91 commit 92250aa

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

.github/makecode/blocks.png

13 KB
Loading

.github/makecode/blocksdiff.png

139 KB
Loading

main.blocks

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

main.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,16 @@ function do_upgrade (id: number) {
191191
computer_speed = computer_speed * 0.166
192192
} else if (id == 9) {
193193
computer_speed = computer_speed * 0.333
194+
} else if (id == 10) {
195+
asic_speed = asic_speed * 0.5
196+
} else if (id == 11) {
197+
asic_price = asic_price * 0.5
198+
} else if (id == 12) {
199+
asic_speed = asic_speed * 0.333
200+
} else if (id == 13) {
201+
asic_speed = asic_speed * 0.5
202+
} else if (id == 14) {
203+
asic_price = asic_price * 0.5
194204
}
195205
autoclicker_speed = Math.floor(autoclicker_speed)
196206
computer_speed = Math.floor(computer_speed)
@@ -330,6 +340,11 @@ function define_upgrades () {
330340
make_upgrade_obj("Direct from the Factory", "Halves the price of computers.", 30, 7, 25, 0, 5, 0, 0)
331341
make_upgrade_obj("External GPUs", "Sextuples (x6!) the speed of computers.", 60, 8, 30, 0, 10, 0, 0)
332342
make_upgrade_obj("PCI Express buses", "Triples the speed of computers.", 40, 9, 30, 0, 10, 0, 0)
343+
make_upgrade_obj("Water cooling", "Doubles the speed of ASICs.", 75, 10, 50, 0, 0, 3, 0)
344+
make_upgrade_obj("Bulk buying", "Halves the price of ASICs.", 50, 11, 50, 0, 0, 5, 0)
345+
make_upgrade_obj("Firmware updates", "Triples the speed of ASICs.", 100, 12, 80, 0, 0, 5, 0)
346+
make_upgrade_obj("Improved ventilation", "Doubles the speed of ASICs.", 80, 13, 80, 0, 0, 5, 0)
347+
make_upgrade_obj("FPGAs are cheaper", "Halves the price of ASICs.", 100, 14, 80, 0, 0, 10, 0)
333348
}
334349
function set_default_save () {
335350
show_particles = true

0 commit comments

Comments
 (0)