From b8a58689c7b96765f18727624bb610af8cd9d881 Mon Sep 17 00:00:00 2001 From: Brian MacIntosh Date: Wed, 20 May 2020 21:16:10 -0700 Subject: [PATCH] Automatic Abilities can now be 'Case Sensitive' --- heroscape.mse-game/game | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/heroscape.mse-game/game b/heroscape.mse-game/game index f1ac0a2..7abcbcd 100644 --- a/heroscape.mse-game/game +++ b/heroscape.mse-game/game @@ -186,9 +186,13 @@ set field: name: description multi line: true set field: - type: boolean + type: choice name: automatic abilities description: Automatically fill ability texts using keyword database? + choice: Case Sensitive + choice: Case Insensitive + choice: Off + initial: Case Insensitive set field: type: boolean name: glyph reminder @@ -866,10 +870,12 @@ card field: script: expand_keywords( default_expand: {true} - condition: {set.automatic_abilities} + condition: { + (set.automatic_abilities == "Case Insensitive" or set.automatic_abilities == "yes") + or (set.automatic_abilities == "Case Sensitive" and correct_case) + } combine: { - "" + shldsize("19") + lowertags(to_upper(keyword)) + shldendsize() + "" + - if expand then "" + shldsize("13") + "\n" + reminder + shldendsize() + "" + if expand then "" + shldsize("19") + lowertags(to_upper(keyword)) + shldendsize() + "" + shldsize("13") + "\n" + reminder + shldendsize() + "" else keyword } remove_tags_spc(value) )