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
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
nanahira
windbot
Commits
4fe200fc
Commit
4fe200fc
authored
Mar 05, 2021
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/IceYGO/windbot
parents
d6998ace
972f4135
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1035 additions
and
134 deletions
+1035
-134
BotWrapper/bot.conf
BotWrapper/bot.conf
+10
-0
Decks/AI_FamiliarPossessed.ydk
Decks/AI_FamiliarPossessed.ydk
+63
-0
Decks/AI_Timethief.ydk
Decks/AI_Timethief.ydk
+29
-25
Dialogs/VI-1911.zh-CN.json
Dialogs/VI-1911.zh-CN.json
+60
-0
Game/AI/Decks/FamiliarPossessedExecutor.cs
Game/AI/Decks/FamiliarPossessedExecutor.cs
+629
-0
Game/AI/Decks/TimeThiefExecutor.cs
Game/AI/Decks/TimeThiefExecutor.cs
+230
-108
Game/GameClient.cs
Game/GameClient.cs
+13
-1
WindBot.csproj
WindBot.csproj
+1
-0
No files found.
BotWrapper/bot.conf
View file @
4fe200fc
...
...
@@ -109,6 +109,16 @@ Name=复制梁龙 Deck=Salamangreat Dialog=anothercopy.zh-CN
转生炎兽卡组。
AI_LV3
SUPPORT_NEW_MASTER_RULE
SUPPORT_MASTER_RULE_2020
!
VI
-
1911
-凭依装着
Name
=
VI
-
1911
Deck
=
FamiliarPossessed
Dialog
=
VI
-
1911
.
zh
-
CN
凭依装着卡组。
AI_ANTI_META
SUPPORT_MASTER_RULE_3
SUPPORT_NEW_MASTER_RULE
SUPPORT_MASTER_RULE_2020
!
VI
-
1911
-时劫者
Name
=
VI
-
1911
Deck
=
TimeThief
Dialog
=
VI
-
1911
.
zh
-
CN
时间潜行者卡组。
AI_LV2
SUPPORT_MASTER_RULE_3
SUPPORT_NEW_MASTER_RULE
SUPPORT_MASTER_RULE_2020
!永远之魂-削血
Name
=永远之魂
Deck
=
Burn
Dialog
=
soul
.
zh
-
CN
老式削血卡组。
...
...
Decks/AI_FamiliarPossessed.ydk
0 → 100644
View file @
4fe200fc
#created by ...
#main
71197066
15397015
15397015
15397015
4376659
4376659
31764354
31887906
40542826
40542826
68881650
68881650
14558127
14558127
36584821
36584821
23434538
23434538
18144506
35261759
35261759
49238328
49238328
73915051
73915051
62256492
62256492
25704359
25704359
30241314
30241314
36975314
36975314
59305593
59305593
61740673
82732705
82732705
40605147
40605147
41420027
41420027
84749824
84749824
#extra
12014404
31833038
85289965
65330383
38342335
2857636
9839945
30674956
48815792
73309655
97661969
75452921
98978921
41999284
41999284
!side
Decks/AI_Timethief.ydk
View file @
4fe200fc
#created by ...
#main
65367484
65367484
65367484
71564252
71564252
71564252
56308388
56308388
56308388
67696066
67696066
82496097
82496097
82496097
74578720
74578720
74578720
19891131
19891131
19891131
70368879
70368879
70368879
14558127
14558127
23434538
23434538
12580477
18144507
35261759
35261759
49238328
49238328
81439173
10877309
10877309
10877309
81670445
81670445
81670445
18678554
18678554
18678554
26708437
26708437
26708437
57319935
57319935
98827725
98827725
98827725
36975314
36975314
40605147
40605147
40605147
41420027
41420027
41420027
76587747
76587747
76587747
84749824
84749824
#extra
56832966
56832966
5683296
6
4242160
6
86532744
86532744
86532744
84013237
16195942
84013237
84013237
55285840
55285840
55285840
59208943
59208943
59208943
46772449
12014404
12014404
!side
Dialogs/VI-1911.zh-CN.json
0 → 100644
View file @
4fe200fc
{
"welcome"
:
[
"咱是一个机器人,名字叫老喵师,一个不怎么会打牌的存在。"
,
"欢迎下载了解喵版YGO主程序YGO-VI-EX。下载请微博搜索:老喵师1911。"
],
"deckerror"
:
[
"啊,{0}又用不出来了。"
],
"duelstart"
:
[
"没有人可以打不赢咱。"
,
"无能的咱,什么卡组都用不好。"
,
"你左手让咱,咱都不是你的对手。"
,
"嘛,无所谓了。"
],
"newturn"
:
[
"啊,是咱的回合么。"
,
"抽一张卡。"
],
"endturn"
:
[
"咱的运气不错,没能被你干掉。"
,
"无所谓了,看看下回合能做点啥了。"
],
"directattack"
:
[
"用{0}进行攻击。"
,
"这卡还行,就拿{0}攻击吧。"
,
"时间还早,先拿{0}打过去。"
,
"运气不算太差,{0}的攻击应该能通过吧。"
],
"attack"
:
[
"{0},攻击{1}。"
,
"没时间了,{0},赶快把{1}打了,咱要去看看哪里有BUG需要修了。"
,
"似乎行得通,{1}没有{0}强,{0}攻击。"
],
"ondirectattack"
:
[
"习惯就好了。"
,
"{0}么,运气不错啊。"
,
"还行还行。"
],
"facedownmonstername"
:
"怪兽"
,
"activate"
:
[
"发动{0}的效果。"
,
"啊等下,使用{0}的效果。"
,
"这{0}咋用啊,交了算了。"
],
"summon"
:
[
"召唤{0}"
,
"{0}似乎今天没有BUG。"
,
"{0}居然在服务器里更新了么。"
,
"{0}:老喵师这么菜就别打牌了。"
],
"setmonster"
:
[
"放置一只怪兽,看看要不要结束回合。"
,
"没辙了,放置一只怪兽。"
],
"chaining"
:
[
"发动{0}的效果进行连锁。"
,
"不要调皮,{0}发动。"
,
"还有张{0},发了。"
]
}
Game/AI/Decks/FamiliarPossessedExecutor.cs
0 → 100644
View file @
4fe200fc
This diff is collapsed.
Click to expand it.
Game/AI/Decks/TimeThiefExecutor.cs
View file @
4fe200fc
This diff is collapsed.
Click to expand it.
Game/GameClient.cs
View file @
4fe200fc
using
System.IO
;
using
System.Linq
;
using
System.Net
;
using
System.Text
;
using
YGOSharp.Network
;
...
...
@@ -46,7 +47,18 @@ namespace WindBot.Game
Connection
.
Connected
+=
OnConnected
;
Connection
.
PacketReceived
+=
OnPacketReceived
;
Connection
.
Connect
(
IPAddress
.
Parse
(
_serverHost
),
_serverPort
);
IPAddress
target_address
;
try
{
target_address
=
IPAddress
.
Parse
(
_serverHost
);
}
catch
(
System
.
Exception
)
{
IPHostEntry
_hostEntry
=
Dns
.
GetHostEntry
(
_serverHost
);
target_address
=
_hostEntry
.
AddressList
.
FirstOrDefault
(
findIPv4
=>
findIPv4
.
AddressFamily
==
System
.
Net
.
Sockets
.
AddressFamily
.
InterNetwork
);
}
Connection
.
Connect
(
target_address
,
_serverPort
);
}
private
void
OnConnected
()
...
...
WindBot.csproj
View file @
4fe200fc
...
...
@@ -70,6 +70,7 @@
<Compile
Include=
"Game\AI\DeckAttribute.cs"
/>
<Compile
Include=
"Game\AI\DecksManager.cs"
/>
<Compile
Include=
"Game\AI\Decks\AltergeistExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\FamiliarPossessedExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\BlackwingExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\MathMechExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\PureWindsExecutor.cs"
/>
...
...
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