mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Fixing type statistics in Magic - had a minor error.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1502 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -5,7 +5,7 @@ installer group: magic/game files
|
||||
icon: card-back.png
|
||||
position hint: 01
|
||||
|
||||
version: 2010-06-11
|
||||
version: 2010-08-14
|
||||
depends on: magic-blends.mse-include 2010-04-07
|
||||
depends on: magic-watermarks.mse-include 2007-09-23
|
||||
|
||||
|
||||
@@ -625,8 +625,8 @@ line_count := split_text@(match:"\n+",include_empty:false) + length
|
||||
|
||||
#Remove supertypes or types to look at parts of the super_type field by themselves.
|
||||
remove_supertype := replace@(match: "(Legendary|Basic|Snow|World|Tribal|Token)", replace: "")+
|
||||
replace@(match: "^[ ]", replace: "")+
|
||||
replace@(match: "[ ]$", replace: "")
|
||||
replace@(match: "[ ]+", in_context: "^<match>", replace: "")+
|
||||
replace@(match: "[ ]+", in_context: "<match>$", replace: "")
|
||||
remove_type := replace@(match: "(Artifact|Creature|Enchantment|Instant|Land|Planeswalker|Sorcery)", replace: "")+
|
||||
replace@(match: "^[ ]", replace: "")+
|
||||
replace@(match: "[ ]$", replace: "")
|
||||
replace@(match: "[ ]+", in_context: "^<match>", replace: "")+
|
||||
replace@(match: "[ ]+", in_context: "<match>$", replace: "")
|
||||
|
||||
@@ -47,14 +47,14 @@ statistics dimension:
|
||||
position hint: 27
|
||||
icon: stats/card_type.png
|
||||
description: The card's supertype, not including types
|
||||
script: remove_type(card.super_type)
|
||||
script: remove_type(to_text(card.super_type))
|
||||
|
||||
statistics dimension:
|
||||
name: type
|
||||
position hint: 28
|
||||
icon: stats/card_type.png
|
||||
description: The card's type, not including supertypes
|
||||
script: remove_supertype(card.super_type)
|
||||
script: remove_supertype(to_text(card.super_type))
|
||||
|
||||
statistics dimension:
|
||||
name: combined type
|
||||
|
||||
Reference in New Issue
Block a user