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
xiaoye
windbot
Commits
c567282b
Commit
c567282b
authored
Apr 17, 2020
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/IceYGO/windbot
parents
80d2f527
9442096f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
15 deletions
+25
-15
Game/AI/Decks/MathMechExecutor.cs
Game/AI/Decks/MathMechExecutor.cs
+10
-0
Game/AI/Decks/PureWindsExecutor.cs
Game/AI/Decks/PureWindsExecutor.cs
+1
-1
Game/AI/Decks/TimeThiefExecutor.cs
Game/AI/Decks/TimeThiefExecutor.cs
+14
-14
No files found.
Game/AI/Decks/MathMechExecutor.cs
View file @
c567282b
...
...
@@ -364,6 +364,16 @@ namespace WindBot.Game.AI.Decks
}
}
public
override
int
OnSelectPlace
(
int
cardId
,
int
player
,
CardLocation
location
,
int
available
)
{
if
(
cardId
==
CardID
.
MathmechFinalSigma
)
{
if
((
Zones
.
z5
&
available
)
>
0
)
return
Zones
.
z5
;
if
((
Zones
.
z6
&
available
)
>
0
)
return
Zones
.
z6
;
}
return
base
.
OnSelectPlace
(
cardId
,
player
,
location
,
available
);
}
}
}
\ No newline at end of file
Game/AI/Decks/PureWindsExecutor.cs
View file @
c567282b
...
...
@@ -220,10 +220,10 @@ namespace WindBot.Game.AI.Decks
:
base
(
ai
,
duel
)
{
//counter
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
SolemnStrike
,
base
.
DefaultSolemnStrike
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
SolemnWarning
,
base
.
DefaultSolemnWarning
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
ForbiddenChalice
,
ForbiddenChaliceeff
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
CrystalWingSynchroDragon
,
CrystalWingSynchroDragoneff
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
SolemnStrike
,
base
.
DefaultSolemnStrike
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
GustoGulldo
,
GustoGulldoeff
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
GustoEgul
,
GustoEguleff
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
WindaPriestessOfGusto
,
WindaPriestessOfGustoeff
);
...
...
Game/AI/Decks/TimeThiefExecutor.cs
View file @
c567282b
...
...
@@ -69,16 +69,9 @@ namespace WindBot.Game.AI.Decks
AddExecutor
(
ExecutorType
.
SpellSet
,
Traps
.
TimeThiefRetrograte
);
AddExecutor
(
ExecutorType
.
SpellSet
,
Traps
.
TimeThiefFlyBack
);
//special summons
AddExecutor
(
ExecutorType
.
SpSummon
,
Monsters
.
PhotonTrasher
,
SummonToDef
);
AddExecutor
(
ExecutorType
.
SpSummon
,
Monsters
.
TimeThiefRegulator
,
SummonToDef
);
AddExecutor
(
ExecutorType
.
SpSummon
,
Monsters
.
TimeThiefWinder
,
SummonToDef
);
AddExecutor
(
ExecutorType
.
SpSummon
,
Monsters
.
PerformTrickClown
,
SummonToDef
);
AddExecutor
(
ExecutorType
.
SpSummon
,
Monsters
.
TimeThiefCronocorder
,
SummonToDef
);
AddExecutor
(
ExecutorType
.
SpSummon
,
Monsters
.
TimeThiefBezelShip
,
SummonToDef
);
//normal summons
AddExecutor
(
ExecutorType
.
Summon
,
Monsters
.
TimeThiefRegulator
);
AddExecutor
(
ExecutorType
.
SpSummon
,
Monsters
.
PhotonTrasher
,
SummonToDef
);
AddExecutor
(
ExecutorType
.
Summon
,
Monsters
.
TimeThiefWinder
);
AddExecutor
(
ExecutorType
.
Summon
,
Monsters
.
TimeThiefBezelShip
);
AddExecutor
(
ExecutorType
.
Summon
,
Monsters
.
PerformTrickClown
);
...
...
@@ -100,12 +93,9 @@ namespace WindBot.Game.AI.Decks
//monster effects
AddExecutor
(
ExecutorType
.
Activate
,
Monsters
.
TimeThiefRegulator
,
RegulatorEffect
);
AddExecutor
(
ExecutorType
.
Activate
,
Monsters
.
TimeThiefWinder
);
AddExecutor
(
ExecutorType
.
Activate
,
Monsters
.
PhotonTrasher
);
AddExecutor
(
ExecutorType
.
Activate
,
Monsters
.
TimeThiefCronocorder
);
AddExecutor
(
ExecutorType
.
Activate
,
Monsters
.
PerformTrickClown
);
AddExecutor
(
ExecutorType
.
Activate
,
Monsters
.
TimeThiefBezelShip
);
AddExecutor
(
ExecutorType
.
Activate
,
Monsters
.
PerformTrickClown
,
TrickClownEffect
);
AddExecutor
(
ExecutorType
.
Activate
,
Monsters
.
TimeThiefBezelShip
);
}
private
bool
SummonToDef
()
...
...
@@ -278,8 +268,18 @@ namespace WindBot.Game.AI.Decks
return
true
;
}
private
bool
TrickClownEffect
()
{
if
(
Bot
.
LifePoints
<=
1000
)
{
return
false
;
}
AI
.
SelectPosition
(
CardPosition
.
FaceUpDefence
);
return
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