From aa64237d890d5762192e3567402632ac7da75bf9 Mon Sep 17 00:00:00 2001 From: Joshua Raphael Date: Sat, 1 Feb 2025 13:05:01 -0700 Subject: [PATCH] add vscode syntax highlighting --- .vscode/settings.json | 5 +++++ 18190.rascript | 24 ++++++++++++------------ 2 files changed, 17 insertions(+), 12 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..9487fdc --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "files.associations": { + "*.rascript": "fsharp" + } +} \ No newline at end of file diff --git a/18190.rascript b/18190.rascript index a205ea4..e45aa40 100644 --- a/18190.rascript +++ b/18190.rascript @@ -117,48 +117,48 @@ CHAPTER8 = 0x00000016 // Rainbow Spirit: I can reach the stars and find a way home. // Antler Ancestor: Hop, hey and farewell! -chapterLookup = { - 0x0000001b: { - "chapter": 1, +chapterLookup = [ + { + "id": 0x0000001b, "description": "The Heart Tree", "hearts": 2, "brownPowerUp": false, "orangePowerUp": false, "blackPowerUp": false }, - 0x00000000: { - "chapter": 2, + { + "id": 0x00000000, "description": "We're on our Way", "hearts": 1, "brownPowerUp": false, "orangePowerUp": false, "blackPowerUp": false }, - 0x00000003: { - "chapter": 3, + { + "id": 0x00000003, "description": "Wilderness", "hearts": 3, "brownPowerUp": false, "orangePowerUp": false, "blackPowerUp": false }, - 0x00000004: { - "chapter": 4, + { + "id": 0x00000004, "description": "A Little Cave", "hearts": 3, "brownPowerUp": false, "orangePowerUp": false, "blackPowerUp": false }, - 0x00000005: { - "chapter": 5, + { + "id": 0x00000005, "description": "Antler Ancestor", "hearts": 3, "brownPowerUp": true, "orangePowerUp": false, "blackPowerUp": false } -} +] function CharacterJumps( hasBrownPowerUp, hasOrangePowerUp, hasBlackPowerUp ) { conditions = [