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
a9bcb27d
Commit
a9bcb27d
authored
Dec 28, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update new rule 2020
parent
c82c7038
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
Game/AI/AIUtil.cs
Game/AI/AIUtil.cs
+1
-1
Game/Duel.cs
Game/Duel.cs
+1
-0
Game/GameBehavior.cs
Game/GameBehavior.cs
+4
-2
No files found.
Game/AI/AIUtil.cs
View file @
a9bcb27d
...
...
@@ -251,7 +251,7 @@ namespace WindBot.Game.AI
if
(
remove
.
Contains
(
EnemyMZone
[
i
]))
EnemyMZone
[
i
]
=
null
;
}
if
(!
Duel
.
IsNewRule
)
if
(!
Duel
.
IsNewRule
||
Duel
.
IsNewRule2020
)
return
Zones
.
MainMonsterZones
;
int
result
=
0
;
...
...
Game/Duel.cs
View file @
a9bcb27d
...
...
@@ -7,6 +7,7 @@ namespace WindBot.Game
{
public
bool
IsFirst
{
get
;
set
;
}
public
bool
IsNewRule
{
get
;
set
;
}
public
bool
IsNewRule2020
{
get
;
set
;
}
public
ClientField
[]
Fields
{
get
;
private
set
;
}
...
...
Game/GameBehavior.cs
View file @
a9bcb27d
...
...
@@ -150,7 +150,8 @@ namespace WindBot.Game
/*int rule = */
packet
.
ReadByte
();
/*int mode = */
packet
.
ReadByte
();
int
duel_rule
=
packet
.
ReadByte
();
_ai
.
Duel
.
IsNewRule
=
(
duel_rule
==
4
);
_ai
.
Duel
.
IsNewRule
=
(
duel_rule
>=
4
);
_ai
.
Duel
.
IsNewRule2020
=
(
duel_rule
>=
5
);
BinaryWriter
deck
=
GamePacketFactory
.
Create
(
CtosMessage
.
UpdateDeck
);
deck
.
Write
(
Deck
.
Cards
.
Count
+
Deck
.
ExtraCards
.
Count
);
deck
.
Write
(
Deck
.
SideCards
.
Count
);
...
...
@@ -347,7 +348,8 @@ namespace WindBot.Game
_duel
.
IsFirst
=
(
type
&
0xF
)
==
0
;
_duel
.
Turn
=
0
;
int
duel_rule
=
packet
.
ReadByte
();
_ai
.
Duel
.
IsNewRule
=
(
duel_rule
==
4
);
_ai
.
Duel
.
IsNewRule
=
(
duel_rule
>=
4
);
_ai
.
Duel
.
IsNewRule2020
=
(
duel_rule
>=
5
);
_duel
.
Fields
[
GetLocalPlayer
(
0
)].
LifePoints
=
packet
.
ReadInt32
();
_duel
.
Fields
[
GetLocalPlayer
(
1
)].
LifePoints
=
packet
.
ReadInt32
();
int
deck
=
packet
.
ReadInt16
();
...
...
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