Skip to content

Loreline v0.9.1

Choose a tag to compare

@github-actions github-actions released this 02 Jul 16:48
· 105 commits to main since this release

A bugfix release focused on condition parsing, choice introspection with insertions, and better compatibility with C# when exporting it from Haxe without erased generics.

Language & Runtime

  • Number-leading and subtraction conditions now parse correctly: if 5 > 3, if score - bonus >= 0, and similar were previously only recognized when the condition started with an identifier.
  • + inside a choice's if condition (e.g. Open gate if score + bonus >= 5) no longer breaks parsing. Trailing if conditions are now strictly single-line, so a condition can no longer swallow a following insertion or option.
  • Choice introspection with insertions: choices(), choices_all() and choices_disabled() now return the full flattened choice list when a choice contains insertions, and stay correct across save/restore (#28).
  • Brace-less nested objects no longer require a trailing comma before a dedent (#27).

C# Target

  • C# export now works without -D erase-generics when using Loreline as a Haxe dependency exported to C# (no loreline_* defines).
  • Removed the external yaml haxelib dependency, replaced by a small built-in YAML subset parser, which also fixes compatibility issues with C# target.

Custom Functions

  • Fixed custom function wrapping on JavaScript, Lua, and Python (#20).

Full Changelog: v0.9.0...v0.9.1