Sha256: e37cf9efe2b4e3998844e0453f843d1c579e1a9fd727508ea936c3f9d92d810b

Contents?: true

Size: 1.66 KB

Versions: 8

Compression:

Stored size: 1.66 KB

Contents

require "ostruct"

# As of AER
# get rid of all *-cards
MtgModernCreatures = [
  [-1, -1, 1],
  [-1, 3, 1],
  ["*", "*", 70],
  ["*", 1, 2],
  ["*", "1+*", 2],
  ["*", 3, 3],
  ["*", 4, 1],
  ["*", 5, 1],
  [0, "*", 1],
  [0, 0, 86],
  [0, 1, 47],
  [0, 2, 32],
  [0, 3, 42],
  [0, 4, 41],
  [0, 5, 18],
  [0, 6, 9],
  [0, 7, 2],
  [0, 8, 2],
  [0, 13, 2],
  [1, 1, 757],
  [1, 2, 178],
  [1, 3, 147],
  [1, 4, 70],
  [1, 5, 23],
  [1, 6, 4],
  [1, 7, 2],
  [1, 8, 1],
  ["1+*", "1+*", 1],
  [2, "*", 1],
  [2, 0, 1],
  [2, 1, 423],
  [2, 2, 956],
  [2, 3, 271],
  [2, 4, 111],
  [2, 5, 35],
  [2, 6, 5],
  [2, 7, 3],
  [2, 8, 2],
  [2, 10, 1],
  [3, 1, 111],
  [3, 2, 219],
  [3, 3, 532],
  [3, 4, 121],
  [3, 5, 49],
  [3, 6, 17],
  [3, 7, 4],
  [3, 8, 1],
  [4, 1, 31],
  [4, 2, 53],
  [4, 3, 106],
  [4, 4, 338],
  [4, 5, 75],
  [4, 6, 27],
  [4, 7, 7],
  [4, 8, 1],
  [4, 9, 2],
  [5, 1, 11],
  [5, 2, 16],
  [5, 3, 40],
  [5, 4, 77],
  [5, 5, 203],
  [5, 6, 34],
  [5, 7, 17],
  [5, 8, 3],
  [5, 9, 1],
  [6, 1, 8],
  [6, 2, 4],
  [6, 3, 8],
  [6, 4, 32],
  [6, 5, 31],
  [6, 6, 125],
  [6, 7, 8],
  [6, 8, 2],
  [6, 9, 1],
  [7, 2, 3],
  [7, 3, 1],
  [7, 4, 5],
  [7, 5, 7],
  [7, 6, 13],
  [7, 7, 47],
  [7, 8, 2],
  [7, 10, 1],
  [7, 11, 2],
  [8, 0, 1],
  [8, 4, 1],
  [8, 5, 3],
  [8, 7, 1],
  [8, 8, 30],
  [8, 9, 1],
  [9, 5, 1],
  [9, 7, 2],
  [9, 8, 1],
  [9, 9, 11],
  [9, 10, 1],
  [9, 14, 1],
  [10, 2, 1],
  [10, 8, 1],
  [10, 9, 1],
  [10, 10, 13],
  [11, 9, 1],
  [11, 11, 4],
  [12, 12, 3],
  [13, 13, 5],
  [15, 15, 2],
].map do |p,t,c|
  OpenStruct.new(
    power: p,
    toughness: t,
    count: c,
  )
end.select{|cg| cg.power.is_a?(Integer) and cg.toughness.is_a?(Integer) }

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
hyper-d3-1.0.0.lap28 spec/test_app/app/assets/javascripts/data/mtg_modern_creatures.rb
hyper-d3-1.0.0.lap27 spec/test_app/app/assets/javascripts/data/mtg_modern_creatures.rb
hyper-d3-1.0.0.lap26 spec/test_app/app/assets/javascripts/data/mtg_modern_creatures.rb
hyper-d3-1.0.0.lap25 spec/test_app/app/assets/javascripts/data/mtg_modern_creatures.rb
hyper-d3-1.0.0.lap24 spec/test_app/app/assets/javascripts/data/mtg_modern_creatures.rb
hyper-d3-1.0.0.lap23 spec/test_app/app/assets/javascripts/data/mtg_modern_creatures.rb
opal-d3-0.0.20170822 demo/app/data/mtg_modern_creatures.rb
opal-d3-0.0.20170205 demo/app/data/mtg_modern_creatures.rb