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
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
MyCard
windbot
Commits
5870c2d9
Commit
5870c2d9
authored
Apr 05, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor format fixes
parent
cfc60c2b
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
53 additions
and
54 deletions
+53
-54
Dialogs/kiwi.zh-TW.json
Dialogs/kiwi.zh-TW.json
+1
-2
Game/AI/Decks/BlackwingExecutor.cs
Game/AI/Decks/BlackwingExecutor.cs
+1
-1
Game/AI/Decks/CyberDragonExecutor.cs
Game/AI/Decks/CyberDragonExecutor.cs
+1
-1
Game/AI/Decks/LightswornShaddoldinosourExecutor.cs
Game/AI/Decks/LightswornShaddoldinosourExecutor.cs
+44
-44
Game/AI/Decks/NekrozExecutor.cs
Game/AI/Decks/NekrozExecutor.cs
+4
-4
Game/AI/Decks/QliphortExecutor.cs
Game/AI/Decks/QliphortExecutor.cs
+1
-1
Game/GameAI.cs
Game/GameAI.cs
+1
-1
No files found.
Dialogs/kiwi.zh-
CN
.json
→
Dialogs/kiwi.zh-
TW
.json
View file @
5870c2d9
...
...
@@ -9,8 +9,7 @@
"duelstart"
:
[
"這只是AI,打贏不要太高興阿。"
,
"十分致謝233服讓我們有遊戲可以玩,別忘記去拜訪他們。"
,
"反主流學院請洽NOVA。"
,
"反主流學院請洽NOVA。"
],
"newturn"
:
[
"到我的回合了,抽牌!"
,
...
...
Game/AI/Decks/BlackwingExecutor.cs
View file @
5870c2d9
...
...
@@ -43,7 +43,7 @@ namespace WindBot.Game.AI.Decks
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
DarkHole
,
DefaultDarkHole
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
Raigeki
,
DefaultRaigeki
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
BlackWhirlwind
,
BlackWhirlwindEffect
);
AddExecutor
(
ExecutorType
.
SpSummon
,
CardId
.
KrisTheCrackOfDawn
);
AddExecutor
(
ExecutorType
.
SummonOrSet
,
CardId
.
KrisTheCrackOfDawn
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
SiroccoTheDawn
,
SiroccoTheDawnSummon
);
...
...
Game/AI/Decks/CyberDragonExecutor.cs
View file @
5870c2d9
...
...
@@ -129,7 +129,7 @@ namespace WindBot.Game.AI.Decks
if
(
bestMy
==
null
||
!
AI
.
Utils
.
IsOneEnemyBetterThanValue
(
bestMy
.
Attack
,
false
))
return
false
;
else
AI
.
SelectCard
(
Enemy
.
MonsterZone
.
GetHighestAttackMonster
());
AI
.
SelectCard
(
Enemy
.
MonsterZone
.
GetHighestAttackMonster
());
return
true
;
}
...
...
Game/AI/Decks/LightswornShaddoldinosourExecutor.cs
View file @
5870c2d9
...
...
@@ -34,7 +34,7 @@ namespace WindBot.Game.AI.Decks
public
const
int
MaxxC
=
23434538
;
public
const
int
PlaguespreaderZombie
=
33420078
;
public
const
int
GlowUpBulb
=
67441435
;
//spell
public
const
int
AllureofDarkness
=
1475311
;
public
const
int
ThatGrassLooksgreener
=
11110587
;
...
...
@@ -53,7 +53,7 @@ namespace WindBot.Game.AI.Decks
public
const
int
LostWind
=
74003290
;
public
const
int
SinisterShadowGames
=
77505534
;
public
const
int
ShaddollCore
=
4904633
;
//extra
public
const
int
ElShaddollShekhinaga
=
74822425
;
public
const
int
ElShaddollConstruct
=
20366274
;
...
...
@@ -77,7 +77,7 @@ namespace WindBot.Game.AI.Decks
:
base
(
ai
,
duel
)
{
//counter
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
GhostOgre
,
Hand_act_eff
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
AshBlossom
,
Hand_act_eff
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
MaxxC
,
MaxxC
);
...
...
@@ -86,7 +86,7 @@ namespace WindBot.Game.AI.Decks
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
infiniteTransience
,
infiniteTransience
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
ThatGrassLooksgreener
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
SouleatingOviraptor
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
SouleatingOviraptor
,
SouleatingOviraptoreff
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
SouleatingOviraptor
,
SouleatingOviraptoreff
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
AllureofDarkness
,
DefaultAllureofDarkness
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
PotOfAvarice
,
PotofAvarice
);
// AddExecutor(ExecutorType.Activate, CardId.HarpiesFeatherDuster);
...
...
@@ -99,9 +99,9 @@ namespace WindBot.Game.AI.Decks
//Normal Summon
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
Raiden
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
Raiden
);
AddExecutor
(
ExecutorType
.
Summon
,
CardId
.
KeeperOfDragonicMagic
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
KeeperOfDragonicMagic
,
KeeperOfDragonicMagic
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
KeeperOfDragonicMagic
,
KeeperOfDragonicMagic
);
AddExecutor
(
ExecutorType
.
MonsterSet
,
CardId
.
ShaddollSquamata
);
AddExecutor
(
ExecutorType
.
MonsterSet
,
CardId
.
GlowUpBulb
);
AddExecutor
(
ExecutorType
.
MonsterSet
,
CardId
.
ShaddollHedgehog
);
...
...
@@ -116,12 +116,12 @@ namespace WindBot.Game.AI.Decks
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
DoubleEvolutionPill
,
DoubleEvolutionPill
);
AddExecutor
(
ExecutorType
.
SpSummon
,
CardId
.
MinervaTheExalte
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
MinervaTheExalte
,
MinervaTheExaltedEffect
);
//activate
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
GlowUpBulb
,
GlowUpBulb
);
//activate chain
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
OvertexCoatls
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
ShaddollBeast
);
...
...
@@ -142,7 +142,7 @@ namespace WindBot.Game.AI.Decks
//trap
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
LostWind
,
TrapSetWhenZoneFree
);
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
SinisterShadowGames
,
TrapSetWhenZoneFree
);
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
ShaddollCore
);
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
ShaddollCore
);
AddExecutor
(
ExecutorType
.
SpellSet
,
CardId
.
infiniteTransience
,
SetIsFieldEmpty
);
//trap activate
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
LostWind
,
DefaultBreakthroughSkill
);
...
...
@@ -206,12 +206,12 @@ namespace WindBot.Game.AI.Decks
CardId
.
ChargeOfTheLightBrigade
,
CardId
.
FoolishBurial
,
CardId
.
HarpiesFeatherDuster
,
CardId
.
ThatGrassLooksgreener
,
CardId
.
ThatGrassLooksgreener
,
CardId
.
FairyTailSnow
,
CardId
.
GiantRex
,
CardId
.
Lumina
,
CardId
.
OvertexCoatls
,
};
}
...
...
@@ -233,7 +233,7 @@ namespace WindBot.Game.AI.Decks
}
if
(
Duel
.
Phase
==
DuelPhase
.
Damage
)
return
true
;
return
true
;
}
private
bool
UltimateConductorTytannosp
()
...
...
@@ -254,8 +254,8 @@ namespace WindBot.Game.AI.Decks
AI
.
SelectCard
(
Useless_List
());
return
true
;
}
return
true
;
}
private
bool
MonsterRepos
()
...
...
@@ -273,11 +273,11 @@ namespace WindBot.Game.AI.Decks
if
(
Pillused
==
true
)
return
false
;
Pillused
=
true
;
IList
<
int
>
targets
=
new
[]
{
CardId
.
GiantRex
,
CardId
.
GiantRex
,
CardId
.
DogorantheMadFlameKaiju
,
CardId
.
GamecieltheSeaTurtleKaiju
,
CardId
.
RadiantheMultidimensionalKaiju
,
CardId
.
OvertexCoatls
,
CardId
.
OvertexCoatls
,
CardId
.
SouleatingOviraptor
,
CardId
.
UltimateConductorTytanno
,
};
...
...
@@ -288,7 +288,7 @@ namespace WindBot.Game.AI.Decks
CardId
.
DogorantheMadFlameKaiju
,
CardId
.
OvertexCoatls
,
CardId
.
GamecieltheSeaTurtleKaiju
,
CardId
.
RadiantheMultidimensionalKaiju
,
CardId
.
RadiantheMultidimensionalKaiju
,
CardId
.
SouleatingOviraptor
,
CardId
.
UltimateConductorTytanno
,
});
...
...
@@ -306,7 +306,7 @@ namespace WindBot.Game.AI.Decks
});
}
AI
.
SelectNextCard
(
new
[]
{
CardId
.
ShaddollBeast
,
CardId
.
ShaddollBeast
,
CardId
.
ShaddollDragon
,
CardId
.
KeeperOfDragonicMagic
,
CardId
.
ShaddollSquamata
,
...
...
@@ -320,7 +320,7 @@ namespace WindBot.Game.AI.Decks
CardId
.
MaxxC
,
CardId
.
PlaguespreaderZombie
,
CardId
.
GlowUpBulb
,
CardId
.
FairyTailSnow
,
CardId
.
FairyTailSnow
,
});
AI
.
SelectThirdCard
(
new
[]
{
...
...
@@ -340,14 +340,14 @@ namespace WindBot.Game.AI.Decks
AI
.
SelectPosition
(
CardPosition
.
FaceUpDefence
);
return
true
;
}
return
false
;
}
return
true
;
}
private
bool
FairyTailSnow
()
{
if
(
Card
.
Location
==
CardLocation
.
MonsterZone
)
{
return
true
;
...
...
@@ -367,7 +367,7 @@ namespace WindBot.Game.AI.Decks
}
private
bool
ShaddollFusion
()
{
if
(
Enemy
.
GetMonstersExtraZoneCount
()
!=
0
)
{
IList
<
ClientCard
>
materials0
=
Bot
.
Deck
;
...
...
@@ -375,7 +375,7 @@ namespace WindBot.Game.AI.Decks
IList
<
ClientCard
>
mats
=
new
List
<
ClientCard
>();
AI
.
SelectCard
(
CardId
.
ElShaddollConstruct
);
ClientCard
mat
=
null
;
foreach
(
ClientCard
card
in
materials0
)
{
...
...
@@ -432,7 +432,7 @@ namespace WindBot.Game.AI.Decks
mats
.
Add
(
mat
);
AI
.
SelectMaterials
(
mats
);
AI
.
SelectPosition
(
CardPosition
.
FaceUpAttack
);
return
true
;
}
...
...
@@ -463,7 +463,7 @@ namespace WindBot.Game.AI.Decks
mats
.
Add
(
mat
);
AI
.
SelectMaterials
(
mats
);
AI
.
SelectPosition
(
CardPosition
.
FaceUpAttack
);
return
true
;
}
...
...
@@ -494,7 +494,7 @@ namespace WindBot.Game.AI.Decks
mats
.
Add
(
mat
);
AI
.
SelectMaterials
(
mats
);
AI
.
SelectPosition
(
CardPosition
.
FaceUpAttack
);
return
true
;
}
...
...
@@ -509,7 +509,7 @@ namespace WindBot.Game.AI.Decks
return
true
;
}
/* private ClientCard GetAleisterInGrave()
{
...
...
@@ -529,8 +529,8 @@ namespace WindBot.Game.AI.Decks
}
return null;
}*/
private
bool
ShaddollCore
()
{
return
Bot
.
HasInGraveyard
(
CardId
.
ShaddollFusion
);
...
...
@@ -552,7 +552,7 @@ namespace WindBot.Game.AI.Decks
{
return
true
;
}
return
false
;
return
false
;
}
private
bool
spellset
()
{
...
...
@@ -560,13 +560,13 @@ namespace WindBot.Game.AI.Decks
}
private
bool
RebornEffect
()
{
IList
<
int
>
targets
=
new
[]
{
CardId
.
UltimateConductorTytanno
,
CardId
.
ElShaddollConstruct
,
CardId
.
DogorantheMadFlameKaiju
,
CardId
.
GamecieltheSeaTurtleKaiju
,
CardId
.
SouleatingOviraptor
,
CardId
.
SouleatingOviraptor
,
};
if
(!
Bot
.
HasInGraveyard
(
targets
))
{
...
...
@@ -602,9 +602,9 @@ namespace WindBot.Game.AI.Decks
AI
.
SelectCard
(
CardId
.
Raiden
);
else
AI
.
SelectCard
(
new
[]
{
{
CardId
.
Lumina
,
});
return
true
;
}
...
...
@@ -617,7 +617,7 @@ namespace WindBot.Game.AI.Decks
AI
.
SelectCard
(
new
[]
{
CardId
.
ShaddollBeast
,
}
);
...
...
@@ -640,7 +640,7 @@ namespace WindBot.Game.AI.Decks
CardId
.
ShaddollSquamata
,
}
);
}
return
true
;
}
...
...
@@ -669,12 +669,12 @@ namespace WindBot.Game.AI.Decks
});
}
else
{
ClientCard
target
=
AI
.
Utils
.
GetBestEnemyMonster
();
AI
.
SelectCard
(
target
);
}
return
true
;
...
...
@@ -683,7 +683,7 @@ namespace WindBot.Game.AI.Decks
}
private
bool
FoolishBurialEffect
()
{
AI
.
SelectCard
(
new
[]
{
CardId
.
OvertexCoatls
,
...
...
@@ -697,7 +697,7 @@ namespace WindBot.Game.AI.Decks
});
return
true
;
}
private
bool
GoblindberghSummon
()
{
...
...
@@ -709,9 +709,9 @@ namespace WindBot.Game.AI.Decks
return
false
;
}
private
bool
PerformageTrickClownEffect
()
{
AI
.
SelectPosition
(
CardPosition
.
FaceUpDefence
);
...
...
Game/AI/Decks/NekrozExecutor.cs
View file @
5870c2d9
...
...
@@ -9,7 +9,7 @@ namespace WindBot.Game.AI.Decks
// NOT FINISHED YET
[
Deck
(
"Nekroz"
,
"AI_Nekroz"
,
"NotFinished"
)]
public
class
NekrozExecutor
:
DefaultExecutor
{
{
public
class
CardId
{
public
const
int
DancePrincess
=
52738610
;
...
...
@@ -45,7 +45,7 @@ namespace WindBot.Game.AI.Decks
public
NekrozExecutor
(
GameAI
ai
,
Duel
duel
)
:
base
(
ai
,
duel
)
{
NekrozRituelCard
.
Add
(
CardId
.
Clausolas
);
NekrozRituelCard
.
Add
(
CardId
.
Clausolas
);
NekrozRituelCard
.
Add
(
CardId
.
Unicore
);
NekrozRituelCard
.
Add
(
CardId
.
DecisiveArmor
);
NekrozRituelCard
.
Add
(
CardId
.
Brionac
);
...
...
@@ -103,7 +103,7 @@ namespace WindBot.Game.AI.Decks
private
bool
ThousandHandsSummon
()
{
if
(!
Bot
.
HasInHand
(
NekrozRituelCard
)
||
Bot
.
HasInHand
(
CardId
.
Shurit
)
||
!
Bot
.
HasInHand
(
NekrozSpellCard
))
if
(!
Bot
.
HasInHand
(
NekrozRituelCard
)
||
Bot
.
HasInHand
(
CardId
.
Shurit
)
||
!
Bot
.
HasInHand
(
NekrozSpellCard
))
return
true
;
foreach
(
ClientCard
Card
in
Bot
.
Hand
)
if
(
Card
!=
null
&&
Card
.
Id
==
CardId
.
Kaleidoscope
&&
!
Bot
.
HasInHand
(
CardId
.
Unicore
))
...
...
@@ -175,7 +175,7 @@ namespace WindBot.Game.AI.Decks
}
private
bool
GungnirEffect
()
{
{
if
(
AI
.
Utils
.
IsOneEnemyBetter
(
true
)
&&
Duel
.
Phase
==
DuelPhase
.
Main1
)
{
AI
.
SelectCard
(
Enemy
.
GetMonsters
().
GetHighestAttackMonster
());
...
...
Game/AI/Decks/QliphortExecutor.cs
View file @
5870c2d9
...
...
@@ -191,7 +191,7 @@ namespace WindBot.Game.AI.Decks
}
return
false
;
}
private
bool
TrapSetUnique
()
{
foreach
(
ClientCard
card
in
Bot
.
GetSpells
())
...
...
Game/GameAI.cs
View file @
5870c2d9
...
...
@@ -703,7 +703,7 @@ namespace WindBot.Game
{
m_thirdSelector
=
new
CardSelector
(
loc
);
}
public
void
SelectMaterials
(
ClientCard
card
)
{
m_materialSelector
=
new
CardSelector
(
card
);
...
...
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