Skip to content

Commit 6b8f904

Browse files
authored
Merge pull request #179 from TYPSwift/main
Dynamic Affection change #171
2 parents 40daa20 + 7ad9267 commit 6b8f904

File tree

15 files changed

+64
-61
lines changed

15 files changed

+64
-61
lines changed

BytesOfLove/game/script.rpy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ define dc = Character("Director of Computing College", color="#10436b")
2929
define pe = Character("Perl", color="5c5f5d")
3030
define bsl = Character("Breakout Session Leader", color="5c5f5d")
3131

32+
#Affection change
33+
define affection_change = 2
34+
3235
#Rust
3336
image rust_normal = "Rust/Rust_Base_1.png"
3437
image rust_talk = "Rust/Rust_Base_2.png"

BytesOfLove/game/scripts/before_orientation/before_orientation_choices/w0_d1_DoorDash.rpy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ label w0_d1_DoorDash:
1818
mc "\"Whatever, at least you finally got here.\""
1919

2020
"Tip the driver":
21-
$ pe_rep = reputation(pe_rep, 2)
21+
$ pe_rep = reputation(pe_rep, affection_change)
2222
$ byte = bytecoin(byte, -35)
2323
u "\"Your total is 30 Bytecoin.\""
2424
mc "{i}*Hands over 35 Bytecoin*{/i}"
@@ -28,7 +28,7 @@ label w0_d1_DoorDash:
2828
mc "{i}*Closes the door*{/i}"
2929

3030
"Don't tip the driver":
31-
$ pe_rep = reputation(pe_rep, -2)
31+
$ pe_rep = reputation(pe_rep, -affection_change)
3232
$ byte = bytecoin(byte, -30)
3333
u "\"Your total is 30 Bytecoin.\""
3434
mc "{i}*Hands over 30 Bytecoin with no tip*{/i}"

BytesOfLove/game/scripts/before_orientation/before_orientation_choices/w0_d1_VendingMachine.rpy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ label w0_d1_VendingMachine:
1414
menu w0_d1_Rust:
1515
"Be mean":
1616

17-
$ r_rep = reputation(r_rep, -2)
17+
$ r_rep = reputation(r_rep, -affection_change)
1818
mc "\"Yeah, I do, my name is [mc].\""
1919
hide rust_normal
2020
show rust_talk at right
@@ -38,7 +38,7 @@ label w0_d1_VendingMachine:
3838
"{i}*Rust leaves*{/i}"
3939

4040
"Be nice":
41-
$ r_rep = reputation(r_rep, 2)
41+
$ r_rep = reputation(r_rep, affection_change)
4242

4343
hide rust_talk
4444
show rust_normal at right

BytesOfLove/game/scripts/orientation/w0_d2.rpy

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ label w0_d2:
145145
"Make up excuse(s)":
146146
hide cpp_talk
147147
show cpp_normal
148-
$ p_rep = reputation(r_rep, -1)
149-
$ js_rep = reputation(r_rep, -1)
150-
$ c_rep = reputation(r_rep, -1)
148+
$ p_rep = reputation(r_rep, int(-affection_change * 0.5))
149+
$ js_rep = reputation(r_rep, int(-affection_change * 0.5))
150+
$ c_rep = reputation(r_rep, int(-affection_change * 0.5))
151151
mc "\"So, I was about to get in my car this morning, when suddenly I heard a faint meow.\""
152152
mc "\"Looking up, I was able to see a cat 20 feet up the tree.\""
153153
mc "\"I had to help this cat get down, so I climbed the tree.\""
@@ -206,7 +206,7 @@ label w0_d2:
206206
# Another short interaction not worth seperating files. Temporarily named everything "Respond to X" since I didnt know what to put - Lazzy
207207
menu w0_d2_BreakoutResponse1:
208208
"Respond to Javascript":
209-
$ js_rep = reputation(js_rep, 2)
209+
$ js_rep = reputation(js_rep, affection_change)
210210
mc "\"Yeah, it is pretty annoying that your mom won’t leave you alone.\""
211211
mc "\"Parents can be so annoying.\""
212212
mc "\"I wish my mom had cared enough to come with me to orientation though.\""
@@ -217,7 +217,7 @@ label w0_d2:
217217
show js_normal at left
218218

