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
b9911733
Commit
b9911733
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
bdcce316
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
35 deletions
+0
-35
Game/AI/Decks/AutoChessExecutor.cs
Game/AI/Decks/AutoChessExecutor.cs
+0
-35
No files found.
Game/AI/Decks/AutoChessExecutor.cs
View file @
b9911733
...
@@ -142,8 +142,6 @@ namespace WindBot.Game.AI.Decks
...
@@ -142,8 +142,6 @@ namespace WindBot.Game.AI.Decks
EnemyCardUnTargetMonster(ClientCard card)
EnemyCardUnTargetMonster(ClientCard card)
得到某个位置的卡片的函数(从神数不神那借来的)
得到某个位置的卡片的函数(从神数不神那借来的)
GetZoneCards(CardLocation loc, ClientField player)
GetZoneCards(CardLocation loc, ClientField player)
系统提示检测
HintFunction(int hint, int last, int[] except)
卡片发动过滤函数
卡片发动过滤函数
灵摆刻度设置
灵摆刻度设置
PendulumActivateFunction()
PendulumActivateFunction()
...
@@ -635,21 +633,6 @@ namespace WindBot.Game.AI.Decks
...
@@ -635,21 +633,6 @@ namespace WindBot.Game.AI.Decks
return
res
;
return
res
;
}
}
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
PendulumActivateFunction
()
private
bool
PendulumActivateFunction
()
{
{
if
(
Card
.
HasType
(
CardType
.
Pendulum
)
&&
Card
.
Location
==
CardLocation
.
Hand
&&
ActivateDescription
==
1160
)
if
(
Card
.
HasType
(
CardType
.
Pendulum
)
&&
Card
.
Location
==
CardLocation
.
Hand
&&
ActivateDescription
==
1160
)
...
@@ -1033,24 +1016,6 @@ namespace WindBot.Game.AI.Decks
...
@@ -1033,24 +1016,6 @@ namespace WindBot.Game.AI.Decks
if
(
scards
.
Count
>
0
)
return
Util
.
CheckSelectCount
(
result
,
scards
,
1
,
1
);
if
(
scards
.
Count
>
0
)
return
Util
.
CheckSelectCount
(
result
,
scards
,
1
,
1
);
else
if
(
min
==
0
)
return
result
;
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
))
if
(
HintMsgForEnemy
.
Contains
(
hint
))
{
{
...
...
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