An `Option<SomethingEnum>` before a different enum interprets it as a misspelling.

Bug Report

How to reproduce

In interaction_mancy.txt:

[CDI:MATERIAL:WATER:WEB_SPRAY]

This is a hardcoded token argument parser in cdi_token_args:

Material((MaterialTokenArg, BreathMaterialEnum))

How often does this bug happen?: Always

Result

The game is unable to parse [CDI:MATERIAL:WATER:WEB_SPRAY] correctly; it sees WEB_SPRAY as a misspelling of NONE (from NoneEnum), which is the only value accepted after WATER in the impl for MaterialTokenArg.

image

Expected

The Option<NoneEnum> should not interpret a following argument as a misspelled NoneEnum, but as a CORRECT BreathMaterialEnum.

Version