1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-05-20 04:52:06 +00:00

an option to change rule_root in the tes file

This commit is contained in:
Zeno Rogue
2021-07-31 16:09:46 +02:00
parent 769411554f
commit a065e73013
2 changed files with 6 additions and 4 deletions
+4
View File
@@ -513,6 +513,10 @@ EX void load(const string& fname, bool after_sliding IS(false)) {
else if(ep.eat("treestate(")) {
rulegen::parse_treestate(c, ep);
}
else if(ep.eat("first_treestate(")) {
rulegen::rule_root = ep.iparse();
ep.force_eat(")");
}
else if(ep.eat("yendor_backsteps(")) {
c.yendor_backsteps = ep.iparse();
ep.force_eat(")");