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
HiiragiGuardians
windbot
Commits
deda84bb
Commit
deda84bb
authored
Sep 19, 2017
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add new ai
parent
e71bb741
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
220 additions
and
0 deletions
+220
-0
Decks/AI_MokeyMokey.ydk
Decks/AI_MokeyMokey.ydk
+44
-0
Decks/AI_MokeyMokeyKing.ydk
Decks/AI_MokeyMokeyKing.ydk
+53
-0
Dialogs/mokey.zh-CN.json
Dialogs/mokey.zh-CN.json
+41
-0
Game/AI/Decks/MokeyMokeyExecutor.cs
Game/AI/Decks/MokeyMokeyExecutor.cs
+42
-0
Game/AI/Decks/MokeyMokeyKingExecutor.cs
Game/AI/Decks/MokeyMokeyKingExecutor.cs
+38
-0
WindBot.csproj
WindBot.csproj
+2
-0
No files found.
Decks/AI_MokeyMokey.ydk
0 → 100644
View file @
deda84bb
#created by ...
#main
39552864
39552864
39552864
12482652
12482652
12482652
42941100
42941100
42941100
79335209
79335209
79335209
487395
487395
487395
99171160
99171160
99171160
53776525
53776525
53776525
32274490
32274490
32274490
27288416
27288416
27288416
80825553
80825553
80825553
7902349
8124921
44519536
70903634
69380702
69380702
69380702
3557275
3557275
3557275
#extra
!side
Decks/AI_MokeyMokeyKing.ydk
0 → 100644
View file @
deda84bb
#created by ...
#main
5464695
5464695
5464695
39256679
39256679
39256679
11549357
11549357
11549357
99785935
99785935
99785935
91152256
91152256
91152256
76812113
76812113
76812113
85639257
85639257
85639257
74093656
74093656
74093656
68505803
68505803
68505803
27288416
27288416
27288416
19384334
22702055
23424603
35956022
45778932
50913601
56594520
82999629
86318356
87430998
#extra
45815891
45815891
45815891
71594310
71594310
71594310
67598234
67598234
67598234
!side
Dialogs/mokey.zh-CN.json
0 → 100644
View file @
deda84bb
{
"welcome"
:
[
"你好,我是一个机器人。"
,
"AI功能正在测试中,遇到问题请及时反馈。"
,
"总有人叫我沙包……"
],
"deckerror"
:
[
"抱歉,我的卡组里的{0}的数量似乎出了问题。"
],
"duelstart"
:
[
"别打我!"
],
"newturn"
:
[
""
],
"endturn"
:
[
""
],
"directattack"
:
[
""
],
"attack"
:
[
""
],
"ondirectattack"
:
[
"我生气了!"
],
"facedownmonstername"
:
"怪兽"
,
"activate"
:
[
"我喜欢{0}。"
],
"summon"
:
[
""
],
"setmonster"
:
[
""
],
"chaining"
:
[
""
]
}
Game/AI/Decks/MokeyMokeyExecutor.cs
0 → 100644
View file @
deda84bb
using
YGOSharp.OCGWrapper.Enums
;
using
System.Collections.Generic
;
using
WindBot
;
using
WindBot.Game
;
using
WindBot.Game.AI
;
namespace
WindBot.Game.AI.Decks
{
[
Deck
(
"MokeyMokey"
,
"AI_MokeyMokey"
)]
public
class
MokeyMokeyExecutor
:
DefaultExecutor
{
public
enum
CardId
{
LeoWizard
=
4392470
,
Bunilla
=
69380702
}
private
int
RockCount
=
0
;
public
MokeyMokeyExecutor
(
GameAI
ai
,
Duel
duel
)
:
base
(
ai
,
duel
)
{
AddExecutor
(
ExecutorType
.
Summon
);
AddExecutor
(
ExecutorType
.
Repos
,
DefaultMonsterRepos
);
AddExecutor
(
ExecutorType
.
SpellSet
);
}
public
override
int
OnRockPaperScissors
()
{
RockCount
++;
if
(
RockCount
<=
3
)
return
2
;
else
return
base
.
OnRockPaperScissors
();
}
public
override
bool
OnPreBattleBetween
(
ClientCard
attacker
,
ClientCard
defender
)
{
return
attacker
.
Attack
>
0
;
}
}
}
\ No newline at end of file
Game/AI/Decks/MokeyMokeyKingExecutor.cs
0 → 100644
View file @
deda84bb
using
YGOSharp.OCGWrapper.Enums
;
using
System.Collections.Generic
;
using
WindBot
;
using
WindBot.Game
;
using
WindBot.Game.AI
;
namespace
WindBot.Game.AI.Decks
{
[
Deck
(
"MokeyMokeyKing"
,
"AI_MokeyMokeyKing"
)]
public
class
MokeyMokeyKingExecutor
:
DefaultExecutor
{
public
enum
CardId
{
LeoWizard
=
4392470
,
Bunilla
=
69380702
}
private
int
RockCount
=
0
;
public
MokeyMokeyKingExecutor
(
GameAI
ai
,
Duel
duel
)
:
base
(
ai
,
duel
)
{
AddExecutor
(
ExecutorType
.
SpSummon
);
AddExecutor
(
ExecutorType
.
SummonOrSet
);
AddExecutor
(
ExecutorType
.
Repos
,
DefaultMonsterRepos
);
AddExecutor
(
ExecutorType
.
Activate
,
DefaultField
);
}
public
override
int
OnRockPaperScissors
()
{
RockCount
++;
if
(
RockCount
<=
3
)
return
2
;
else
return
base
.
OnRockPaperScissors
();
}
}
}
\ No newline at end of file
WindBot.csproj
View file @
deda84bb
...
...
@@ -67,6 +67,8 @@
<Compile
Include=
"Game\AI\DecksManager.cs"
/>
<Compile
Include=
"Game\AI\Decks\BlackwingExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\CyberDragonExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\MokeyMokeyKingExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\MokeyMokeyExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\ToadallyAwesomeExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\NekrozExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\GravekeeperExecutor.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