Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
W
windbot
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
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
MyCard
windbot
Commits
486ccf0b
Commit
486ccf0b
authored
Jun 18, 2023
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/IceYGO/windbot
parents
b74434b8
cfbdc0de
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
328 additions
and
218 deletions
+328
-218
BotWrapper/bot.conf
BotWrapper/bot.conf
+5
-0
Dialogs/Zefra.zh-CN.json
Dialogs/Zefra.zh-CN.json
+5
-0
Game/AI/Decks/ZefraExecutor.cs
Game/AI/Decks/ZefraExecutor.cs
+294
-216
Game/AI/Dialogs.cs
Game/AI/Dialogs.cs
+15
-2
Game/AI/Executor.cs
Game/AI/Executor.cs
+1
-0
Game/GameAI.cs
Game/GameAI.cs
+8
-0
No files found.
BotWrapper/bot.conf
View file @
486ccf0b
...
...
@@ -213,3 +213,8 @@ SUPPORT_MASTER_RULE_2020
Name
=神数不神
Deck
=
Tearlaments
Dialog
=
Zefra
.
zh
-
CN
旧式地天使珠泪哀歌族卡组。
AI_LV3
SUPPORT_MASTER_RULE_2020
!神数不神-神数
Name
=神数不神
Deck
=
Zefra
Dialog
=
Zefra
.
zh
-
CN
神数卡组。
AI_LV3
SUPPORT_MASTER_RULE_2020
Dialogs/Zefra.zh-CN.json
View file @
486ccf0b
...
...
@@ -50,5 +50,10 @@
"乎,我发动{0}!"
,
"不好意思拉,我有{0}"
,
"哈哈,发动{0}的效果!"
],
"custom"
:
[
"呱!本体出征!"
,
"凸(艹皿艹 )卡手不玩拉!!!"
,
"嘿不慌,还有摆子场( ̄y▽ ̄)╭"
]
}
Game/AI/Decks/ZefraExecutor.cs
View file @
486ccf0b
This diff is collapsed.
Click to expand it.
Game/AI/Dialogs.cs
View file @
486ccf0b
...
...
@@ -34,7 +34,9 @@ namespace WindBot.Game.AI
[
DataMember
]
public
string
[]
setmonster
{
get
;
set
;
}
[
DataMember
]
public
string
[]
chaining
{
get
;
set
;
}
public
string
[]
chaining
{
get
;
set
;
}
[
DataMember
]
public
string
[]
custom
{
get
;
set
;
}
}
public
class
Dialogs
{
...
...
@@ -53,7 +55,8 @@ namespace WindBot.Game.AI
private
string
[]
_summon
;
private
string
[]
_setmonster
;
private
string
[]
_chaining
;
private
string
[]
_custom
;
public
Dialogs
(
GameClient
game
)
{
_game
=
game
;
...
...
@@ -75,6 +78,7 @@ namespace WindBot.Game.AI
_summon
=
data
.
summon
;
_setmonster
=
data
.
setmonster
;
_chaining
=
data
.
chaining
;
_custom
=
data
.
custom
;
}
}
...
...
@@ -173,5 +177,14 @@ namespace WindBot.Game.AI
if
(
message
!=
""
)
_game
.
Chat
(
message
);
}
public
void
SendCustomChat
(
int
index
,
params
object
[]
opts
)
{
if
(!
_game
.
_chat
||
_custom
==
null
)
return
;
string
message
=
string
.
Format
(
_custom
[
index
],
opts
);
if
(
message
!=
""
)
_game
.
Chat
(
message
);
}
}
}
Game/AI/Executor.cs
View file @
486ccf0b
...
...
@@ -165,6 +165,7 @@ namespace WindBot.Game.AI
// For overriding
return
null
;
}
public
virtual
void
OnSelectChain
(
IList
<
ClientCard
>
cards
)
{
return
;
...
...
Game/GameAI.cs
View file @
486ccf0b
...
...
@@ -54,6 +54,14 @@ namespace WindBot.Game
_dialogs
.
SendDuelStart
();
}
/// <summary>
/// Customized called when the AI do something in a duel.
/// </summary>
public
void
SendCustomChat
(
int
index
,
params
object
[]
opts
)
{
_dialogs
.
SendCustomChat
(
index
,
opts
);
}
/// <summary>
/// Called when the AI do the rock-paper-scissors.
/// </summary>
...
...
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