|
| 1 | +default cache_cleaner_count = 0 |
| 2 | +default bought_charm_compiler = False |
| 3 | +default bought_cache_cleaner = False |
| 4 | +default bought_syntax_spray = False |
| 5 | + |
| 6 | +screen shop: |
| 7 | + label shop: |
| 8 | + "Welcome to the Likeability Shop! What would you like to buy?" |
| 9 | + |
| 10 | + menu: |
| 11 | + "Charm Compiler (+10 to C, Python, Java | -10 Bytecoin)": |
| 12 | + if byte >= 10: |
| 13 | + $ byte -= 10 |
| 14 | + $ c_rep = min(c_rep + 10, 100) |
| 15 | + $ p_rep = min(p_rep + 10, 100) |
| 16 | + $ j_rep = min(j_rep + 10, 100) |
| 17 | + $ bought_charm_compiler = True |
| 18 | + "You bought a Charm Compiler!" |
| 19 | + else: |
| 20 | + "You don't have enough Bytecoin." |
| 21 | + |
| 22 | + "Cache Cleaner (+20 to Java, C | -15 Bytecoin, max 3)": |
| 23 | + if byte >= 15 and cache_cleaner_count < 3: |
| 24 | + $ byte -= 15 |
| 25 | + $ j_rep = min(j_rep + 20, 100) |
| 26 | + $ c_rep = min(c_rep + 20, 100) |
| 27 | + $ cache_cleaner_count += 1 |
| 28 | + $ bought_cache_cleaner = True |
| 29 | + "You bought a Cache Cleaner!" |
| 30 | + elif cache_cleaner_count >= 3: |
| 31 | + "You've already bought 3 Cache Cleaners." |
| 32 | + else: |
| 33 | + "You don't have enough Bytecoin." |
| 34 | + |
| 35 | + "Syntax Sugar Spray (+5 to JS, Python, Rust | -5 Bytecoin)": |
| 36 | + if byte >= 5: |
| 37 | + $ byte -= 5 |
| 38 | + $ js_rep = min(js_rep + 5, 100) |
| 39 | + $ p_rep = min(p_rep + 5, 100) |
| 40 | + $ r_rep = min(r_rep + 5, 100) |
| 41 | + $ bought_syntax_spray = True |
| 42 | + "You bought Syntax Sugar Spray!" |
| 43 | + else: |
| 44 | + "You don't have enough Bytecoin." |
| 45 | + |
| 46 | + "Leave Shop": |
| 47 | + jump after_shop |
| 48 | + |
| 49 | + jump shop |
| 50 | + |
| 51 | + label after_shop: |
| 52 | + "Thanks for visiting the shop!" |
| 53 | + Return() |
0 commit comments