mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 05:36:59 -04:00
the new pack system is alive!
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1317 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+141
-27
@@ -1,73 +1,187 @@
|
|||||||
|
|
||||||
############################################################## Card pack items
|
############################################################## 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:
|
pack item:
|
||||||
name: common
|
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:
|
pack item:
|
||||||
name: uncommon
|
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:
|
pack item:
|
||||||
name: rare
|
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:
|
pack item:
|
||||||
name: special
|
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:
|
pack item:
|
||||||
name: basic land
|
name: shifted common
|
||||||
filter: card.rarity == "basic land" and card.shape != "token" and card.shape != "rulestip"
|
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:
|
pack item:
|
||||||
name: token / rulestip
|
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
|
############################################################## Card packs
|
||||||
|
|
||||||
pack type:
|
pack type:
|
||||||
name: tournament pack
|
name: tournament pack
|
||||||
item:
|
item:
|
||||||
name: rare
|
name: mythic rare or rare
|
||||||
amount: 3
|
amount: 3
|
||||||
item:
|
item:
|
||||||
name: uncommon
|
name: uncommon sometimes shifted
|
||||||
amount: 9
|
amount: 9
|
||||||
item:
|
item:
|
||||||
name: common
|
name: common sometimes shifted or special
|
||||||
amount: 33
|
amount: 33
|
||||||
item:
|
item:
|
||||||
name: basic land
|
name: basic land
|
||||||
amount: 30
|
amount: 30
|
||||||
type: cyclic
|
|
||||||
item:
|
item:
|
||||||
name: token / rulestip
|
name: token / rulestip
|
||||||
pack type:
|
pack type:
|
||||||
name: booster pack
|
name: booster pack
|
||||||
item:
|
item:
|
||||||
name: rare
|
name: mythic rare or rare
|
||||||
amount: 1
|
amount: 1
|
||||||
item:
|
item:
|
||||||
name: uncommon
|
name: uncommon sometimes shifted
|
||||||
amount: 3
|
amount: 3
|
||||||
|
# a total of 11 common-likes
|
||||||
item:
|
item:
|
||||||
name: common
|
name: common sometimes shifted or special
|
||||||
amount: 11
|
amount: 10
|
||||||
|
item:
|
||||||
|
name: basic land or else common
|
||||||
item:
|
item:
|
||||||
name: token / rulestip
|
name: token / rulestip
|
||||||
|
|
||||||
|
pack type:
|
||||||
|
name: additional land
|
||||||
|
item: basic land
|
||||||
pack type:
|
pack type:
|
||||||
name: additional common
|
name: additional common
|
||||||
item:
|
item: common sometimes shifted or special
|
||||||
name: common
|
|
||||||
pack type:
|
pack type:
|
||||||
name: additional uncommon
|
name: additional uncommon
|
||||||
item:
|
item: uncommon sometimes shifted
|
||||||
name: uncommon
|
|
||||||
pack type:
|
pack type:
|
||||||
name: additional rare
|
name: additional rare
|
||||||
item:
|
item: mythic rare or rare
|
||||||
name: rare
|
|
||||||
pack type:
|
|
||||||
name: additional special
|
|
||||||
item:
|
|
||||||
name: special
|
|
||||||
pack type:
|
pack type:
|
||||||
name: additional token / rulestip
|
name: additional token / rulestip
|
||||||
item:
|
item: token / rulestip
|
||||||
name: token / rulestip
|
|
||||||
|
|||||||
@@ -288,6 +288,10 @@ card_count := {
|
|||||||
number_of_items(in: set, filter: set_filter())
|
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
|
############################################################## Utilities for keywords
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user