update hscript compatibility

This commit is contained in:
2024-04-13 15:23:14 -06:00
parent d7ec1900a4
commit 55459d338d

View File

@@ -106,9 +106,10 @@ class HInterface {
public function new(storyTree:StoryNode, viewCounts:Map<StoryNode, Int>) {
this.parser = new Parser();
parser.unops["*"] = false;
parser.unops["&"] = false;
parser.unops["->"] = false;
// Make new unops:
for (op in ["*", "&", "->"]) {
parser.opPriority.set(op, -2);
}
this.interp = new HankInterp(this);
this.interp.variables['_isTruthy'] = isTruthy.bind(viewCounts);