diff --git a/data/magic.mse-game/game b/data/magic.mse-game/game index ddf18afa..df2df3e9 100644 --- a/data/magic.mse-game/game +++ b/data/magic.mse-game/game @@ -153,16 +153,9 @@ init script: # step 1 : remove all automatic tags tag_remove_rule(tag: "") + tag_remove_rule(tag: "") + - # # step 2 : reminder text for keywords - # keyword_rule( - # expand_reminder_game: { set.automatic_reminder_text == "yes" }, - # expand_reminder_set: { set.automatic_reminder_text != "no" }, - # before: " (", - # after: ")", - # fix_english: true - # ) + + # step 2 : reminder text for keywords expand_keywords_rule( - default_expand: { set.automatic_reminder_text == "yes" }, + default_expand: { contains(match:mode, set.automatic_reminder_text, match:mode) }, combine: { "{keyword} ({reminder})" } ) + # step 3a : expand shortcut words ~ and CARDNAME @@ -899,8 +892,6 @@ keyword mode: name: custom description: Custom keywords -keyword parameter type: - name: no parameter keyword parameter type: name: mana match: [XYZ0-9WUBRGS/]+ @@ -909,7 +900,7 @@ keyword parameter type: name: cost #insert as: word match: [XYZ0-9WUBRGS/]+|[^(.,\n]|([XYZ0-9WUBRGS/]+,)?[^(.,\n]* - script: "{mana_sort()}" # TODO : DEBUG + #script: "{mana_sort()}" # TODO : DEBUG keyword parameter type: name: number match: [XYZ0-9]+ diff --git a/src/data/action/keyword.cpp b/src/data/action/keyword.cpp index c807e8c5..d250ef0c 100644 --- a/src/data/action/keyword.cpp +++ b/src/data/action/keyword.cpp @@ -190,3 +190,17 @@ void KeywordReminderTextValue::highlight(const String& code, const vector