MKM + PIP type/keyword updates (#33)

* add ES, PT, IT, ZHS Scientist from REX
* add ES and IT Doctor from Arcade Gannon
* Add English MKM and PIP types (Bobblehead, Junk, Case, Sloth, Synth) and keywords (Cloak, Collect Evidence, Disguise, Suspect, Junk tokens)
* Add MKM and PIP official localization for German, Spanish, French, Italian, and Japanese.
* Add Portuguese and Chinese localization for MKM types and keywords, and unofficial translation for Sloth.
* Correct the row/column order of Japanese creature type menus.

* Fix #34
* Adjust cost_parameter_script to handle mana costs better
* Add cost_parameter_script_nonspace to handle mana costs better in Japanese and Chinese

---------

Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
This commit is contained in:
cajun
2024-02-27 19:20:11 -06:00
committed by GitHub
parent 9f6634e6c0
commit 9814450371
14 changed files with 1405 additions and 897 deletions

View File

@@ -1290,9 +1290,13 @@ reverse_list :=
# Keyword functions.
cost_parameter_script :=
{
input := replace(input, match: "</?sym>", replace: "")
if contains(input, match: ",") or contains(input, match: "") then replace(input, match: "^([^,]+)(|,)", replace: "<sym>\\1</sym>\\2")
else ("<sym>" + input + "</sym>")
input := remove_tag(input, tag:"<sym-auto>")
replace(input, match:"\\b([HSVECTQXYZI0-9WUBRG/|]+)\\b(|,|<|$)", replace:"<sym-auto>\\1</sym-auto>\\2")
}
cost_parameter_script_nonspace :=
{
input := remove_tag(input, tag:"<sym-auto>")
replace(input, match:"(?<!<)([HSVECTQXYZI0-9WUBRG/|]+)", replace:"<sym-auto>\\1</sym-auto>")
}
cost_parameter_dash :=
{