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
HiiragiGuardians
windbot
Commits
45e27842
Commit
45e27842
authored
Sep 15, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into rd
parents
ff7ab469
ebd93879
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
9 deletions
+12
-9
.gitlab-ci.yml
.gitlab-ci.yml
+1
-3
BotWrapper/bot.conf
BotWrapper/bot.conf
+2
-2
Game/AI/DefaultExecutor.cs
Game/AI/DefaultExecutor.cs
+3
-0
Game/GameBehavior.cs
Game/GameBehavior.cs
+5
-3
WindBotInfo.cs
WindBotInfo.cs
+1
-1
No files found.
.gitlab-ci.yml
View file @
45e27842
...
...
@@ -18,7 +18,7 @@ build:
-
apt update && apt -y install p7zip-full tar
-
msbuild /p:Configuration=Release /p:TargetFrameworkVersion=v4.6
-
mv -f bin/Release WindBot
-
rm -rf WindBot/WindBot.exe.config
#
- rm -rf WindBot/WindBot.exe.config
-
mv -f BotWrapper/bin/Release/Bot.exe .
-
mv -f BotWrapper/bin/Release/bot.conf .
-
mv -f BotWrapper/BotWrapper.sh ./bot
...
...
@@ -46,9 +46,7 @@ upload_to_minio:
-
build
tags
:
-
linux
image
:
python
script
:
-
pip install -U -i https://mirrors.aliyun.com/pypi/simple/ awscli
-
aws s3 --endpoint=https://minio.mycard.moe:9000 sync dist/ s3://mycard/windbot
only
:
-
master
...
...
BotWrapper/bot.conf
View file @
45e27842
...
...
@@ -220,11 +220,11 @@ Name=玻璃女巫 Deck=Witchcraft Dialog=verre.zh-CN
AI_LV3
SUPPORT_MASTER_RULE_3
SUPPORT_NEW_MASTER_RULE
SUPPORT_MASTER_RULE_2020
!源千雪-凭依装着
Name
=源千雪
Deck
=
FamiliarPossessed
Dialog
=
default
.
zh
-
CN
Name
=源千雪
Deck
=
FamiliarPossessed
Dialog
=
default
凭依装着卡组。
AI_ANTI_META
SUPPORT_MASTER_RULE_3
SUPPORT_NEW_MASTER_RULE
SUPPORT_MASTER_RULE_2020
!璃璃子-时劫者
Name
=璃璃子
Deck
=
TimeThief
Dialog
=
default
.
zh
-
CN
Name
=璃璃子
Deck
=
TimeThief
Dialog
=
default
时间潜行者卡组。
AI_LV2
SUPPORT_MASTER_RULE_3
SUPPORT_NEW_MASTER_RULE
SUPPORT_MASTER_RULE_2020
Game/AI/DefaultExecutor.cs
View file @
45e27842
...
...
@@ -725,6 +725,9 @@ namespace WindBot.Game.AI
/// </summary>
protected
bool
DefaultMonsterRepos
()
{
if
(
Card
.
IsMonsterInvincible
())
return
Card
.
IsDefense
();
if
(
Card
.
Attack
==
0
)
{
if
(
Card
.
IsFaceup
()
&&
Card
.
IsAttack
())
...
...
Game/GameBehavior.cs
View file @
45e27842
...
...
@@ -188,8 +188,8 @@ namespace WindBot.Game
int
duel_rule
=
packet
.
ReadByte
();
_ai
.
Duel
.
IsNewRule
=
(
duel_rule
>=
4
);
_ai
.
Duel
.
IsNewRule2020
=
(
duel_rule
>=
5
);
BinaryWriter
deck
=
buildUpdateDeck
(
pickDeckOnResult
());
Connection
.
Send
(
deck
);
//
BinaryWriter deck = buildUpdateDeck(pickDeckOnResult());
//
Connection.Send(deck);
_ai
.
OnJoinGame
();
}
...
...
@@ -228,6 +228,8 @@ namespace WindBot.Game
_room
.
Position
=
pos
;
_room
.
IsHost
=
((
type
>>
4
)
&
0xF
)
!=
0
;
_room
.
IsReady
[
pos
]
=
true
;
BinaryWriter
deck
=
buildUpdateDeck
(
pickDeckOnResult
());
Connection
.
Send
(
deck
);
Connection
.
Send
(
CtosMessage
.
HsReady
);
}
...
...
@@ -353,7 +355,7 @@ namespace WindBot.Game
if
(
card
!=
null
)
_ai
.
OnDeckError
(
card
.
Name
);
else
_ai
.
OnDeckError
(
"Unknown Card"
);
_ai
.
OnDeckError
(
code
.
ToString
()
);
}
else
_ai
.
OnDeckError
(
"DECK"
);
...
...
WindBotInfo.cs
View file @
45e27842
...
...
@@ -26,7 +26,7 @@ namespace WindBot
Host
=
"127.0.0.1"
;
Port
=
7911
;
HostInfo
=
""
;
Version
=
0x135
2
;
Version
=
0x135
3
;
Hand
=
0
;
Debug
=
false
;
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