219219
"Respond to Python":
220-
$ p_rep = reputation(p_rep, 2)
220+
$ p_rep = reputation(p_rep, affection_change)
221221
mc "\"Yeah I agree with Python, computer science definitely seems cool.\""
222222
mc "\"I’m just like you, I don’t have much experience, but I’m excited to learn.\""
223223
mc "\"And A.I. is a great field to make money in.\""
@@ -228,7 +228,7 @@ label w0_d2:
228228
show python_pocket at right
229229

230230
"Respond to C++":
231-
$ c_rep = reputation(c_rep, 3)
231+
$ c_rep = reputation(c_rep, int(affection_change * 1.5))
232232
mc "\"I think it’s really cool that your parents work for those companies, C++.\""
233233
mc "\"I’ve never heard of iClicker or Mentimeter.\""
234234
mc "\"I don’t know much when it comes to coding, but you sound really experienced.\""

BytesOfLove/game/scripts/orientation/w0_d2_choices/w0_d2_LunchApology.rpy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ label w0_d2_LunchApology:
1616
mc "\"Hey guys, about what happened on the campus tour...\""
1717

1818
"Apologize and smooth things over":
19-
$ c_rep = reputation(c_rep, 2)
20-
$ p_rep = reputation(p_rep, 2)
21-
$ js_rep = reputation(js_rep, 2)
19+
$ c_rep = reputation(c_rep, affection_change)
20+
$ p_rep = reputation(p_rep, affection_change)
21+
$ js_rep = reputation(js_rep, affection_change)
2222
mc "\"I just want to apologize one more time for what happened.\""
2323
mc "\"I think that we could all be good friends.\""
2424
mc "\"And I am excited to get to know you guys better in the future.\""

BytesOfLove/game/scripts/orientation/w0_d2_choices/w0_d2_LunchFlirt.rpy

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
label w0_d2_LunchFlirt:
22
menu w0_d2_LunchFlirtC:
33
"Flirt with Python":
4-
$ p_rep = reputation(p_rep, -2)
4+
$ p_rep = reputation(p_rep, -affection_change)
55
mc "\"Especially you Python.\""
66
mc "{i}Winks{/i}"
77
hide python_pocket
@@ -16,7 +16,7 @@ label w0_d2_LunchFlirt:
1616
hide cpp_talk
1717
show cpp_normal at right
1818
"Flirt with C++":
19-
$ c_rep = reputation(c_rep, -2)
19+
$ c_rep = reputation(c_rep, -affection_change)
2020
mc "\"Especially you C++.\""
2121
mc "{i}Winks{/i}"
2222
hide cpp_normal
@@ -32,7 +32,7 @@ label w0_d2_LunchFlirt:
3232
show js_normal
3333

3434
"Flirt with JavaScript":
35-
$ js_rep = reputation(js_rep, -2)
35+
$ js_rep = reputation(js_rep, -affection_change)
3636
mc "\"Especially you JavaScript.\""
3737
mc "{i}Winks{/i}"
3838
hide js_normal
@@ -48,9 +48,9 @@ label w0_d2_LunchFlirt:
4848
show cpp_normal at right
4949

5050
"Everyone":
51-
$ p_rep = reputation(p_rep, -6)
52-
$ js_rep = reputation(js_rep, -6)
53-
$ c_rep = reputation(c_rep, -6)
51+
$ p_rep = reputation(p_rep, -affection_change *3)
52+
$ js_rep = reputation(js_rep, -affection_change * 3)
53+
$ c_rep = reputation(c_rep, -affection_change * 3)
5454
mc "\"Maybe I could get to know all of you really well back at my hotel tonight...\""
5555
hide cpp_normal
5656
show cpp_talk at right

BytesOfLove/game/scripts/orientation/w0_d2_choices/w0_d2_StatueC.rpy

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
label w0_d2_StatueC:
2-
$ c_rep = reputation(c_rep, 2)
3-
$ p_rep = reputation(p_rep, -2)
4-
$ js_rep = reputation(js_rep, -2)
2+
$ c_rep = reputation(c_rep, affection_change)
3+
$ p_rep = reputation(p_rep, -affection_change)
4+
$ js_rep = reputation(js_rep, -affection_change)
55
hide python_pocket_happy
66
show python_angry at left
77
hide cpp_talk
@@ -36,7 +36,7 @@ label w0_d2_StatueC:
3636
c "\"Hm, so you don’t think I’m cute?\""
3737

