Skip to content

Commit

Permalink
1.70 for v0.43.0
Browse files Browse the repository at this point in the history
Add two new adventure functions
  • Loading branch information
d0sboots committed Feb 24, 2024
1 parent 58ff807 commit dfbbbab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

<div class="editor-info">
<div>
<span class="infotext">Editor: 1.69 ─ Game: v0.42.0</span>
<span class="infotext">Editor: 1.70 ─ Game: v0.43.0</span>
<br/>
<span id="warning" class="infotext warning">Cannot access Local Storage. Scripts will not save!</span>
<a id="compression" class="infotext warning" target="_blank" style="display:none" href="old_browser.html">
Expand Down
4 changes: 4 additions & 0 deletions scripts/lexer-functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ local strings = {
eraDivider = {"damage", "health"},

keyItem = {"map", "emeraldMap", "compass", "ultraKey", "lantern", "eodArmor", "thornsArmor", "bootsHaste", "bootsPhasing", "leechSword", "impaler", "manaReaver", "hammer", "holyBomb", "market", "bookSpells", "bag", "masterSword", "masterArmor"},
entityType = {"Chest", "Bomb", "Rock", "Door", "Enemy", "Elite", "Mimic"},
};

for _, tbl in pairs (strings) do
Expand Down Expand Up @@ -79,6 +80,7 @@ VALIDATOR = {
eraDivider = function(value) return stringValid("eraDivider", value, "Era dividers"); end,

keyItem = function(value) return stringValid("keyItem", value, "Key Items/Relics"); end,
entityType = function(value) return stringValid("entityType", value, "Adventure Entity Types"); end,
};

local primitives = {void=1, impulse=1, bool=1, int=1, double=1, string=1, vector=1, op_set=2, op_comp=2, op_mod=2};
Expand Down Expand Up @@ -298,7 +300,9 @@ int arcade.adventure.playerHealth() Arcade #adventure.playerHealth#
int arcade.adventure.playerArmor() Arcade #adventure.playerArmor#
int arcade.adventure.playerAttack() Arcade #adventure.playerAttack#
int arcade.adventure.bombs() Arcade #adventure.bombs#
int arcade.adventure.countEntities(string:type[entityType]) Arcade #adventure.countEntities#
int arcade.adventure.emerald() Arcade #adventure.emeralds#
int arcade.adventure.goldenHeart() Arcade #adventure.goldenHearts#
int arcade.adventure.keys() Arcade #adventure.keys#
int arcade.adventure.mana() Arcade #adventure.mana#
bool arcade.adventure.hasPhoenixFeather() Arcade
Expand Down

0 comments on commit dfbbbab

Please sign in to comment.