|
1 | 1 | package archipelago; |
2 | 2 |
|
| 3 | +import backend.window.PlatformUtil; |
3 | 4 | import haxe.ds.StringMap; |
4 | 5 |
|
5 | 6 | typedef Condition = { |
@@ -461,10 +462,60 @@ class APAprilFools extends APItem { |
461 | 462 | #if windows |
462 | 463 | options.set(7, function() { |
463 | 464 | 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 | + } |
466 | 516 | }); |
467 | 517 | }); |
| 518 | + #end |
468 | 519 |
|
469 | 520 |
|
470 | 521 |
|
|
0 commit comments