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
神之吹息
windbot
Commits
fbd0d061
Commit
fbd0d061
authored
Jul 26, 2024
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/IceYGO/windbot
parents
345b2be1
5eb4766a
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
5948 additions
and
5 deletions
+5948
-5
BotWrapper/bot.conf
BotWrapper/bot.conf
+5
-0
Decks/AI_Albaz.ydk
Decks/AI_Albaz.ydk
+64
-0
Dialogs/ecclesia.zh-CN.json
Dialogs/ecclesia.zh-CN.json
+2
-1
Game/AI/Decks/AlbazExecutor.cs
Game/AI/Decks/AlbazExecutor.cs
+5861
-0
Game/AI/DefaultExecutor.cs
Game/AI/DefaultExecutor.cs
+12
-1
Game/GameAI.cs
Game/GameAI.cs
+1
-1
Game/GameBehavior.cs
Game/GameBehavior.cs
+1
-1
WindBot.csproj
WindBot.csproj
+1
-0
YGOSharp.OCGWrapper.Enums/CardRace.cs
YGOSharp.OCGWrapper.Enums/CardRace.cs
+1
-1
No files found.
BotWrapper/bot.conf
View file @
fbd0d061
...
...
@@ -224,6 +224,11 @@ Name=艾克莉西娅 Deck=Dogmatika Dialog=ecclesia.zh-CN
教导卡组。
AI_LV4
SUPPORT_MASTER_RULE_3
SUPPORT_NEW_MASTER_RULE
SUPPORT_MASTER_RULE_2020
!艾克莉西娅-阿不思
Name
=艾克莉西娅
Deck
=
Albaz
Dialog
=
ecclesia
.
zh
-
CN
以阿不思的落胤为中心的卡组。
AI_LV4
SUPPORT_MASTER_RULE_3
SUPPORT_MASTER_RULE_2020
!神数不神-刹帝利
Name
=神数不神
Deck
=
Kashtira
Dialog
=
Zefra
.
zh
-
CN
俱舍怒威族卡组。
...
...
Decks/AI_Albaz.ydk
0 → 100644
View file @
fbd0d061
#created by ...
#main
32731036
25451383
60242223
62962630
62962630
62962630
68468459
68468459
45484331
45883110
95515789
19096726
14558127
14558127
14558127
23434538
23434538
23434538
36577931
1984618
1984618
6498706
6498706
34995106
44362883
75500286
81439173
24224830
24224830
29948294
36637374
65681983
82738008
18973184
10045474
10045474
10045474
19271881
32756828
17751597
#extra
11321089
38811586
44146295
44146295
92892239
70534340
3410461
24915933
72272462
1906812
41373230
51409648
87746184
87746184
53971455
!side
56787189
55273561
68468460
72554664
95515790
\ No newline at end of file
Dialogs/ecclesia.zh-CN.json
View file @
fbd0d061
{
"welcome"
:
[
"这里就是大灵峰吗?"
,
"这里是教导龙国。"
"这里是教导龙国。"
,
"这里是开放的大地。"
],
"deckerror"
:
[
"{0}被冰水咒缚了!"
...
...
Game/AI/Decks/AlbazExecutor.cs
0 → 100644
View file @
fbd0d061
This diff is collapsed.
Click to expand it.
Game/AI/DefaultExecutor.cs
View file @
fbd0d061
...
...
@@ -1129,6 +1129,15 @@ namespace WindBot.Game.AI
_CardId
.
EvenlyMatched
,
_CardId
.
DivineArsenalAAZEUS_SkyThunder
};
int
[]
destroyAllMonsterList
=
{
_CardId
.
DarkHole
,
_CardId
.
InterruptedKaijuSlumber
};
int
[]
destroyAllOpponentMonsterList
=
{
_CardId
.
Raigeki
};
int
[]
destroyAllOpponentSpellList
=
{
_CardId
.
HarpiesFeatherDuster
,
...
...
@@ -1137,6 +1146,8 @@ namespace WindBot.Game.AI
if
(
Util
.
ChainContainsCard
(
destroyAllList
))
return
true
;
if
(
Enemy
.
HasInSpellZone
(
destroyAllOpponentSpellList
,
true
)
&&
Card
.
Location
==
CardLocation
.
SpellZone
)
return
true
;
if
(
Util
.
ChainContainsCard
(
destroyAllMonsterList
)
&&
Card
.
Location
==
CardLocation
.
MonsterZone
)
return
true
;
if
(
Duel
.
CurrentChain
.
Any
(
c
=>
c
.
Controller
==
1
&&
c
.
IsCode
(
destroyAllOpponentMonsterList
))
&&
Card
.
Location
==
CardLocation
.
MonsterZone
)
return
true
;
if
(
lightningStormOption
==
0
&&
Card
.
Location
==
CardLocation
.
MonsterZone
&&
Card
.
IsAttack
())
return
true
;
if
(
lightningStormOption
==
1
&&
Card
.
Location
==
CardLocation
.
SpellZone
)
return
true
;
// TODO: ChainContainsCard(id, player)
...
...
@@ -1579,7 +1590,7 @@ namespace WindBot.Game.AI
if
(
originId
==
0
)
originId
=
card
.
Data
.
Id
;
return
crossoutDesignatorIdList
.
Contains
(
originId
)
||
(
calledbytheGraveIdCountMap
.
ContainsKey
(
originId
)
&&
calledbytheGraveIdCountMap
[
originId
]
>
0
)
||
card
.
IsDisabled
(
);
||
(
card
.
IsDisabled
()
&&
((
int
)
card
.
Location
&
(
int
)
CardLocation
.
Onfield
)
>
0
);
}
protected
bool
DefaultCheckWhetherCardIdIsNegated
(
int
cardId
)
...
...
Game/GameAI.cs
View file @
fbd0d061
...
...
@@ -1162,6 +1162,7 @@ namespace WindBot.Game
private
bool
ShouldExecute
(
CardExecutor
exec
,
ClientCard
card
,
ExecutorType
type
,
int
desc
=
-
1
,
int
timing
=
-
1
)
{
Executor
.
SetCard
(
type
,
card
,
desc
,
timing
);
if
(
card
.
Id
!=
0
&&
type
==
ExecutorType
.
Activate
)
{
if
(
_activatedCards
.
ContainsKey
(
card
.
Id
)
&&
_activatedCards
[
card
.
Id
]
>=
9
)
...
...
@@ -1169,7 +1170,6 @@ namespace WindBot.Game
if
(!
Executor
.
OnPreActivate
(
card
))
return
false
;
}
Executor
.
SetCard
(
type
,
card
,
desc
,
timing
);
bool
result
=
card
!=
null
&&
exec
.
Type
==
type
&&
(
exec
.
CardId
==
-
1
||
exec
.
CardId
==
card
.
Id
)
&&
(
exec
.
Func
==
null
||
exec
.
Func
());
...
...
Game/GameBehavior.cs
View file @
fbd0d061
...
...
@@ -1024,7 +1024,7 @@ namespace WindBot.Game
card
.
Controller
=
player
;
}
if
(
card
==
null
)
continue
;
if
(
card
.
Id
==
0
)
if
(
card
.
Id
==
0
||
card
.
Location
==
CardLocation
.
Deck
)
card
.
SetId
(
id
);
cards
.
Add
(
card
);
}
...
...
WindBot.csproj
View file @
fbd0d061
...
...
@@ -60,6 +60,7 @@
<Compile
Include=
"Game\AI\CardSelector.cs"
/>
<Compile
Include=
"Game\AI\DeckAttribute.cs"
/>
<Compile
Include=
"Game\AI\DecksManager.cs"
/>
<Compile
Include=
"Game\AI\Decks\AlbazExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\AltergeistExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\BraveExecutor.cs"
/>
<Compile
Include=
"Game\AI\Decks\FamiliarPossessedExecutor.cs"
/>
...
...
YGOSharp.OCGWrapper.Enums/CardRace.cs
View file @
fbd0d061
...
...
@@ -17,7 +17,7 @@
Thunder
=
0x1000
,
Dragon
=
0x2000
,
Beast
=
0x4000
,
BestWarrior
=
0x8000
,
Be
a
stWarrior
=
0x8000
,
Dinosaur
=
0x10000
,
Fish
=
0x20000
,
SeaSerpent
=
0x40000
,
...
...
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