Skip to content

Commit 699dfc1

Browse files
committed
Update APItem.hx
1 parent 823c7fe commit 699dfc1

File tree

1 file changed

+53
-2
lines changed

1 file changed

+53
-2
lines changed

source/archipelago/APItem.hx

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package archipelago;
22

3+
import backend.window.PlatformUtil;
34
import haxe.ds.StringMap;
45

56
typedef Condition = {
@@ -461,10 +462,60 @@ class APAprilFools extends APItem {
461462
#if windows
462463
options.set(7, function() {
463464
APItem.createCustomItem("April Fools - Windows Notification", ConditionHelper.Everywhere(), function() {
464-
var notification = new haxe.win32.Notification("April Fools!", "This is a Windows notification!");
465-
notification.show();
465+
var creepyMessages = [
466+
"I can see you...",
467+
"Did you hear that?",
468+
"Don't look behind you.",
469+
"Your time is running out.",
470+
"Is someone watching?",
471+
"Check your surroundings.",
472+
"What was that noise?",
473+
"Are you alone?",
474+
"Something feels off.",
475+
"Why is it so quiet?"
476+
];
477+
478+
var funnyMessages = [
479+
"Your computer is now self-aware. Just kidding!",
480+
"Why did the programmer quit? They didn't get arrays.",
481+
"404: Your luck not found.",
482+
"Did you just press a button? Bold move.",
483+
"Your keyboard is plotting against you.",
484+
"Congratulations! You've won absolutely nothing!",
485+
"This is not a bug, it's a feature.",
486+
"Your mouse just moved on its own. Or did it?",
487+
"Don't worry, the code is 100% bug-free. Maybe.",
488+
"Fun fact: This message is completely pointless.",
489+
"Your computer loves you. Platonically, of course.",
490+
"Warning: Too much coffee detected in your system.",
491+
"Achievement unlocked: Reading random messages.",
492+
"Your screen is now 10% brighter. Just kidding!",
493+
"Did you know? This message is wasting your time.",
494+
"Your CPU is laughing at you right now.",
495+
"Error 42: Life, the universe, and everything.",
496+
"Your RAM just said 'hi'.",
497+
"This is a test. Or is it?",
498+
"Your GPU wants a vacation.",
499+
"Z11 is watching you.",
500+
"Yuta is watching you.",
501+
"Yuta is always watching.",
502+
"Z11 is always watching.",
503+
"Yuta and Z11 are always watching.",
504+
"Yuta and Z11 are always watching you.",
505+
"Yuta and Z11 are always watching you play.",
506+
"Yuta and Z11 are always watching you play this game.",
507+
"The void is coming."
508+
];
509+
510+
var randomMessage = Std.random(100) < 20 // 20% chance for creepy messages
511+
? creepyMessages[Std.random(creepyMessages.length)]
512+
: funnyMessages[Std.random(funnyMessages.length)];
513+
if (!PlatformUtil.sendWindowsNotification("Archipelago", randomMessage)) {
514+
APItem.popup(randomMessage, "Archipelago", true);
515+
}
466516
});
467517
});
518+
#end
468519

469520

470521

0 commit comments

Comments
 (0)