Skip to content

Instantly share code, notes, and snippets.

@kana
Created May 2, 2012 09:45
Show Gist options
  • Save kana/2575590 to your computer and use it in GitHub Desktop.
Save kana/2575590 to your computer and use it in GitHub Desktop.
yayahatokura実装妄想
card do
name '農村'
cost 1
type :land
subtype nil
link 1
text <<-'END'
1コイン。継承点-2。
END
effect do
coin 1
succession -2
end
end
card do
name '錬金術師'
cost 5
type :action
subtype nil
link 1
text <<-'END'
あなたはカードを2枚引く。
END
effect do
draw 2
end
end
card do
name '交易船'
cost 3
type :action
subtype :merchant
link 0
text <<-'END'
あなたは、次の効果の中から1つを選ぶ。
『あなたはカードを2枚引く。』
『2コイン』
END
effect do
choose 1, [:draw, :coin], do |mode|
if mode == :draw
draw 2
end
if mode == :draw
coin 2
end
end
end
end
card do
name '願いの泉'
cost 2
type :action
subtype nil
link 1
text <<-'END'
あなたの手札から好きな枚数のカードを捨てる。その後、そうして捨てたカードと同じ枚数のカードを引く。
END
effect do
them = choose :any, :hand
discard them
draw them.count
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment