mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Lower case keywords are now recognized, but only if all parameters are given.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1078 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -311,9 +311,7 @@ mana_context :=
|
||||
| <param-cost><match>, # keyword argument that is declared as cost
|
||||
";
|
||||
# truncates the name of legends
|
||||
legend_filter := replace@(match:", [A-Z,a-z,Æ,0-9,' ]*", replace: "" )+
|
||||
replace@(match:" of [A-Z,a-z,Æ,0-9,' ]*", replace: "" )+
|
||||
replace@(match:" the [A-Z,a-z,Æ,0-9,' ]*", replace: "" )
|
||||
legend_filter := replace@(match:"(, | of | the ).*", replace: "" )
|
||||
# the rule text filter
|
||||
# - adds mana symbols
|
||||
# - makes text in parentheses italic
|
||||
@@ -323,7 +321,12 @@ text_filter :=
|
||||
remove_tag@(tag: "<i-auto>") +
|
||||
# step 2 : reminder text for keywords
|
||||
expand_keywords@(
|
||||
default_expand: { chosen(choice:mode, set.automatic_reminder_text) },
|
||||
condition: {
|
||||
correct_case or (mode != "pseudo" and not used_placeholders)
|
||||
}
|
||||
default_expand: {
|
||||
chosen(choice:if correct_case then mode else "lower case", set.automatic_reminder_text)
|
||||
},
|
||||
combine: {
|
||||
if mode == "pseudo" then "<i-auto>{keyword}</i-auto>"
|
||||
else "{keyword}<atom-reminder-{mode}> ({process_english_hints(reminder)})</atom-reminder-{mode}>" }
|
||||
|
||||
@@ -50,6 +50,7 @@ set field:
|
||||
choice: pseudo
|
||||
choice: action
|
||||
choice: custom
|
||||
choice: lower case
|
||||
initial: old, core, expert, pseudo, action, custom
|
||||
# Convert from older mse versions
|
||||
script:
|
||||
|
||||
Reference in New Issue
Block a user