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
alstroemeria-silentlove
windbot
Commits
c2a74881
Commit
c2a74881
authored
Oct 23, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/IceYGO/windbot
parents
494fe10b
30050897
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
45 additions
and
9 deletions
+45
-9
BotWrapper/bot.conf
BotWrapper/bot.conf
+21
-1
Decks/AI_Altergeist.ydk
Decks/AI_Altergeist.ydk
+0
-1
Game/AI/Decks/AltergeistExecutor.cs
Game/AI/Decks/AltergeistExecutor.cs
+5
-5
Game/AI/Enums/Floodgate.cs
Game/AI/Enums/Floodgate.cs
+3
-1
Game/ClientCard.cs
Game/ClientCard.cs
+15
-0
WindBotInfo.cs
WindBotInfo.cs
+1
-1
No files found.
BotWrapper/bot.conf
View file @
c2a74881
...
@@ -69,10 +69,15 @@ Name=尼亚 Deck=Trickstar Dialog=near.zh-CN
...
@@ -69,10 +69,15 @@ Name=尼亚 Deck=Trickstar Dialog=near.zh-CN
淘气仙星卡组。
淘气仙星卡组。
AI_LV3
SUPPORT_NEW_MASTER_RULE
AI_LV3
SUPPORT_NEW_MASTER_RULE
!尼亚-幻变骚灵
Name
=尼亚
Deck
=
Altergeist
Dialog
=
near
.
zh
-
CN
幻变骚灵卡组。
AI_LV3
SUPPORT_NEW_MASTER_RULE
!永远之魂-削血
!永远之魂-削血
Name
=永远之魂
Deck
=
Burn
Dialog
=
soul
.
zh
-
CN
Name
=永远之魂
Deck
=
Burn
Dialog
=
soul
.
zh
-
CN
老式削血卡组。
老式削血卡组。
AI_LV1
SUPPORT_MASTER_RULE_3
SUPPORT_NEW_MASTER_RULE
SUPPORT_MASTER_RULE_3
SUPPORT_NEW_MASTER_RULE
!永远之魂-青蛙
!永远之魂-青蛙
Name
=永远之魂
Deck
=
Frog
Dialog
=
soul
.
zh
-
CN
Name
=永远之魂
Deck
=
Frog
Dialog
=
soul
.
zh
-
CN
...
@@ -109,11 +114,26 @@ Name=奇魔果 Deck=DarkMagician Dialog=kiwi.zh-TW
...
@@ -109,11 +114,26 @@ Name=奇魔果 Deck=DarkMagician Dialog=kiwi.zh-TW
黑魔术师卡组。
黑魔术师卡组。
AI_LV3
SUPPORT_MASTER_RULE_3
SUPPORT_NEW_MASTER_RULE
AI_LV3
SUPPORT_MASTER_RULE_3
SUPPORT_NEW_MASTER_RULE
!
MAX
龍果
Name
=
MAX
龍果
Deck
=
BlueEyesMaxDragon
Dialog
=
kiwi
.
zh
-
TW
青眼混沌极龙卡组。
AI_LV2
SUPPORT_MASTER_RULE_3
SUPPORT_NEW_MASTER_RULE
!幻煌果
Name
=幻煌果
Deck
=
Phantasm
Dialog
=
kiwi
.
zh
-
TW
幻煌龙卡组。
AI_LV3
SUPPORT_MASTER_RULE_3
SUPPORT_NEW_MASTER_RULE
!燃血鬥士
!燃血鬥士
Name
=燃血鬥士
Deck
=
ChainBurn
Dialog
=
kiwi
.
zh
-
TW
Name
=燃血鬥士
Deck
=
ChainBurn
Dialog
=
kiwi
.
zh
-
TW
连锁烧卡组。
连锁烧卡组。
AI_LV3
SUPPORT_MASTER_RULE_3
SUPPORT_NEW_MASTER_RULE
AI_LV3
SUPPORT_MASTER_RULE_3
SUPPORT_NEW_MASTER_RULE
!報社鬥士
Name
=報社鬥士
Deck
=
GrenMajuThunderBoarder
Dialog
=
kiwi
.
zh
-
TW
红莲雷王滑板卡组。
AI_LV3
SUPPORT_NEW_MASTER_RULE
!复制梁龙-闪刀姬
!复制梁龙-闪刀姬
Name
=复制梁龙
Deck
=
SkyStriker
Dialog
=
anothercopy
.
zh
-
CN
Name
=复制梁龙
Deck
=
SkyStriker
Dialog
=
anothercopy
.
zh
-
CN
纯闪刀姬卡组。
纯闪刀姬卡组。
...
...
Decks/AI_Altergeist.ydk
View file @
c2a74881
...
@@ -6,7 +6,6 @@
...
@@ -6,7 +6,6 @@
53143898
53143898
42790071
42790071
42790071
42790071
42790071
14558127
14558127
14558127
14558127
59438930
59438930
...
...
Game/AI/Decks/AltergeistExecutor.cs
View file @
c2a74881
...
@@ -194,7 +194,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -194,7 +194,7 @@ namespace WindBot.Game.AI.Decks
public
bool
has_altergeist_left
()
public
bool
has_altergeist_left
()
{
{
return
(
Bot
.
GetRemainingCount
(
CardId
.
Marionetter
,
3
)
>
0
return
(
Bot
.
GetRemainingCount
(
CardId
.
Marionetter
,
3
)
>
0
||
Bot
.
GetRemainingCount
(
CardId
.
Multifaker
,
3
)
>
0
||
Bot
.
GetRemainingCount
(
CardId
.
Multifaker
,
2
)
>
0
||
Bot
.
GetRemainingCount
(
CardId
.
Meluseek
,
3
)
>
0
||
Bot
.
GetRemainingCount
(
CardId
.
Meluseek
,
3
)
>
0
||
Bot
.
GetRemainingCount
(
CardId
.
Silquitous
,
2
)
>
0
||
Bot
.
GetRemainingCount
(
CardId
.
Silquitous
,
2
)
>
0
||
Bot
.
GetRemainingCount
(
CardId
.
Kunquery
,
1
)
>
0
);
||
Bot
.
GetRemainingCount
(
CardId
.
Kunquery
,
1
)
>
0
);
...
@@ -1265,7 +1265,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -1265,7 +1265,7 @@ namespace WindBot.Game.AI.Decks
AI
.
SelectCard
(
CardId
.
Marionetter
);
AI
.
SelectCard
(
CardId
.
Marionetter
);
return
true
;
return
true
;
}
}
if
(!
Bot
.
HasInHandOrHasInMonstersZone
(
CardId
.
Multifaker
)
&&
Bot
.
GetRemainingCount
(
CardId
.
Multifaker
,
3
)
>
0
&&
Multifaker_can_ss
())
if
(!
Bot
.
HasInHandOrHasInMonstersZone
(
CardId
.
Multifaker
)
&&
Bot
.
GetRemainingCount
(
CardId
.
Multifaker
,
2
)
>
0
&&
Multifaker_can_ss
())
{
{
AI
.
SelectCard
(
CardId
.
Multifaker
);
AI
.
SelectCard
(
CardId
.
Multifaker
);
return
true
;
return
true
;
...
@@ -1332,7 +1332,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -1332,7 +1332,7 @@ namespace WindBot.Game.AI.Decks
{
{
if
(
Duel
.
Player
==
1
)
if
(
Duel
.
Player
==
1
)
{
{
if
(!
Bot
.
HasInHandOrHasInMonstersZone
(
CardId
.
Multifaker
)
&&
Bot
.
GetRemainingCount
(
CardId
.
Multifaker
,
3
)
>
0
&&
Multifaker_candeckss
()
&&
Multifaker_can_ss
())
if
(!
Bot
.
HasInHandOrHasInMonstersZone
(
CardId
.
Multifaker
)
&&
Bot
.
GetRemainingCount
(
CardId
.
Multifaker
,
2
)
>
0
&&
Multifaker_candeckss
()
&&
Multifaker_can_ss
())
{
{
foreach
(
ClientCard
set_card
in
Bot
.
GetSpells
())
foreach
(
ClientCard
set_card
in
Bot
.
GetSpells
())
{
{
...
@@ -1356,7 +1356,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -1356,7 +1356,7 @@ namespace WindBot.Game.AI.Decks
AI
.
SelectCard
(
CardId
.
Marionetter
);
AI
.
SelectCard
(
CardId
.
Marionetter
);
return
true
;
return
true
;
}
}
if
(!
Bot
.
HasInHandOrHasInMonstersZone
(
CardId
.
Multifaker
)
&&
Bot
.
GetRemainingCount
(
CardId
.
Multifaker
,
3
)
>
0
&&
Multifaker_can_ss
())
if
(!
Bot
.
HasInHandOrHasInMonstersZone
(
CardId
.
Multifaker
)
&&
Bot
.
GetRemainingCount
(
CardId
.
Multifaker
,
2
)
>
0
&&
Multifaker_can_ss
())
{
{
AI
.
SelectCard
(
CardId
.
Multifaker
);
AI
.
SelectCard
(
CardId
.
Multifaker
);
return
true
;
return
true
;
...
@@ -2362,7 +2362,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -2362,7 +2362,7 @@ namespace WindBot.Game.AI.Decks
if
(
GetTotalATK
(
targets
)
>=
1500
&&
(
summoned
||
(!
Meluseek_selected
&&
!
Hexstia_selected
)))
return
false
;
if
(
GetTotalATK
(
targets
)
>=
1500
&&
(
summoned
||
(!
Meluseek_selected
&&
!
Hexstia_selected
)))
return
false
;
}
}
bool
can_have_Multifaker
=
(
Bot
.
HasInHand
(
CardId
.
Multifaker
)
bool
can_have_Multifaker
=
(
Bot
.
HasInHand
(
CardId
.
Multifaker
)
||
(
Bot
.
GetRemainingCount
(
CardId
.
Multifaker
,
3
)
>
0
||
(
Bot
.
GetRemainingCount
(
CardId
.
Multifaker
,
2
)
>
0
&&
(
(
Meluseek_selected
&&
!
Meluseek_searched
)
&&
(
(
Meluseek_selected
&&
!
Meluseek_searched
)
||
(
Hexstia_selected
&&
!
Hexstia_searched
)
)));
||
(
Hexstia_selected
&&
!
Hexstia_searched
)
)));
if
(
can_have_Multifaker
&&
Multifaker_can_ss
())
altergeist_count
++;
if
(
can_have_Multifaker
&&
Multifaker_can_ss
())
altergeist_count
++;
...
...
Game/AI/Enums/Floodgate.cs
View file @
c2a74881
...
@@ -78,6 +78,8 @@
...
@@ -78,6 +78,8 @@
SuperboltThunderDragon
=
15291624
,
SuperboltThunderDragon
=
15291624
,
ThunderDragonLord
=
41685633
,
ThunderDragonLord
=
41685633
,
CyberDragonInfinity
=
10443957
,
CyberDragonInfinity
=
10443957
,
ImperialCustom
=
9995766
ImperialCustom
=
9995766
,
InspectorBoarder
=
15397015
}
}
}
}
Game/ClientCard.cs
View file @
c2a74881
...
@@ -247,6 +247,21 @@ namespace WindBot.Game
...
@@ -247,6 +247,21 @@ namespace WindBot.Game
return
(
Attribute
&
(
int
)
attribute
)
!=
0
;
return
(
Attribute
&
(
int
)
attribute
)
!=
0
;
}
}
public
bool
HasSetcode
(
int
setcode
)
{
if
(
Data
==
null
)
return
false
;
long
setcodes
=
Data
.
Setcode
;
int
settype
=
setcode
&
0xfff
;
int
setsubtype
=
setcode
&
0xf000
;
while
(
setcodes
>
0
)
{
long
check_setcode
=
setcodes
&
0xffff
;
setcodes
>>=
16
;
if
((
check_setcode
&
0xfff
)
==
settype
&&
(
check_setcode
&
0xf000
&
setsubtype
)
==
setsubtype
)
return
true
;
}
return
false
;
}
public
bool
IsMonster
()
public
bool
IsMonster
()
{
{
return
HasType
(
CardType
.
Monster
);
return
HasType
(
CardType
.
Monster
);
...
...
WindBotInfo.cs
View file @
c2a74881
...
@@ -22,7 +22,7 @@ namespace WindBot
...
@@ -22,7 +22,7 @@ namespace WindBot
Host
=
"127.0.0.1"
;
Host
=
"127.0.0.1"
;
Port
=
7911
;
Port
=
7911
;
HostInfo
=
""
;
HostInfo
=
""
;
Version
=
0x134
5
;
Version
=
0x134
6
;
Hand
=
0
;
Hand
=
0
;
Debug
=
false
;
Debug
=
false
;
Chat
=
true
;
Chat
=
true
;
...
...
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