1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-12 23:35:59 +00:00

parser:: lands_at function

This commit is contained in:
Zeno Rogue
2024-07-27 18:40:41 +02:00
parent 063dc65e3c
commit 2ffda6da75
2 changed files with 12 additions and 2 deletions

View File

@@ -367,6 +367,12 @@ cld exp_parser::parse(int prio) {
res = texture::get_txp(real(val), imag(val), int(real(extra_params["p"]) + .5)-1);
}
#endif
else if(eat("lands_at(")) {
int score = iparse(0);
force_eat(")");
int i1, i2; count_at_level(i1, i2, score);
return i1;
}
else if(next() == '(') at++, res = parsepar();
else {
string number = next_token();