Skip to content

Commit

Permalink
add ifcoins command
Browse files Browse the repository at this point in the history
  • Loading branch information
AllyTally committed Jan 18, 2023
1 parent 99e2120 commit 7013310
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions desktop_version/src/Script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1230,6 +1230,14 @@ void scriptclass::run(void)
position--;
}
}
else if (words[0] == "ifcoins")
{
if (game.coins() >= ss_toi(words[1]))
{
load("custom_" + raw_words[2]);
position--;
}
}
else if (words[0] == "hidecoordinates")
{
map.setexplored(ss_toi(words[1]), ss_toi(words[2]), false);
Expand Down

0 comments on commit 7013310

Please sign in to comment.