Skip to content

Commit 525ef6e

Browse files
authored
Merge pull request #185 from paolabechalani/main
Initial Shop
2 parents 3f3ba24 + 7c3cf4a commit 525ef6e

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

BytesOfLove/game/gameMap/shop.rpy

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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

Comments
 (0)