Skip to content

Commit

Permalink
Merge pull request KadeArchive#1662 from CyndaquilDAC/cleaner-dialogu…
Browse files Browse the repository at this point in the history
…e-code

Cleaner dialogue code
  • Loading branch information
Kade-github authored Aug 8, 2021
2 parents 35c725a + ea1417d commit 1873a94
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 33 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
:dad:Not bad for an ugly worm.
:dad:But this time I'll rip your nuts off right after your girlfriend finishes gargling mine.
:dad:Not bad for an ugly worm.
:dad:But this time I'll rip your nuts off right after your girlfriend finishes gargling mine.
:bf:Bop beep be be skdoo bep
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
:dad:Ah, a new fair maiden has come in search of true love!
:dad:A serenade between gentlemen shall decide where her beautiful heart shall reside.
:dad:Ah, a new fair maiden has come in search of true love!
:dad:A serenade between gentlemen shall decide where her beautiful heart shall reside.
:bf:Beep bo bop
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:dad:Direct contact with real humans, after being trapped in here for so long...
:dad:and HER of all people.
:dad:I'll make her father pay for what he's done to me and all the others,,,,
:dad:I'll beat you and make you take my place.
:dad:Direct contact with real humans, after being trapped in here for so long...
:dad:and HER of all people.
:dad:I'll make her father pay for what he's done to me and all the others,,,,
:dad:I'll beat you and make you take my place.
:dad:You don't mind your bodies being borrowed right? It's only fair...
29 changes: 4 additions & 25 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -456,32 +456,11 @@ class PlayState extends MusicBeatState
trace('INFORMATION ABOUT WHAT U PLAYIN WIT:\nFRAMES: ' + PlayStateChangeables.safeFrames + '\nZONE: ' + Conductor.safeZoneOffset + '\nTS: '
+ Conductor.timeScale + '\nBotPlay : ' + PlayStateChangeables.botPlay);

// dialogue shit
switch (songLowercase)
switch(songLowercase)
{
case 'tutorial':
dialogue = ["Hey you're pretty cute.", 'Use the arrow keys to keep up \nwith me singing.'];
case 'bopeebo':
dialogue = [
'HEY!',
"You think you can just sing\nwith my daughter like that?",
"If you want to date her...",
"You're going to have to go \nthrough ME first!"
];
case 'fresh':
dialogue = ["Not too shabby boy.", ""];
case 'dadbattle':
dialogue = [
"gah you think you're hot stuff?",
"If you can beat me here...",
"Only then I will even CONSIDER letting you\ndate my daughter!"
];
case 'senpai':
dialogue = CoolUtil.coolTextFile(Paths.txt('data/senpai/senpaiDialogue'));
case 'roses':
dialogue = CoolUtil.coolTextFile(Paths.txt('data/roses/rosesDialogue'));
case 'thorns':
dialogue = CoolUtil.coolTextFile(Paths.txt('data/thorns/thornsDialogue'));
//if the song has dialogue, so we don't accidentally try to load a nonexistant file and crash the game
case 'senpai' | 'roses' | 'thorns':
dialogue = CoolUtil.coolTextFile(Paths.txt('data/' + songLowercase + '/dialogue'));
}

// defaults if no stage was found in chart
Expand Down

0 comments on commit 1873a94

Please sign in to comment.