From c7462c155fe8f1eb9cd6d3fa019b1b9b7faf4ade Mon Sep 17 00:00:00 2001 From: Paola Bechalani Date: Sat, 31 May 2025 17:29:23 -0400 Subject: [PATCH 1/3] add shop --- BytesOfLove/game/gameMap/shop.rpy | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 BytesOfLove/game/gameMap/shop.rpy diff --git a/BytesOfLove/game/gameMap/shop.rpy b/BytesOfLove/game/gameMap/shop.rpy new file mode 100644 index 0000000..326e0d7 --- /dev/null +++ b/BytesOfLove/game/gameMap/shop.rpy @@ -0,0 +1,3 @@ +screen shop: + // everything in here would be what happens when i add things + \ No newline at end of file From 6bcb0a670dd5c787700a417af1f852508186f1ef Mon Sep 17 00:00:00 2001 From: Paola Bechalani Date: Tue, 3 Jun 2025 13:00:35 -0400 Subject: [PATCH 2/3] first addition to shop --- BytesOfLove/game/gameMap/shop.rpy | 47 +++++++++++++++++++++++++++++-- 1 file changed, 45 insertions(+), 2 deletions(-) diff --git a/BytesOfLove/game/gameMap/shop.rpy b/BytesOfLove/game/gameMap/shop.rpy index 326e0d7..368c81b 100644 --- a/BytesOfLove/game/gameMap/shop.rpy +++ b/BytesOfLove/game/gameMap/shop.rpy @@ -1,3 +1,46 @@ +default cache_cleaner_count = 0 + screen shop: - // everything in here would be what happens when i add things - \ No newline at end of file + label shop: + "Welcome to the Likeability Shop! What would you like to buy?" + + menu: + "Charm Compiler (+10 to C, Python, Java | -10 Bytecoin)": + if byte >= 10: + $ byte -= 10 + $ c_rep = min(c_rep + 10, 100) + $ p_rep = min(p_rep + 10, 100) + $ j_rep = min(j_rep + 10, 100) + "You bought a Charm Compiler!" + else: + "You don't have enough Bytecoin." + + "Cache Cleaner (+20 to Java, C | -15 Bytecoin, max 3)": + if byte >= 15 and cache_cleaner_count < 3: + $ byte -= 15 + $ j_rep = min(j_rep + 20, 100) + $ c_rep = min(c_rep + 20, 100) + $ cache_cleaner_count += 1 + "You bought a Cache Cleaner!" + elif cache_cleaner_count >= 3: + "You've already bought 3 Cache Cleaners." + else: + "You don't have enough Bytecoin." + + "Syntax Sugar Spray (+5 to JS, Python, Rust | -5 Bytecoin)": + if byte >= 5: + $ byte -= 5 + $ js_rep = min(js_rep + 5, 100) + $ p_rep = min(p_rep + 5, 100) + $ r_rep = min(r_rep + 5, 100) + "You bought Syntax Sugar Spray!" + else: + "You don't have enough Bytecoin." + + "Leave Shop": + jump after_shop + jump shop + + label after_shop: + "Thanks for visiting the shop!" + return From 7c3cf4a67a98eb7ac0671e61a042954a1c5452f0 Mon Sep 17 00:00:00 2001 From: Paola Bechalani Date: Tue, 3 Jun 2025 13:03:55 -0400 Subject: [PATCH 3/3] added bool --- BytesOfLove/game/gameMap/shop.rpy | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/BytesOfLove/game/gameMap/shop.rpy b/BytesOfLove/game/gameMap/shop.rpy index 368c81b..ece8d04 100644 --- a/BytesOfLove/game/gameMap/shop.rpy +++ b/BytesOfLove/game/gameMap/shop.rpy @@ -1,4 +1,7 @@ default cache_cleaner_count = 0 +default bought_charm_compiler = False +default bought_cache_cleaner = False +default bought_syntax_spray = False screen shop: label shop: @@ -11,6 +14,7 @@ screen shop: $ c_rep = min(c_rep + 10, 100) $ p_rep = min(p_rep + 10, 100) $ j_rep = min(j_rep + 10, 100) + $ bought_charm_compiler = True "You bought a Charm Compiler!" else: "You don't have enough Bytecoin." @@ -21,6 +25,7 @@ screen shop: $ j_rep = min(j_rep + 20, 100) $ c_rep = min(c_rep + 20, 100) $ cache_cleaner_count += 1 + $ bought_cache_cleaner = True "You bought a Cache Cleaner!" elif cache_cleaner_count >= 3: "You've already bought 3 Cache Cleaners." @@ -33,14 +38,16 @@ screen shop: $ js_rep = min(js_rep + 5, 100) $ p_rep = min(p_rep + 5, 100) $ r_rep = min(r_rep + 5, 100) + $ bought_syntax_spray = True "You bought Syntax Sugar Spray!" else: "You don't have enough Bytecoin." "Leave Shop": jump after_shop + jump shop label after_shop: "Thanks for visiting the shop!" - return + Return()