Skip to content

Commit

Permalink
Automatic Abilities can now be 'Case Sensitive'
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian MacIntosh committed May 21, 2020
1 parent d514251 commit b8a5868
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions heroscape.mse-game/game
Expand Up @@ -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
Expand Down Expand Up @@ -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: {
"<b-auto><nospellcheck>" + shldsize("19") + lowertags(to_upper(keyword)) + shldendsize() + "</nospellcheck></b-auto>" +
if expand then "<atom-reminder-{mode}>" + shldsize("13") + "\n" + reminder + shldendsize() + "</atom-reminder-{mode}>"
if expand then "<b-auto><nospellcheck>" + shldsize("19") + lowertags(to_upper(keyword)) + shldendsize() + "</nospellcheck></b-auto><atom-reminder-{mode}>" + shldsize("13") + "\n" + reminder + shldendsize() + "</atom-reminder-{mode}>" else keyword
}
remove_tags_spc(value)
)
Expand Down

0 comments on commit b8a5868

Please sign in to comment.