simplified type symbol script

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@684 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-09-09 19:15:52 +00:00
parent 38b934ce90
commit c7720c8cf6
+12 -24
View File
@@ -423,30 +423,18 @@ init script:
# Shape of cards, can be changed in style files # Shape of cards, can be changed in style files
card_shape := { "normal" } card_shape := { "normal" }
typesymbol_type:= { typesymbol_for :=
type := to_text(card.super_type) to_text +
if contains(type, match:"Tribal") then "multitype" replace_rule(match: "(Legendary|Basic|Snow|World| )", replace: "") +
else if contains(type, match:"Sorcery") then "sorcery" { if input == "Creature" then "creature"
else if contains(type, match:"Instant") then "instant" else if input == "Sorcery" then "sorcery"
else if contains(type, match:"Planeswalker") then "multitype" else if input == "Instant" then "instant"
else if contains(type, match:"Creature") and else if input == "Artifact" then "artifact"
not contains(type, match:"Land") and else if input == "Enchantment" then "enchantment"
not contains(type, match:"Artifact") and else if input == "Land" then "land"
not contains(type, match:"Enchantment") then "creature" else "multitype"
else if contains(type, match:"Artifact") and }
not contains(type, match:"Land") and typesymbol_type := { typesymbol_for(card.super_type) }
not contains(type, match:"Creature") and
not contains(type, match:"Enchantment") then "artifact"
else if contains(type, match:"Land") and
not contains(type, match:"Creature") and
not contains(type, match:"Artifact") and
not contains(type, match:"Enchantment") then "land"
else if contains(type, match:"Enchantment") and
not contains(type, match:"Land") and
not contains(type, match:"Artifact") and
not contains(type, match:"Creature") then "enchantment"
else "multitype"
}
############################################################## Statistics utilities ############################################################## Statistics utilities