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
7e88d4a4
Commit
7e88d4a4
authored
Jul 10, 2007
by
pichoro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed basic land sorting (is supposed to sort in order of color wheel, not alphabetical)
parent
4e467a98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
data/magic.mse-game/game
data/magic.mse-game/game
+10
-3
No files found.
data/magic.mse-game/game
View file @
7e88d4a4
...
@@ -164,7 +164,7 @@ init script:
...
@@ -164,7 +164,7 @@ init script:
############################################################## Card number
############################################################## Card number
# Index for sorting, white cards are first, so white->A, blue->B, .. ,
# Index for sorting, white cards are first, so white->A, blue->B, .. ,
# multi->F, hybrid->G, splits -> H, arti->I, land->K, basic land->
J
# multi->F, hybrid->G, splits -> H, arti->I, land->K, basic land->
L, plains->M, island->N, swamp->O, mountain->P, forest->Q
is_multicolor := { chosen(choice: "multicolor") and input != "artifact, multicolor" }
is_multicolor := { chosen(choice: "multicolor") and input != "artifact, multicolor" }
is_null_cost := { input == "" or input == "0" }
is_null_cost := { input == "" or input == "0" }
sort_index := {
sort_index := {
...
@@ -174,8 +174,15 @@ init script:
...
@@ -174,8 +174,15 @@ init script:
card_color != card.card_color_2 then "H" # multicolor splits
card_color != card.card_color_2 then "H" # multicolor splits
else if chosen(choice: "land", card_color) then (
else if chosen(choice: "land", card_color) then (
# land
# land
if card.rarity != "basic land" then "J" # basic land
if card.rarity != "basic land" then "K" # nonbasic land
else "K" # non-basic land
else (
if contains(card.name, match:"Plains") then "M"
else if contains(card.name, match:"Island") then "N"
else if contains(card.name, match:"Swamp") then "O"
else if contains(card.name, match:"Mountain") then "P"
else if contains(card.name, match:"Forest") then "Q"
else "L" # other basic land
)
) else if is_null_cost(casting_cost) then (
) else if is_null_cost(casting_cost) then (
# no casting cost; use frame
# no casting cost; use frame
if chosen(choice: "hybrid", card_color) then "G" # Hybrid frame
if chosen(choice: "hybrid", card_color) then "G" # Hybrid frame
...
...
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