Skip to content

Commit

Permalink
feat: checks
Browse files Browse the repository at this point in the history
  • Loading branch information
kalexmills committed Apr 30, 2023
1 parent 9688b97 commit 24101a8
Show file tree
Hide file tree
Showing 13 changed files with 442 additions and 245 deletions.
47 changes: 12 additions & 35 deletions cmd/scripts/dice_script.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,41 +5,18 @@ import (
"strings"
)

var input = `Whatever, bye.
I can't believe how long this took, you need to work on your efficiency. Bye.
Thanks for nothing. Bye.
I hope you do better next time. Bye.
This is ridiculous, I'll be finding another bank. Bye.
I can't believe I wasted my time here. Bye.
You really need to work on your customer service skills. Bye.
I hope you get your act together. Bye.
I don't have time for this nonsense. Bye.
You really need to speed things up. Bye.
I'm not impressed, bye.
I can't believe how incompetent you are. Bye.
This is unacceptable, bye.
I don't have patience for this kind of service. Bye.
I'm going to let your supervisor know how terrible this was. Bye.
I'm so disappointed in this experience. Bye.
I hope you take some customer service classes. Bye.
I can't believe how unprofessional this was. Bye.
You've just lost a customer. Bye.
This was a waste of my time. Bye.
I hope the next customer has a better experience than me. Bye.
I'm done with this bank. Bye.
I'm glad to be done dealing with you. Bye.
You really need to learn how to do your job. Bye.
I don't have any patience left for this kind of service. Bye.
I'm not coming back here, bye.
You've just lost my trust. Bye.
I can't believe how bad this was. Bye.
I'll be taking my business elsewhere. Bye.
You need to step up your game. Bye.
I hope you do better in the future. Bye.
I don't have any faith in this bank. Bye.
This is the worst service I've ever received. Bye.
I hope this experience was a learning lesson for you. Bye.
I'm going to tell everyone I know about this terrible service. Bye.`
var input = `"Good day! I'm here to cash this check and buy myself a nice cup of coffee."
"Hi! I'm so excited to deposit this check, I feel like I won the lottery."
"Hello! I'm just stopping by to cash my paycheck and treat myself to some ice cream."
"Hello! I'm here to cash this check and hopefully not spend it all in one place."
"Hello! I'm just stopping by to cash this check and buy some treats for my furry friend."
"Hello! I'm just stopping by to cash this check and maybe treat myself to a nice dinner."
"Good afternoon! I'm here to cash this check and hopefully start a new hobby."
"Hey, can you help me cash this check? I promise to be in a good mood all day."
"Hello! I'm just stopping by to cash this check and treat myself to a little shopping."
"Good afternoon! I'm here to cash this check and hopefully put a smile on someone's face."
"Hey, can you help me cash this check? I promise to share the good vibes."
"Hello! I'm just stopping by to cash this check and treat myself to a little self-care`

func main() {
lines := strings.Split(input, "\n")
Expand Down
8 changes: 4 additions & 4 deletions internal/days.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@ type Day struct {
func Days() []*Day {
result := []*Day{
0: { // more deposits than withdrawals
EndNode: "Manager_Day1_End",
Sequence: []string{"Manager_Day1", "random", "random", "random", "drone", "random", "random", "OldMan_Day1"},
Random: []string{"RandomDeposit_Polite", "RandomDeposit_Rude", "RandomDeposit_Polite", "RandomDeposit_Rude", "RandomWithdrawal_Polite", "RandomWithdrawal_Rude"},
EndNode: "Manager_Day1_End",
},
1: {
EndNode: "Manager_Day2_End",
Sequence: []string{"Manager_Day2", "random", "random", "drone", "random", "random", "OldMan_Day2"},
Random: []string{"RandomDeposit_Polite", "RandomDeposit_Rude", "RandomDeposit_Polite", "RandomDeposit_Rude", "RandomWithdrawal_Polite", "RandomWithdrawal_Rude"},
EndNode: "Manager_Day2_End",
},
2: {
Sequence: []string{"Manager_Day3", "RandomCheck_Polite", "random", "random", "drone", "random", "random", "OldMan_Day3"},
Random: []string{"RandomDeposit_Polite", "RandomDeposit_Rude", "RandomCheck_Polite", "RandomCheck_Rude", "RandomWithdrawal_Polite", "RandomWithdrawal_Rude"},
EndNode: "Manager_Day3_End",
Sequence: []string{"Manager_Day3", "random", "random", "drone", "random", "random", "OldMan_Day3"},
Random: []string{"RandomDeposit_Polite", "RandomDeposit_Rude", "RandomDeposit_Polite", "RandomDeposit_Rude", "RandomWithdrawal_Polite", "RandomWithdrawal_Rude"},
},
}
for _, day := range result {
Expand Down
Binary file modified internal/gamedata/img/check_back.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions internal/gamedata/yarn/Manager.yarn
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ But be careful, we can only cash valid checks.
Watch it! I won't take attitude from a subordinate!
Anyway...
You can use that shredder next to you to scan the checks.
<< terminal_on >> // TODO: Remove
<< shredder_on >>
-> Wait, what?
You heard right. It's a combination shredder and check scanner.
Expand All @@ -101,6 +102,8 @@ So calm down any customers that may be worrying about this.
Just keep up the good work, and we'll get through this together.
-> Right...
-> Of course! We'll do it together...

<< depart >>
===
title: Manager_Day3_End
portrait: manager.png
Expand Down
35 changes: 35 additions & 0 deletions internal/gamedata/yarn/Random_Polite.yarn
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,41 @@ intent: deposit
<< put_cash {dice(35)} >> // lay down some extra cash and see if the player notices.
<< endif>>

<< jump SmallTalk_Polite >>
===
title: RandomCheck_Polite
portrait: random
intent: cash_check
---
<< set $d to 0 >>
<< set $d to dice(12) >>
<< if $d == 1 >>
"Good day! I'm here to cash this check and buy myself a nice cup of coffee."
<< elseif $d == 2 >>
"Hi! I'm so excited to deposit this check, I feel like I won the lottery."
<< elseif $d == 3 >>
"Hello! I'm just stopping by to cash my paycheck and treat myself to some ice cream."
<< elseif $d == 4 >>
"Hello! I'm here to cash this check and hopefully not spend it all in one place."
<< elseif $d == 5 >>
"Hello! I'm just stopping by to cash this check and buy some treats for my furry friend."
<< elseif $d == 6 >>
"Hello! I'm just stopping by to cash this check and maybe treat myself to a nice dinner."
<< elseif $d == 7 >>
"Good afternoon! I'm here to cash this check and hopefully start a new hobby."
<< elseif $d == 8 >>
"Hey, can you help me cash this check? I promise to be in a good mood all day."
<< elseif $d == 9 >>
"Hello! I'm just stopping by to cash this check and treat myself to a little shopping."
<< elseif $d == 10 >>
"Good afternoon! I'm here to cash this check and hopefully put a smile on someone's face."
<< elseif $d == 11 >>
"Hey, can you help me cash this check? I promise to share the good vibes."
<< elseif $d == 12 >>
"Hello! I'm just stopping by to cash this check and treat myself to a little self-care
<<endif>>

<< put_counter check >>
<< jump SmallTalk_Polite >>
===
title: RandomWithdrawal_Polite
Expand Down
31 changes: 31 additions & 0 deletions internal/gamedata/yarn/Random_Rude.yarn
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,37 @@ intent: deposit
<< put_cash {dice(35)} >> // lay down some extra cash and see if the player notices.
<< endif >>

<< jump SmallTalk_Rude >>
===
title: RandomCheck_Rude
portrait: random
intent: cash_check
---
<< set $d to 0 >>
<< set $d to dice(10) >>
<< if $d == 1 >>
What's taking you guys so long? I need to cash this check now.
<< elseif $d == 2 >>
This bank is ridiculous, can you hurry up and help me cash my check?
<< elseif $d == 3 >>
Do I really have to fill out this form just to cash a check?
<< elseif $d == 4 >>
Excuse me, I've been waiting here for ages to cash this check.
<< elseif $d == 5 >>
This bank is terrible, can you please just help me cash my check?
<< elseif $d == 6 >>
Can you do your job properly, I need to cash this check ASAP.
<< elseif $d == 7 >>
Why is it taking so long to cash this check, it's just a piece of paper.
<< elseif $d == 8 >>
I don't have the patience for this, just hurry up and cash my check.
<< elseif $d == 9 >>
This bank is a nightmare, I can't even cash a simple check without a long wait.
<< elseif $d == 10 >>
Can you please just help me cash this check, I don't have time for this.
<<endif>>

<< put_counter check >>
<< jump SmallTalk_Rude >>
===
title: RandomWithdrawal_Rude
Expand Down
Loading

0 comments on commit 24101a8

Please sign in to comment.