SuperFromND / iguana

Golang tool for automatically creating Ikemen GO movelists.
MIT License
10 stars 0 forks source link

Iguana does not properly handle `command="a" && command="b"`-style triggers #8

Open SuperFromND opened 11 months ago

SuperFromND commented 11 months ago

Some MUGEN characters specify multiple command inputs for a move like this:

[State -1, Multiple Moves via &&]
type = ChangeState
triggerall = command = "x" && command = "y"

However, Iguana can only parse the first statement and ignores everything afterwards:

Found move: {Multiple Moves via && [command="x"&&command="y"]}
...
Reading move: Multiple Moves via &&
Tokenizing string: x
Tokenized: x

One solution would be to internally split trigger strings using && as a delimiter. Problem is the current control flow of scrape_moves() doesn't really have an obvious place to slip that in, so a slight refactor might be needed first.