mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 13:37:00 -04:00
Fixed loyalty cost icons after change not to use power/toughness fields
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@715 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -42,6 +42,13 @@ init script:
|
|||||||
else "black"
|
else "black"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Loyalty cost arrows
|
||||||
|
loyalty_image := {
|
||||||
|
if contains(input, match: "+") then "loyalty up"
|
||||||
|
else if contains(input, match: "-") then "loyalty down"
|
||||||
|
else "loyalty naught"
|
||||||
|
}
|
||||||
|
|
||||||
############################################################## Set info fields
|
############################################################## Set info fields
|
||||||
set info style:
|
set info style:
|
||||||
symbol:
|
symbol:
|
||||||
@@ -357,10 +364,7 @@ extra card field:
|
|||||||
type: choice
|
type: choice
|
||||||
name: loyalty cost box 1
|
name: loyalty cost box 1
|
||||||
editable: false
|
editable: false
|
||||||
script:
|
script: loyalty_image(card.loyalty_cost_1)
|
||||||
if contains(card.power, match: "+") then "loyalty up"
|
|
||||||
else if contains(card.power, match: "-") then "loyalty down"
|
|
||||||
else "loyalty naught"
|
|
||||||
choice: loyalty up
|
choice: loyalty up
|
||||||
choice: loyalty down
|
choice: loyalty down
|
||||||
choice: loyalty naught
|
choice: loyalty naught
|
||||||
@@ -368,10 +372,7 @@ extra card field:
|
|||||||
type: choice
|
type: choice
|
||||||
name: loyalty cost box 2
|
name: loyalty cost box 2
|
||||||
editable: false
|
editable: false
|
||||||
script:
|
script: loyalty_image(card.loyalty_cost_2)
|
||||||
if contains(card.power_2, match: "+") then "loyalty up"
|
|
||||||
else if contains(card.power_2, match: "-") then "loyalty down"
|
|
||||||
else "loyalty naught"
|
|
||||||
choice: loyalty up
|
choice: loyalty up
|
||||||
choice: loyalty down
|
choice: loyalty down
|
||||||
choice: loyalty naught
|
choice: loyalty naught
|
||||||
@@ -379,10 +380,7 @@ extra card field:
|
|||||||
type: choice
|
type: choice
|
||||||
name: loyalty cost box 3
|
name: loyalty cost box 3
|
||||||
editable: false
|
editable: false
|
||||||
script:
|
script: loyalty_image(card.loyalty_cost_3)
|
||||||
if contains(card.toughness_2, match: "+") then "loyalty up"
|
|
||||||
else if contains(card.toughness_2, match: "-") then "loyalty down"
|
|
||||||
else "loyalty naught"
|
|
||||||
choice: loyalty up
|
choice: loyalty up
|
||||||
choice: loyalty down
|
choice: loyalty down
|
||||||
choice: loyalty naught
|
choice: loyalty naught
|
||||||
|
|||||||
Reference in New Issue
Block a user