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

临时,

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