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
aa293795
Commit
aa293795
authored
Aug 23, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tricky
parent
9781bfe2
Pipeline
#4891
passed with stage
in 55 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
15 deletions
+15
-15
Game/BattlePhaseAction.cs
Game/BattlePhaseAction.cs
+3
-3
Game/GameBehavior.cs
Game/GameBehavior.cs
+7
-7
Game/MainPhaseAction.cs
Game/MainPhaseAction.cs
+5
-5
No files found.
Game/BattlePhaseAction.cs
View file @
aa293795
...
...
@@ -6,8 +6,8 @@
{
Activate
=
0
,
Attack
=
1
,
ToMainPhaseTwo
=
2
,
ToEndPhase
=
3
ToMainPhaseTwo
=
3
,
ToEndPhase
=
2
}
public
BattleAction
Action
{
get
;
private
set
;
}
...
...
Game/GameBehavior.cs
View file @
aa293795
...
...
@@ -941,8 +941,8 @@ namespace WindBot.Game
monster
.
Attacked
=
true
;
}
battle
.
CanMainPhaseTwo
=
packet
.
ReadByte
()
!=
0
;
battle
.
CanEndPhase
=
packet
.
ReadByte
()
!=
0
;
battle
.
CanMainPhaseTwo
=
packet
.
ReadByte
()
!=
0
;
Connection
.
Send
(
CtosMessage
.
Response
,
_ai
.
OnSelectBattleCmd
(
battle
).
ToValue
());
}
...
...
@@ -1191,7 +1191,7 @@ namespace WindBot.Game
ClientCard
card
=
_duel
.
GetCard
(
player
,
loc
,
seq
);
if
(
card
==
null
)
{
Connection
.
Send
(
CtosMessage
.
Response
,
0
);
Connection
.
Send
(
CtosMessage
.
Response
,
1
);
return
;
}
...
...
@@ -1199,7 +1199,7 @@ namespace WindBot.Game
card
.
SetId
(
cardId
);
int
reply
=
_ai
.
OnSelectEffectYn
(
card
,
desc
)
?
(
1
)
:
(
0
);
Connection
.
Send
(
CtosMessage
.
Response
,
reply
);
Connection
.
Send
(
CtosMessage
.
Response
,
1
-
reply
);
}
private
void
OnSelectIdleCmd
(
BinaryReader
packet
)
...
...
@@ -1223,7 +1223,7 @@ namespace WindBot.Game
card
.
ActionIndex
[
k
]
=
i
;
switch
(
k
)
{
case
0
:
case
3
:
main
.
SummonableCards
.
Add
(
card
);
break
;
case
1
:
...
...
@@ -1232,7 +1232,7 @@ namespace WindBot.Game
case
2
:
main
.
ReposableCards
.
Add
(
card
);
break
;
case
3
:
case
0
:
main
.
MonsterSetableCards
.
Add
(
card
);
break
;
case
4
:
...
...
@@ -1260,8 +1260,8 @@ namespace WindBot.Game
main
.
ActivableDescs
.
Add
(
desc
);
}
main
.
CanBattlePhase
=
packet
.
ReadByte
()
!=
0
;
main
.
CanEndPhase
=
packet
.
ReadByte
()
!=
0
;
main
.
CanBattlePhase
=
packet
.
ReadByte
()
!=
0
;
packet
.
ReadByte
();
// CanShuffle
Connection
.
Send
(
CtosMessage
.
Response
,
_ai
.
OnSelectIdleCmd
(
main
).
ToValue
());
...
...
@@ -1470,7 +1470,7 @@ namespace WindBot.Game
reply
=
_ai
.
OnSelectBattleReplay
()
?
1
:
0
;
else
reply
=
_ai
.
OnSelectYesNo
(
desc
)
?
1
:
0
;
Connection
.
Send
(
CtosMessage
.
Response
,
reply
);
Connection
.
Send
(
CtosMessage
.
Response
,
1
-
reply
);
}
private
void
OnAnnounceAttrib
(
BinaryReader
packet
)
...
...
Game/MainPhaseAction.cs
View file @
aa293795
...
...
@@ -4,14 +4,14 @@
{
public
enum
MainAction
{
Summon
=
0
,
Summon
=
3
,
SpSummon
=
1
,
Repos
=
2
,
SetMonster
=
3
,
SetMonster
=
0
,
SetSpell
=
4
,
Activate
=
5
,
ToBattlePhase
=
6
,
ToEndPhase
=
7
ToBattlePhase
=
7
,
ToEndPhase
=
6
}
public
MainAction
Action
{
get
;
private
set
;
}
...
...
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