Commit 4fe200fc authored by mercury233's avatar mercury233

Merge branch 'master' of https://github.com/IceYGO/windbot

parents d6998ace 972f4135
......@@ -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
老式削血卡组。
......
#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
#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
56832966
42421606
86532744
86532744
86532744
84013237
16195942
84013237
84013237
55285840
55285840
55285840
59208943
59208943
59208943
46772449
12014404
12014404
!side
{
"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},发了。"
]
}
This diff is collapsed.
This diff is collapsed.
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()
......
......@@ -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" />
......
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