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
9442096f
Commit
9442096f
authored
Apr 17, 2020
by
wind2009
Committed by
GitHub
Apr 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Executor update (#123)
parent
b115f4a5
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 @
9442096f
...
...
@@ -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 @
9442096f
...
...
@@ -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 @
9442096f
...
...
@@ -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