Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mycard
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaoye
mycard
Commits
9654c7e6
Commit
9654c7e6
authored
Nov 18, 2011
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
临时,
parent
048ddc28
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
4 deletions
+31
-4
lib/action.rb
lib/action.rb
+7
-1
lib/iduel_action.rb
lib/iduel_action.rb
+13
-1
lib/scene_duel.rb
lib/scene_duel.rb
+4
-2
lib/window_field.rb
lib/window_field.rb
+7
-0
No files found.
lib/action.rb
View file @
9654c7e6
...
@@ -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
)
...
...
lib/iduel_action.rb
View file @
9654c7e6
...
@@ -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
...
...
lib/scene_duel.rb
View file @
9654c7e6
...
@@ -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
...
...
lib/window_field.rb
View file @
9654c7e6
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment