Commit 9654c7e6 authored by 神楽坂玲奈's avatar 神楽坂玲奈

临时,

parent 048ddc28
......@@ -2,7 +2,7 @@
class Action
@@id = 0
attr_reader :from_player, :msg, :id
def initialize(from_player, msg=nil)
def initialize(from_player=true, msg=nil)
@id = @@id
@from_player = from_player
@msg = msg
......@@ -44,6 +44,12 @@ class Action
class FirstToGo < Go; end
class SecondToGo < Go; end
class Chat < Action; end
class Shuffle < Action
def run
player_field.deck.shuffle!
super
end
end
class Note < Action
attr_reader :card
def initialize(from_player, msg, card)
......
......@@ -191,7 +191,9 @@ class Action
system("pause")
end
end
def escape
inspect
end
def run
$iduel.action self if @from_player
end
......@@ -205,6 +207,11 @@ class Action
"[#{@id}] ◎→抽牌"
end
end
class Dice
def escape
"[#{@id}] ◎→掷骰子,结果为 #{@result}"
end
end
class Reset
def escape
"[#{@id}] ◎→[11年3月1日禁卡表] Duel!!"
......@@ -220,6 +227,11 @@ class Action
"[#{@id}] ◎→=[0:0:0]==回合结束==<0>=[0]\r\n"+ @field.escape
end
end
class Shuffle
def escape
"[#{@id}] ◎→卡组洗切"
end
end
end
......
......@@ -110,9 +110,11 @@ class Scene_Duel < Scene
when Event::KeyDown
case event.sym
when Key::F1
suffle
Action::Shuffle.new.run
when Key::F2
draw
first_to_go
when Key::F3
Action::Dice.new(true).run
when Key::F5
reset
end
......
......@@ -193,6 +193,13 @@ class Window_Field < Window
when 0
Action::Draw.new(true).run
end
when 0..10
#场上
when Integer #手卡
case $scene.action_window.index
when 0
Action::Set.new(true, :hand, 6, @index_card)
end
end
refresh
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment