Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
magicseteditor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
magicseteditor
Commits
e3e6442a
Commit
e3e6442a
authored
Aug 15, 2010
by
pichoro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing type statistics in Magic - had a minor error.
parent
4cb5a526
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
data/magic.mse-game/game
data/magic.mse-game/game
+1
-1
data/magic.mse-game/script
data/magic.mse-game/script
+4
-4
data/magic.mse-game/statistics
data/magic.mse-game/statistics
+2
-2
No files found.
data/magic.mse-game/game
View file @
e3e6442a
...
@@ -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-0
6-11
version: 2010-0
8-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
...
...
data/magic.mse-game/script
View file @
e3e6442a
...
@@ -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: "")
data/magic.mse-game/statistics
View file @
e3e6442a
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment