Commit e3e6442a authored by pichoro's avatar pichoro

Fixing type statistics in Magic - had a minor error.

parent 4cb5a526
...@@ -5,7 +5,7 @@ installer group: magic/game files ...@@ -5,7 +5,7 @@ installer group: magic/game files
icon: card-back.png icon: card-back.png
position hint: 01 position hint: 01
version: 2010-06-11 version: 2010-08-14
depends on: magic-blends.mse-include 2010-04-07 depends on: magic-blends.mse-include 2010-04-07
depends on: magic-watermarks.mse-include 2007-09-23 depends on: magic-watermarks.mse-include 2007-09-23
......
...@@ -625,8 +625,8 @@ line_count := split_text@(match:"\n+",include_empty:false) + length ...@@ -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 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: "")+ remove_supertype := replace@(match: "(Legendary|Basic|Snow|World|Tribal|Token)", replace: "")+
replace@(match: "^[ ]", replace: "")+ replace@(match: "[ ]+", in_context: "^<match>", replace: "")+
replace@(match: "[ ]$", replace: "") replace@(match: "[ ]+", in_context: "<match>$", replace: "")
remove_type := replace@(match: "(Artifact|Creature|Enchantment|Instant|Land|Planeswalker|Sorcery)", replace: "")+ remove_type := replace@(match: "(Artifact|Creature|Enchantment|Instant|Land|Planeswalker|Sorcery)", replace: "")+
replace@(match: "^[ ]", replace: "")+ replace@(match: "[ ]+", in_context: "^<match>", replace: "")+
replace@(match: "[ ]$", replace: "") replace@(match: "[ ]+", in_context: "<match>$", replace: "")
...@@ -47,14 +47,14 @@ statistics dimension: ...@@ -47,14 +47,14 @@ statistics dimension:
position hint: 27 position hint: 27
icon: stats/card_type.png icon: stats/card_type.png
description: The card's supertype, not including types description: The card's supertype, not including types
script: remove_type(card.super_type) script: remove_type(to_text(card.super_type))
statistics dimension: statistics dimension:
name: type name: type
position hint: 28 position hint: 28
icon: stats/card_type.png icon: stats/card_type.png
description: The card's type, not including supertypes description: The card's type, not including supertypes
script: remove_supertype(card.super_type) script: remove_supertype(to_text(card.super_type))
statistics dimension: statistics dimension:
name: combined type name: combined type
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment