Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
dota2-ai
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
JoyJ
dota2-ai
Commits
11026a03
Commit
11026a03
authored
Oct 23, 2022
by
JoyJ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
finish centaur
parent
7f714269
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
68 additions
and
17 deletions
+68
-17
BotLib/hero_abaddon.lua
BotLib/hero_abaddon.lua
+15
-5
BotLib/hero_abyssal_underlord.lua
BotLib/hero_abyssal_underlord.lua
+19
-0
BotLib/hero_alchemist.lua
BotLib/hero_alchemist.lua
+12
-4
BotLib/hero_centaur.lua
BotLib/hero_centaur.lua
+19
-5
BotLib/hero_riki.lua
BotLib/hero_riki.lua
+1
-1
hero_selection.lua
hero_selection.lua
+2
-2
No files found.
BotLib/hero_abaddon.lua
View file @
11026a03
...
@@ -32,9 +32,12 @@ tOutFitList['outfit_priest'] = {
...
@@ -32,9 +32,12 @@ tOutFitList['outfit_priest'] = {
"item_glimmer_cape"
,
"item_glimmer_cape"
,
"item_mekansm"
,
"item_mekansm"
,
"item_ultimate_scepter"
,
"item_ultimate_scepter"
,
"item_travel_boots"
,
"item_aghanims_shard"
,
"item_aghanims_shard"
,
"item_sphere"
,
"item_sphere"
,
"item_ultimate_scepter_2"
,
"item_radiance"
,
"item_radiance"
,
"item_travel_boots_2"
,
}
}
...
@@ -44,12 +47,13 @@ tOutFitList['outfit_tank'] = {
...
@@ -44,12 +47,13 @@ tOutFitList['outfit_tank'] = {
"item_sange_and_yasha"
,
"item_sange_and_yasha"
,
"item_aghanims_shard"
,
"item_aghanims_shard"
,
"item_solar_crest"
,
"item_solar_crest"
,
"item_travel_boots"
,
"item_black_king_bar"
,
"item_black_king_bar"
,
"item_assault"
,
"item_assault"
,
"item_ultimate_scepter"
,
"item_ultimate_scepter"
,
"item_radiance"
,
"item_radiance"
,
"item_ultimate_scepter_2"
,
"item_ultimate_scepter_2"
,
"item_
monkey_king_bar
"
,
"item_
travel_boots_2
"
,
}
}
tOutFitList
[
'outfit_mid'
]
=
tOutFitList
[
'outfit_tank'
]
tOutFitList
[
'outfit_mid'
]
=
tOutFitList
[
'outfit_tank'
]
...
@@ -61,11 +65,17 @@ tOutFitList['outfit_mage'] = tOutFitList['outfit_priest']
...
@@ -61,11 +65,17 @@ tOutFitList['outfit_mage'] = tOutFitList['outfit_priest']
X
[
'sBuyList'
]
=
tOutFitList
[
sOutfitType
]
X
[
'sBuyList'
]
=
tOutFitList
[
sOutfitType
]
X
[
'sSellList'
]
=
{
X
[
'sSellList'
]
=
{
"item_shivas_guard"
,
"item_power_treads"
,
"item_magic_wand"
,
"item_quelling_blade"
,
"item_aether_lens"
,
"item_bracer"
,
"item_cyclone"
,
"item_heart"
,
"item_magic_wand"
,
"item_glimmer_cape"
,
"item_travel_boots"
,
"item_power_treads"
,
}
}
if
J
.
Role
.
IsPvNMode
()
or
J
.
Role
.
IsAllShadow
()
then
X
[
'sBuyList'
],
X
[
'sSellList'
]
=
{
'PvN_mage'
},
{}
end
if
J
.
Role
.
IsPvNMode
()
or
J
.
Role
.
IsAllShadow
()
then
X
[
'sBuyList'
],
X
[
'sSellList'
]
=
{
'PvN_mage'
},
{}
end
...
...
BotLib/hero_abyssal_underlord.lua
View file @
11026a03
...
@@ -34,8 +34,10 @@ tOutFitList['outfit_priest'] = {
...
@@ -34,8 +34,10 @@ tOutFitList['outfit_priest'] = {
"item_mekansm"
,
"item_mekansm"
,
"item_glimmer_cape"
,
"item_glimmer_cape"
,
"item_octarine_core"
,
"item_octarine_core"
,
"item_travel_boots"
,
"item_sphere"
,
"item_sphere"
,
"item_radiance"
,
"item_radiance"
,
"item_travel_boots_2"
,
}
}
tOutFitList
[
'outfit_tank'
]
=
{
tOutFitList
[
'outfit_tank'
]
=
{
...
@@ -48,9 +50,11 @@ tOutFitList['outfit_tank'] = {
...
@@ -48,9 +50,11 @@ tOutFitList['outfit_tank'] = {
"item_rod_of_atos"
,
"item_rod_of_atos"
,
"item_octarine_core"
,
"item_octarine_core"
,
"item_gungir"
,
"item_gungir"
,
"item_travel_boots"
,
"item_heart"
,
"item_heart"
,
"item_radiance"
,
"item_radiance"
,
"item_ultimate_scepter_2"
,
"item_ultimate_scepter_2"
,
"item_travel_boots_2"
,
}
}
...
@@ -63,8 +67,23 @@ tOutFitList['outfit_mage'] = tOutFitList['outfit_priest']
...
@@ -63,8 +67,23 @@ tOutFitList['outfit_mage'] = tOutFitList['outfit_priest']
X
[
'sBuyList'
]
=
tOutFitList
[
sOutfitType
]
X
[
'sBuyList'
]
=
tOutFitList
[
sOutfitType
]
X
[
'sSellList'
]
=
{
X
[
'sSellList'
]
=
{
"item_power_treads"
,
"item_quelling_blade"
,
"item_glimmer_cape"
,
"item_magic_wand"
,
"item_magic_wand"
,
"item_aether_lens"
,
"item_bracer"
,
"item_heart"
,
"item_glimmer_cape"
,
"item_octarine_core"
,
"item_glimmer_cape"
,
"item_glimmer_cape"
,
"item_travel_boots"
,
"item_power_treads"
,
}
}
if
J
.
Role
.
IsPvNMode
()
or
J
.
Role
.
IsAllShadow
()
then
X
[
'sBuyList'
],
X
[
'sSellList'
]
=
{
'PvN_mage'
},
{}
end
if
J
.
Role
.
IsPvNMode
()
or
J
.
Role
.
IsAllShadow
()
then
X
[
'sBuyList'
],
X
[
'sSellList'
]
=
{
'PvN_mage'
},
{}
end
...
...
BotLib/hero_alchemist.lua
View file @
11026a03
...
@@ -34,23 +34,31 @@ tOutFitList['outfit_carry'] = {
...
@@ -34,23 +34,31 @@ tOutFitList['outfit_carry'] = {
"item_yasha"
,
"item_yasha"
,
"item_black_king_bar"
,
"item_black_king_bar"
,
"item_radiance"
,
"item_radiance"
,
"item_travel_boots"
,
"item_sange_and_yasha"
,
"item_sange_and_yasha"
,
"item_basher"
,
"item_basher"
,
"item_assault"
,
"item_assault"
,
"item_abyssal_blade"
,
"item_abyssal_blade"
,
"item_travel_boots_2"
,
"item_aghanims_shard"
,
}
}
tOutFitList
[
'outfit_tank'
]
=
tOutFitList
[
'outfit_carry'
]
tOutFitList
[
'outfit_tank'
]
=
tOutFitList
[
'outfit_carry'
]
tOutFitList
[
'outfit_mid'
]
=
tOutFitList
[
'outfit_
tank
'
]
tOutFitList
[
'outfit_mid'
]
=
tOutFitList
[
'outfit_
carry
'
]
tOutFitList
[
'outfit_mage'
]
=
tOutFitList
[
'outfit_carry'
]
tOutFitList
[
'outfit_mage'
]
=
tOutFitList
[
'outfit_carry'
]
tOutFitList
[
'outfit_priest'
]
=
tOutFitList
[
'outfit_
priest
'
]
tOutFitList
[
'outfit_priest'
]
=
tOutFitList
[
'outfit_
carry
'
]
X
[
'sBuyList'
]
=
tOutFitList
[
sOutfitType
]
X
[
'sBuyList'
]
=
tOutFitList
[
sOutfitType
]
X
[
'sSellList'
]
=
{
X
[
'sSellList'
]
=
{
"item_power_treads"
,
"item_quelling_blade"
,
"item_black_king_bar"
,
"item_magic_wand"
,
"item_magic_wand"
,
"item_glimmer_cape"
,
"item_soul_ring"
,
"item_travel_boots"
,
"item_power_treads"
,
}
}
if
J
.
Role
.
IsPvNMode
()
or
J
.
Role
.
IsAllShadow
()
then
X
[
'sBuyList'
],
X
[
'sSellList'
]
=
{
'PvN_melee_carry'
},
{}
end
if
J
.
Role
.
IsPvNMode
()
or
J
.
Role
.
IsAllShadow
()
then
X
[
'sBuyList'
],
X
[
'sSellList'
]
=
{
'PvN_melee_carry'
},
{}
end
...
...
BotLib/hero_centaur.lua
View file @
11026a03
...
@@ -27,12 +27,11 @@ local tOutFitList = {}
...
@@ -27,12 +27,11 @@ local tOutFitList = {}
tOutFitList
[
'outfit_tank'
]
=
{
tOutFitList
[
'outfit_tank'
]
=
{
"item_
centaur
_outfit"
,
"item_
bristleback
_outfit"
,
"item_vanguard"
,
"item_vanguard"
,
"item_aghanims_shard"
,
"item_hood_of_defiance"
,
"item_hood_of_defiance"
,
"item_blink"
,
"item_blink"
,
"item_
boots_of_bearing
"
,
"item_
aghanims_shard
"
,
"item_crimson_guard"
,
"item_crimson_guard"
,
"item_pipe"
,
"item_pipe"
,
"item_heart"
,
"item_heart"
,
...
@@ -52,6 +51,13 @@ tOutFitList['outfit_mage'] = tOutFitList['outfit_tank']
...
@@ -52,6 +51,13 @@ tOutFitList['outfit_mage'] = tOutFitList['outfit_tank']
X
[
'sBuyList'
]
=
tOutFitList
[
sOutfitType
]
X
[
'sBuyList'
]
=
tOutFitList
[
sOutfitType
]
X
[
'sSellList'
]
=
{
X
[
'sSellList'
]
=
{
"item_power_treads"
,
"item_quelling_blade"
,
"item_vanguard"
,
"item_bracer"
,
"item_blink"
,
"item_magic_wand"
,
"item_magic_wand"
,
}
}
...
@@ -172,8 +178,8 @@ function X.ConsiderQ()
...
@@ -172,8 +178,8 @@ function X.ConsiderQ()
if
J
.
IsValidHero
(
botTarget
)
if
J
.
IsValidHero
(
botTarget
)
and
J
.
IsInRange
(
botTarget
,
bot
,
nRadius
-
90
)
and
J
.
IsInRange
(
botTarget
,
bot
,
nRadius
-
90
)
and
J
.
CanCastOnNonMagicImmune
(
botTarget
)
and
J
.
CanCastOnNonMagicImmune
(
botTarget
)
and
not
J
.
IsDisabled
(
botTarget
)
and
(
not
J
.
IsDisabled
(
botTarget
)
or
J
.
GetRemainStunTime
(
botTarget
)
<
0
.
5
)
then
then
hCastTarget
=
botTarget
hCastTarget
=
botTarget
sCastMotive
=
'Q-先手'
..
J
.
Chat
.
GetNormName
(
hCastTarget
)
sCastMotive
=
'Q-先手'
..
J
.
Chat
.
GetNormName
(
hCastTarget
)
return
BOT_ACTION_DESIRE_HIGH
,
sCastMotive
return
BOT_ACTION_DESIRE_HIGH
,
sCastMotive
...
@@ -219,6 +225,14 @@ function X.ConsiderW()
...
@@ -219,6 +225,14 @@ function X.ConsiderW()
return
BOT_ACTION_DESIRE_HIGH
,
aTarget
,
"W-攻击"
return
BOT_ACTION_DESIRE_HIGH
,
aTarget
,
"W-攻击"
end
end
if
target
~=
nil
and
target
:
IsAlive
()
and
J
.
IsInRange
(
target
,
bot
,
castRange
)
and
(
nHP
>
0
.
3
or
J
.
WillMagicKillTarget
(
bot
,
target
,
nDamage
,
nCastPoint
))
then
return
BOT_ACTION_DESIRE_HIGH
,
aTarget
,
"W-攻击当前目标"
end
if
(
J
.
IsPushing
(
bot
)
or
J
.
IsDefending
(
bot
))
and
nHP
>
0
.
7
if
(
J
.
IsPushing
(
bot
)
or
J
.
IsDefending
(
bot
))
and
nHP
>
0
.
7
then
then
local
creeps
=
bot
:
GetNearbyLaneCreeps
(
castRange
,
true
)
local
creeps
=
bot
:
GetNearbyLaneCreeps
(
castRange
,
true
)
...
...
BotLib/hero_riki.lua
View file @
11026a03
...
@@ -43,7 +43,7 @@ X['sBuyList'] = {
...
@@ -43,7 +43,7 @@ X['sBuyList'] = {
"item_travel_boots"
,
"item_travel_boots"
,
"item_abyssal_blade"
,
"item_abyssal_blade"
,
"item_ultimate_scepter"
,
"item_ultimate_scepter"
,
"item_moon_shar
e
"
,
"item_moon_shar
d
"
,
"item_travel_boots_2"
,
"item_travel_boots_2"
,
"item_eagle"
,
"item_eagle"
,
"item_ultimate_scepter_2"
,
"item_ultimate_scepter_2"
,
...
...
hero_selection.lua
View file @
11026a03
...
@@ -255,6 +255,7 @@ local sFirstList = {
...
@@ -255,6 +255,7 @@ local sFirstList = {
local
sSecondList
=
{
local
sSecondList
=
{
"npc_dota_hero_abaddon"
,
"npc_dota_hero_abaddon"
,
"npc_dota_hero_centaur"
,
"npc_dota_hero_crystal_maiden"
,
"npc_dota_hero_crystal_maiden"
,
"npc_dota_hero_zuus"
,
"npc_dota_hero_zuus"
,
"npc_dota_hero_jakiro"
,
"npc_dota_hero_jakiro"
,
...
@@ -287,7 +288,6 @@ local sThirdList = {
...
@@ -287,7 +288,6 @@ local sThirdList = {
"npc_dota_hero_axe"
,
"npc_dota_hero_axe"
,
"npc_dota_hero_slark"
,
"npc_dota_hero_slark"
,
"npc_dota_hero_juggernaut"
,
"npc_dota_hero_juggernaut"
,
"npc_dota_hero_centaur"
,
}
}
local
sFourthList
=
{
local
sFourthList
=
{
...
@@ -994,7 +994,7 @@ function Think()
...
@@ -994,7 +994,7 @@ function Think()
end
end
--if GetTeam() ~= TEAM_DIRE and i == 1 then sSelectHero = "npc_dota_hero_alchemist" end
--if GetTeam() ~= TEAM_DIRE and i == 1 then sSelectHero = "npc_dota_hero_alchemist" end
if
GetTeam
()
~=
TEAM_DIRE
and
i
==
3
then
sSelectHero
=
"npc_dota_hero_centaur"
end
--
if GetTeam() ~= TEAM_DIRE and i == 3 then sSelectHero = "npc_dota_hero_centaur" end
-------******************************-----------------------------------------------
-------******************************-----------------------------------------------
-- if GetTeam() ~= TEAM_DIRE and i == 2 then sSelectHero = "npc_dota_hero_lina" end
-- if GetTeam() ~= TEAM_DIRE and i == 2 then sSelectHero = "npc_dota_hero_lina" end
-- if GetTeam() ~= TEAM_DIRE and i == 1 then sSelectHero = "npc_dota_hero_antimage" end
-- if GetTeam() ~= TEAM_DIRE and i == 1 then sSelectHero = "npc_dota_hero_antimage" end
...
...
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