You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/archipelago/APPlayState.hx
+90-1Lines changed: 90 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1985,7 +1985,96 @@ class APPlayState extends PlayState {
1985
1985
})())) &&deathByLink) {
1986
1986
varcause:String="";
1987
1987
try {
1988
-
if (deathLinkPacket.cause!=null&& (deathLinkPacket.cause!=""||deathLinkPacket.cause!="")) cause=deathLinkPacket.cause+"\n[pause:0.5](Sounds like a skill issue...)";
1988
+
varextraMessages= [
1989
+
"Sounds like a skill issue...",
1990
+
"They must suck...",
1991
+
"At least they tried...",
1992
+
"What a noob...",
1993
+
"At least you aren't that bad... [pause:0.5]Or are you?",
1994
+
"Maybe next time...",
1995
+
"You can always try again...",
1996
+
"This doesn't affect you, right?",
1997
+
"What a shame...",
1998
+
"Better luck next time...",
1999
+
'Eh, you can always play ${PlayState.SONG.song} again...',
2000
+
"Dang...",
2001
+
"RIP..."
2002
+
];
2003
+
2004
+
// Find player ID from name and add game-specific messages
2005
+
if (apGame?.info() !=null&&deathLinkPacket?.source!=null) {
2006
+
varplayerID:Int=-1;
2007
+
varapClient=apGame.info();
2008
+
2009
+
// Find player ID by name - iterate through _slotInfo
2010
+
@:privateAccess
2011
+
for (idinapClient._slotInfo.keys()) {
2012
+
if (apClient._slotInfo.get(id).name==deathLinkPacket.source) {
2013
+
playerID=id;
2014
+
break;
2015
+
}
2016
+
}
2017
+
2018
+
// Get player's game and add game-specific messages
2019
+
if (playerID!=-1) {
2020
+
varplayerGame=apClient.get_player_game(playerID);
2021
+
2022
+
switch (playerGame.toLowerCase()) {
2023
+
case"friday night funkin'", "fnf":
2024
+
extraMessages=extraMessages.concat([
2025
+
"Skill issue detected...",
2026
+
"They couldn't hit the notes...",
2027
+
"Rhythm game more like skill issue game...",
2028
+
"Maybe they should practice on easy mode...",
2029
+
"Beep boop beep... FAIL!"
2030
+
]);
2031
+
case"minecraft":
2032
+
extraMessages=extraMessages.concat([
2033
+
"They got creeper'd...",
2034
+
"Fell into lava, didn't they?",
2035
+
"Should have brought more torches...",
2036
+
"Respawning in 3... 2... 1...",
2037
+
"At least they didn't lose their diamonds... right?"
2038
+
]);
2039
+
case"the legend of zelda: a link to the past":
2040
+
extraMessages=extraMessages.concat([
2041
+
"Link has fallen...",
2042
+
"The princess will have to wait...",
2043
+
"Game Over! Press Start to continue...",
2044
+
"Even the Master Sword couldn't save them...",
2045
+
"Ganon laughs in the distance..."
2046
+
]);
2047
+
case"super metroid":
2048
+
extraMessages=extraMessages.concat([
2049
+
"Samus has lost all energy...",
2050
+
"The mission has failed...",
2051
+
"Planet Zebes claims another victim...",
2052
+
"Should have collected more energy tanks...",
2053
+
"The last Metroid is still in captivity..."
2054
+
]);
2055
+
case"super mario world":
2056
+
extraMessages=extraMessages.concat([
2057
+
"Mario has lost a life...",
2058
+
"Game Over! Thank you Mario!",
2059
+
"Bowser wins this round...",
2060
+
"Should have grabbed that mushroom...",
2061
+
"Mamma mia! That's-a gonna hurt!"
2062
+
]);
2063
+
default:
2064
+
extraMessages=extraMessages.concat([
2065
+
"They failed at "+playerGame+"...",
2066
+
"Game over in "+playerGame+"!",
2067
+
"Apparently "+playerGame+" is harder than it looks...",
2068
+
"RIP to another "+playerGame+" player..."
2069
+
]);
2070
+
}
2071
+
}
2072
+
}
2073
+
2074
+
if (deathLinkPacket.cause!=null&& (deathLinkPacket.cause!=""||deathLinkPacket.cause!="")) {
0 commit comments