mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
Be more strict about type conversion:
* numbers are no longer auto converted to booleans, use to_boolean or != 0
* booleans are no longer auto converted to numbers, use to_int
* strings will soon no longer be auto converted to numbers, use to_int
Added version information ("since 0.3.7") to documentation
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1006 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -157,7 +157,7 @@ init script:
|
||||
|
||||
# Number of colors in a card_color
|
||||
card_color_color_count := {
|
||||
chosen(choice:"white") + chosen(choice:"blue") + chosen(choice:"black") + chosen(choice:"red") + chosen(choice:"green") + chosen(choice:"artifact")
|
||||
for each choice in ["white","blue","black","red","green","artifact"] do to_int(chosen())
|
||||
}
|
||||
# Clean up color field
|
||||
card_color_filter := {
|
||||
@@ -1883,7 +1883,18 @@ pack type:
|
||||
name: Common
|
||||
amount: 11
|
||||
filter: card.rarity == "common"
|
||||
|
||||
pack type:
|
||||
name: Additional rare
|
||||
card type:
|
||||
name: Rare
|
||||
amount: 1
|
||||
filter: card.rarity == "rare"
|
||||
pack type:
|
||||
name: Additional common
|
||||
card type:
|
||||
name: Rare
|
||||
amount: 1
|
||||
filter: card.rarity == "rare"
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user