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
38a5d5ab
Commit
38a5d5ab
authored
Mar 04, 2024
by
jwyxym
Committed by
GitHub
Mar 04, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update AutoChessExecutor.cs
parent
b9911733
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
Game/AI/Decks/AutoChessExecutor.cs
Game/AI/Decks/AutoChessExecutor.cs
+35
-0
No files found.
Game/AI/Decks/AutoChessExecutor.cs
View file @
38a5d5ab
...
...
@@ -142,6 +142,8 @@ namespace WindBot.Game.AI.Decks
EnemyCardUnTargetMonster(ClientCard card)
得到某个位置的卡片的函数(从神数不神那借来的)
GetZoneCards(CardLocation loc, ClientField player)
系统提示检测
HintFunction(int hint, int last, int[] except)
卡片发动过滤函数
灵摆刻度设置
PendulumActivateFunction()
...
...
@@ -532,6 +534,20 @@ namespace WindBot.Game.AI.Decks
return
false
;
}
private
bool
HintFunction
(
int
hint
,
int
last
,
int
[]
except
)
{
for
(
int
i
=
500
;
i
<=
500
+
last
;
i
++)
{
foreach
(
int
ex
in
except
)
{
if
(
i
==
ex
)
i
++;
}
if
(
hint
==
i
)
return
true
;
}
return
false
;
}
private
bool
EnemyCardTargetMonster
(
ClientCard
card
)
{
int
[]
cardsname
=
new
[]
{
4335645
,
7089711
,
7852509
,
7852510
,
21947653
,
25847467
,
37580756
,
41440817
,
51945556
,
52824910
,
94192409
,
85034450
,
79759861
,
74131780
,
72427512
...
...
@@ -1017,6 +1033,25 @@ namespace WindBot.Game.AI.Decks
else
if
(
min
==
0
)
return
result
;
}
if
(
HintFunction
(
hint
,
13
,
new
[]{
506
})
&&
!
cards
.
Any
(
card
=>
card
!=
null
&&
card
.
Controller
==
1
)
&&
cards
.
Any
(
card
=>
card
!=
null
&&
card
.
Location
==
CardLocation
.
Hand
))
{
IList
<
ClientCard
>
scards
=
cards
.
Where
(
card
=>
card
!=
null
&&
(!
card
.
HasSetcode
(
0x40
)
||
card
.
Location
!=
CardLocation
.
Hand
)).
ToList
();
if
(
scards
.
Count
()
<
min
)
{
IList
<
ClientCard
>
scards2
=
cards
.
Where
(
card
=>
card
!=
null
&&
card
.
HasSetcode
(
0x40
)
&&
card
.
Location
==
CardLocation
.
Hand
).
ToList
();
if
(
scards2
.
Count
()
>
0
)
{
foreach
(
ClientCard
card
in
scards2
)
{
if
(
scards
.
Count
()
<
min
)
scards
.
Add
(
card
);
}
}
}
if
(
scards
.
Count
()
>=
min
)
return
Util
.
CheckSelectCount
(
scards
,
cards
,
min
,
max
);
}
if
(
HintMsgForEnemy
.
Contains
(
hint
))
{
IList
<
ClientCard
>
enemyCards
=
cards
.
Where
(
card
=>
card
.
Controller
==
1
).
ToList
();
...
...
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