3838
"Admit C++ is cute":
39-
$ c_rep = reputation(c_rep, 2)
39+
$ c_rep = reputation(c_rep, affection_change)
4040
hide cpp_talk
4141
show cpp_normal
4242
mc "{i}Flustered{/i}"
@@ -73,7 +73,7 @@ label w0_d2_StatueC:
7373
show cpp_angry
7474

7575
"Call out C++":
76-
$ c_rep = reputation(c_rep, -2)
76+
$ c_rep = reputation(c_rep, -affection_change)
7777
hide cpp_talk
7878
show cpp_normal
7979
mc "\"Don’t go fishing for a compliment just because I agreed with you...\""

BytesOfLove/game/scripts/orientation/w0_d2_choices/w0_d2_StatueDB.rpy

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
label w0_d2_StatueDB:
2-
$ c_rep = reputation(c_rep, -2)
3-
$ p_rep = reputation(p_rep, -2)
4-
$ js_rep = reputation(js_rep, -2)
2+
$ c_rep = reputation(c_rep, -affection_change)
3+
$ p_rep = reputation(p_rep, -affection_change)
4+
$ js_rep = reputation(js_rep, -affection_change)
55
hide python_pocket_happy
66
show python_pocket at left
77
hide cpp_talk
@@ -62,9 +62,9 @@ label w0_d2_StatueDBContinue:
6262
mc "\"Well I am not going to sit here and say that you guys aren’t cute...\""
6363

6464
"Deny that they're cute":
65-
$ c_rep = reputation(c_rep, -2)
66-
$ p_rep = reputation(p_rep, -2)
67-
$ js_rep = reputation(js_rep, -2)
65+
$ c_rep = reputation(c_rep, -affection_change)
66+
$ p_rep = reputation(p_rep, -affection_change)
67+
$ js_rep = reputation(js_rep, -affection_change)
6868
hide python_angry_talk
6969
show python_angry at left
7070
mc "\"No way! I don’t think that! That’s crazy! I mean-\""

BytesOfLove/game/scripts/orientation/w0_d2_choices/w0_d2_StatueJS.rpy

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
label w0_d2_StatueJS:
2-
$ p_rep = reputation(p_rep, 2)
3-
$ js_rep = reputation(js_rep, 2)
4-
$ c_rep = reputation(c_rep, -2)
2+
$ p_rep = reputation(p_rep, affection_change)
3+
$ js_rep = reputation(js_rep, affection_change)
4+
$ c_rep = reputation(c_rep, -affection_change)
55
hide js_talk
66
show js_normal at right
77
hide python_pocket_happy
@@ -47,7 +47,7 @@ label w0_d2_StatueJS:
4747
js "\"Hm, so do you think I’m cute?\""
4848

4949
"Admit JavaScript is cute":
50-
$ js_rep = reputation(js_rep, 2)
50+
$ js_rep = reputation(js_rep, affection_change)
5151
mc "{i}Flustered{/i}"
5252
mc "\"Well... that’s not exactly what I was saying...\""
5353
mc "\"But, I do think you’re kind of cute.\""
@@ -75,7 +75,7 @@ label w0_d2_StatueJS:
7575
mc "\"Woah, I’m not superficial, I just think--\""
7676

7777
"Call out JavaScript":
78-
$ js_rep = reputation(js_rep, -2)
78+
$ js_rep = reputation(js_rep, -affection_change)
7979
mc "\"Alright, don’t go fishing for a compliment just because I agreed with you...\""
8080
mc "\"I agree that Python shouldn’t go around calling statues cool without knowing what they represent.\""
8181
mc "\"That's it.\""

BytesOfLove/game/scripts/orientation/w0_d2_choices/w0_d2_StatueSexist.rpy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ label w0_d2_StatueSexist:
1212
"Say something sexist":
1313
hide python_angry_talk
1414
show python_angry at left
15-
$ p_rep = reputation(p_rep, -4)
16-
$ js_rep = reputation(js_rep, -4)
17-
$ c_rep = reputation(c_rep, -4)
15+
$ p_rep = reputation(p_rep, -affection_change * 2)
16+
$ js_rep = reputation(js_rep, -affection_change * 2)
17+
$ c_rep = reputation(c_rep, -affection_change * 2)
1818
mc "\"Look sweetheart, I don’t need your help here.\""
1919
hide python_angry
2020
show python_angry_talk at left

0 commit comments

Comments
 (0)