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
8d0d8dc1
Commit
8d0d8dc1
authored
Jan 09, 2009
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
the new pack system is alive!
parent
eac2793c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
145 additions
and
27 deletions
+145
-27
data/magic.mse-game/packs
data/magic.mse-game/packs
+141
-27
data/magic.mse-game/script
data/magic.mse-game/script
+4
-0
No files found.
data/magic.mse-game/packs
View file @
8d0d8dc1
############################################################## Card pack items
pack item:
name: basic land
select: cyclic
filter: card.rarity == "basic land" and not is_token_card() # can be shifted
pack item:
name: common
filter: card.rarity == "common" and
card.shape != "token" and card.shape != "rulestip"
filter: card.rarity == "common" and
not is_token_card() and not is_shifted_card()
pack item:
name: uncommon
filter: card.rarity == "uncommon" and
card.shape != "token" and card.shape != "rulestip"
filter: card.rarity == "uncommon" and
not is_token_card() and not is_shifted_card()
pack item:
name: rare
filter: contains(card.rarity, match: "rare") and card.shape != "token" and card.shape != "rulestip"
filter: card.rarity == "rare" and not is_token_card() and not is_shifted_card()
pack item:
name: mythic rare
filter: card.rarity == "mythic rare" and not is_token_card() and not is_shifted_card()
pack item:
name: special
filter: card.rarity == "special" and card.shape != "token" and card.shape != "rulestip"
filter: card.rarity == "special" and not is_token_card() # can be shifted
pack item:
name: basic land
filter: card.rarity == "basic land" and card.shape != "token" and card.shape != "rulestip"
name: shifted common
filter: card.rarity == "common" and not is_token_card() and is_shifted_card()
pack item:
name: shifted uncommon
filter: card.rarity == "uncommon" and not is_token_card() and is_shifted_card()
pack item:
name: shifted rare
filter:
( card.rarity == "rare" or
card.rarity == "mythic rare" # We've got to put shifted mythic rares somewhere
) and not is_token_card() and is_shifted_card()
pack item:
name: token / rulestip
filter: card.shape == "token" or card.shape == "rulestip"
filter: is_token_card()
############################################################## shifted/special if possible
# shifted common if they exist, otherwise a normal common
pack item:
name: shifted common or else common
selectable: false
select: first
item: shifted common
item: common
# basic land if it exist, otherwise a common
pack item:
name: basic land or else common
selectable: false
select: first
item: basic land
item: common
# special if it exist, otherwise a common
pack item:
name: special or else common
selectable: false
select: first
item: special
item: common
# shifted uncommon/rare if they exist, otherwise a normal uncommon
pack item:
name: shifted uncommon or rare or else uncommon
selectable: false
select: first
item: shifted uncommon or rare
item: uncommon
############################################################## Randomized selections
pack item:
name: mythic rare or rare
selectable: false
# In Shards of Alara there are 15 mythic rares and 53 rares.
# Each booster has a 1/8 chance of containing a mythic rare.
# This means that looking at single mythics : rares, the proportion is
# 1*53 : 7*15 = 53 : 105
# this is almost exactly 1 : 2,
# So, a a single mythic is 2 times as rare as a single normal rare.
#
# We use this proportional system instead of a fixed 1:7 system,
# because it copes better with cases where there are few mythics.
# For example, if a set has 1 mythic and 20 rares, you would actually
# be MORE likely to find the mythic card with the 1:7 system!
select: proportional
item:
name: mythic rare
probability: 1
item:
name: rare
probability: 2
pack item:
name: shifted uncommon or rare
selectable: false
select: nonempty
item:
name: shifted uncommon
probability: 3
item:
name: shifted rare
probability: 1
############################################################## Common proportions of cards
# of the common slots, 3/10 will be shifted, 1/10 will be special
pack item:
name: common sometimes shifted or special
selectable: false
# TODO: Perhaps use some kind of proportional system here as well?
select: cyclic
item: common
item: common
item: shifted common or else common
item: common
item: common
item: shifted common or else common
item: common
item: common
item: shifted common or else common
item: special or else common
# of the uncommon slots, 1/3 will be shifted, 1/4 of that will be shifted rares instead
pack item:
name: uncommon sometimes shifted
selectable: false
select: cyclic
item: uncommon
item: uncommon
item: shifted uncommon or rare or else uncommon
############################################################## Card packs
pack type:
name: tournament pack
item:
name: rare
name:
mythic rare or
rare
amount: 3
item:
name: uncommon
name: uncommon
sometimes shifted
amount: 9
item:
name: common
name: common
sometimes shifted or special
amount: 33
item:
name: basic land
amount: 30
type: cyclic
item:
name: token / rulestip
pack type:
name: booster pack
item:
name: rare
name:
mythic rare or
rare
amount: 1
item:
name: uncommon
name: uncommon
sometimes shifted
amount: 3
# a total of 11 common-likes
item:
name: common sometimes shifted or special
amount: 10
item:
name: common
amount: 11
name: basic land or else common
item:
name: token / rulestip
pack type:
name: additional land
item: basic land
pack type:
name: additional common
item:
name: common
item: common sometimes shifted or special
pack type:
name: additional uncommon
item:
name: uncommon
item: uncommon sometimes shifted
pack type:
name: additional rare
item:
name: rare
pack type:
name: additional special
item:
name: special
item: mythic rare or rare
pack type:
name: additional token / rulestip
item:
name: token / rulestip
\ No newline at end of file
item: token / rulestip
data/magic.mse-game/script
View file @
8d0d8dc1
...
...
@@ -288,6 +288,10 @@ card_count := {
number_of_items(in: set, filter: set_filter())
}
# used by pack scripts
is_token_card := { card.shape == "token" or card.shape == "rulestip" }
is_shifted_card := { contains(card.shape, match:"shifted") }
############################################################## Utilities for keywords
...
...
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