Update the pbl file schema

* forum_auth and [translation] were missing
* passphrase and email are only relevant with forum_auth=no
This commit is contained in:
Celtic Minstrel 2022-12-28 16:06:35 -05:00
parent fba0970509
commit f43c52cdbf

View file

@ -20,12 +20,11 @@
{REQUIRED_KEY title string}
{REQUIRED_KEY version version}
{REQUIRED_KEY author string}
{REQUIRED_KEY passphrase string}
{REQUIRED_KEY description string}
{SIMPLE_KEY dependencies string}
{SIMPLE_KEY tags string}
{SIMPLE_KEY type addon_type}
{SIMPLE_KEY email email}
{SIMPLE_KEY forum_auth bool}
[if]
[not]
type=core
@ -34,9 +33,25 @@
{SIMPLE_KEY core string}
[/then]
[/if]
[if]
[not]
forum_auth=yes
[/not]
[then]
{SIMPLE_KEY passphrase string}
{SIMPLE_KEY email email}
[/then]
[/if]
[tag]
name="feedback"
{REQUIRED_KEY topic_id unsigned}
[/tag]
[tag]
name="translation"
max=infinite
{REQUIRED_KEY language string}
{REQUIRED_KEY title string}
{REQUIRED_KEY description string}
[/tag]
[/tag]
[/wml_schema]