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
d1cf3a7d
Commit
d1cf3a7d
authored
Apr 23, 2023
by
JoyJ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove wraith_pact
parent
bc4a2df1
Changes
26
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
328 additions
and
66 deletions
+328
-66
BotLib/hero_abaddon.lua
BotLib/hero_abaddon.lua
+1
-1
BotLib/hero_bane.lua
BotLib/hero_bane.lua
+1
-1
BotLib/hero_centaur.lua
BotLib/hero_centaur.lua
+1
-2
BotLib/hero_crystal_maiden.lua
BotLib/hero_crystal_maiden.lua
+1
-1
BotLib/hero_death_prophet.lua
BotLib/hero_death_prophet.lua
+0
-1
BotLib/hero_jakiro.lua
BotLib/hero_jakiro.lua
+0
-1
BotLib/hero_lich.lua
BotLib/hero_lich.lua
+1
-1
BotLib/hero_lina.lua
BotLib/hero_lina.lua
+2
-1
BotLib/hero_lion.lua
BotLib/hero_lion.lua
+2
-3
BotLib/hero_muerta.lua
BotLib/hero_muerta.lua
+2
-1
BotLib/hero_necrolyte.lua
BotLib/hero_necrolyte.lua
+3
-2
BotLib/hero_oracle.lua
BotLib/hero_oracle.lua
+2
-1
BotLib/hero_pugna.lua
BotLib/hero_pugna.lua
+2
-1
BotLib/hero_shadow_shaman.lua
BotLib/hero_shadow_shaman.lua
+1
-1
BotLib/hero_silencer.lua
BotLib/hero_silencer.lua
+2
-1
BotLib/hero_skywrath_mage.lua
BotLib/hero_skywrath_mage.lua
+2
-1
BotLib/hero_warlock.lua
BotLib/hero_warlock.lua
+2
-1
BotLib/hero_windrunner.lua
BotLib/hero_windrunner.lua
+2
-1
BotLib/hero_witch_doctor.lua
BotLib/hero_witch_doctor.lua
+2
-1
BotLib/hero_zuus.lua
BotLib/hero_zuus.lua
+2
-1
FunLib/aba_chat.lua
FunLib/aba_chat.lua
+86
-4
FunLib/aba_item.lua
FunLib/aba_item.lua
+25
-6
ability_item_usage_generic.lua
ability_item_usage_generic.lua
+169
-19
item_purchase_generic.lua
item_purchase_generic.lua
+3
-2
mode_ward_generic.lua
mode_ward_generic.lua
+2
-9
rewrite_functions.lua
rewrite_functions.lua
+12
-2
No files found.
BotLib/hero_abaddon.lua
View file @
d1cf3a7d
...
@@ -51,7 +51,7 @@ tOutFitList['outfit_tank'] = {
...
@@ -51,7 +51,7 @@ tOutFitList['outfit_tank'] = {
"item_holy_locket"
,
"item_holy_locket"
,
"item_guardian_greaves"
,
"item_guardian_greaves"
,
"item_spirit_vessel"
,
"item_spirit_vessel"
,
"item_
wraith_pac
t"
,
"item_
assaul
t"
,
"item_shivas_guard"
,
"item_shivas_guard"
,
-- "item_sheepstick",
-- "item_sheepstick",
"item_moon_shard"
,
"item_moon_shard"
,
...
...
BotLib/hero_bane.lua
View file @
d1cf3a7d
...
@@ -65,7 +65,7 @@ tOutFitList['outfit_priest'] = {
...
@@ -65,7 +65,7 @@ tOutFitList['outfit_priest'] = {
"item_guardian_greaves"
,
"item_guardian_greaves"
,
"item_spirit_vessel"
,
"item_spirit_vessel"
,
"item_glimmer_cape"
,
"item_glimmer_cape"
,
"item_
wraith_pact
"
,
"item_
ultimate_scepter
"
,
"item_shivas_guard"
,
"item_shivas_guard"
,
"item_mystic_staff"
,
"item_mystic_staff"
,
"item_ultimate_scepter_2"
,
"item_ultimate_scepter_2"
,
...
...
BotLib/hero_centaur.lua
View file @
d1cf3a7d
...
@@ -30,9 +30,8 @@ tOutFitList['outfit_tank'] = {
...
@@ -30,9 +30,8 @@ tOutFitList['outfit_tank'] = {
"item_bristleback_outfit"
,
"item_bristleback_outfit"
,
"item_vanguard"
,
"item_vanguard"
,
"item_aghanims_shard"
,
"item_aghanims_shard"
,
"item_hood_of_defiance"
,
"item_blink"
,
"item_crimson_guard"
,
"item_crimson_guard"
,
"item_blink"
,
"item_pipe"
,
"item_pipe"
,
"item_heart"
,
"item_heart"
,
"item_overwhelming_blink"
,
"item_overwhelming_blink"
,
...
...
BotLib/hero_crystal_maiden.lua
View file @
d1cf3a7d
...
@@ -58,7 +58,7 @@ tOutFitList['outfit_priest'] = {
...
@@ -58,7 +58,7 @@ tOutFitList['outfit_priest'] = {
"item_glimmer_cape"
,
"item_glimmer_cape"
,
"item_guardian_greaves"
,
"item_guardian_greaves"
,
"item_spirit_vessel"
,
"item_spirit_vessel"
,
"item_
wraith_pact
"
,
"item_
octarine_core
"
,
"item_shivas_guard"
,
"item_shivas_guard"
,
"item_sheepstick"
,
"item_sheepstick"
,
"item_moon_shard"
,
"item_moon_shard"
,
...
...
BotLib/hero_death_prophet.lua
View file @
d1cf3a7d
...
@@ -61,7 +61,6 @@ tOutFitList['outfit_priest'] = {
...
@@ -61,7 +61,6 @@ tOutFitList['outfit_priest'] = {
"item_aghanims_shard"
,
"item_aghanims_shard"
,
"item_guardian_greaves"
,
"item_guardian_greaves"
,
"item_spirit_vessel"
,
"item_spirit_vessel"
,
"item_wraith_pact"
,
"item_ultimate_scepter"
,
"item_ultimate_scepter"
,
"item_shivas_guard"
,
"item_shivas_guard"
,
"item_moon_shard"
,
"item_moon_shard"
,
...
...
BotLib/hero_jakiro.lua
View file @
d1cf3a7d
...
@@ -62,7 +62,6 @@ tOutFitList['outfit_priest'] = {
...
@@ -62,7 +62,6 @@ tOutFitList['outfit_priest'] = {
"item_aghanims_shard"
,
"item_aghanims_shard"
,
"item_guardian_greaves"
,
"item_guardian_greaves"
,
"item_spirit_vessel"
,
"item_spirit_vessel"
,
"item_wraith_pact"
,
"item_ultimate_scepter"
,
"item_ultimate_scepter"
,
"item_shivas_guard"
,
"item_shivas_guard"
,
"item_moon_shard"
,
"item_moon_shard"
,
...
...
BotLib/hero_lich.lua
View file @
d1cf3a7d
...
@@ -61,7 +61,7 @@ tOutFitList['outfit_priest'] = {
...
@@ -61,7 +61,7 @@ tOutFitList['outfit_priest'] = {
"item_aghanims_shard"
,
"item_aghanims_shard"
,
"item_guardian_greaves"
,
"item_guardian_greaves"
,
"item_spirit_vessel"
,
"item_spirit_vessel"
,
"item_
wraith_pact
"
,
"item_
ultimate_scepter
"
,
"item_shivas_guard"
,
"item_shivas_guard"
,
"item_sheepstick"
,
"item_sheepstick"
,
"item_moon_shard"
,
"item_moon_shard"
,
...
...
BotLib/hero_lina.lua
View file @
d1cf3a7d
...
@@ -61,12 +61,13 @@ tOutFitList['outfit_priest'] = {
...
@@ -61,12 +61,13 @@ tOutFitList['outfit_priest'] = {
"item_aghanims_shard"
,
"item_aghanims_shard"
,
"item_guardian_greaves"
,
"item_guardian_greaves"
,
"item_spirit_vessel"
,
"item_spirit_vessel"
,
"item_
wraith_pact
"
,
"item_
cyclone
"
,
-- "item_ultimate_scepter",
-- "item_ultimate_scepter",
"item_shivas_guard"
,
"item_shivas_guard"
,
"item_moon_shard"
,
"item_moon_shard"
,
-- "item_ultimate_scepter_2",
-- "item_ultimate_scepter_2",
"item_sheepstick"
,
"item_sheepstick"
,
"item_wind_waker"
,
}
}
...
...
BotLib/hero_lion.lua
View file @
d1cf3a7d
...
@@ -62,10 +62,9 @@ tOutFitList['outfit_priest'] = {
...
@@ -62,10 +62,9 @@ tOutFitList['outfit_priest'] = {
"item_guardian_greaves"
,
"item_guardian_greaves"
,
"item_spirit_vessel"
,
"item_spirit_vessel"
,
"item_ultimate_scepter"
,
"item_ultimate_scepter"
,
"item_wraith_pact"
,
"item_shivas_guard"
,
"item_moon_shard"
,
"item_octarine_core"
,
"item_octarine_core"
,
"item_moon_shard"
,
"item_shivas_guard"
,
"item_ultimate_scepter_2"
,
"item_ultimate_scepter_2"
,
}
}
...
...
BotLib/hero_muerta.lua
View file @
d1cf3a7d
...
@@ -54,8 +54,9 @@ tOutFitList['outfit_priest'] = {
...
@@ -54,8 +54,9 @@ tOutFitList['outfit_priest'] = {
"item_shadow_amulet"
,
"item_shadow_amulet"
,
"item_guardian_greaves"
,
"item_guardian_greaves"
,
"item_spirit_vessel"
,
"item_spirit_vessel"
,
"item_cyclone"
,
"item_wind_waker"
,
"item_glimmer_cape"
,
"item_glimmer_cape"
,
"item_wraith_pact"
,
"item_shivas_guard"
,
"item_shivas_guard"
,
"item_mystic_staff"
,
"item_mystic_staff"
,
"item_sheepstick"
,
"item_sheepstick"
,
...
...
BotLib/hero_necrolyte.lua
View file @
d1cf3a7d
...
@@ -61,9 +61,10 @@ tOutFitList['outfit_priest'] = {
...
@@ -61,9 +61,10 @@ tOutFitList['outfit_priest'] = {
"item_holy_locket"
,
"item_holy_locket"
,
"item_guardian_greaves"
,
"item_guardian_greaves"
,
"item_spirit_vessel"
,
"item_spirit_vessel"
,
"item_
wraith_pact
"
,
"item_
cyclone
"
,
"item_shivas_guard"
,
"item_shivas_guard"
,
-- "item_sheepstick",
"item_sheepstick"
,
"item_wind_waker"
,
"item_moon_shard"
,
"item_moon_shard"
,
}
}
...
...
BotLib/hero_oracle.lua
View file @
d1cf3a7d
...
@@ -59,10 +59,11 @@ tOutFitList['outfit_priest'] = {
...
@@ -59,10 +59,11 @@ tOutFitList['outfit_priest'] = {
"item_aghanims_shard"
,
"item_aghanims_shard"
,
"item_guardian_greaves"
,
"item_guardian_greaves"
,
"item_spirit_vessel"
,
"item_spirit_vessel"
,
"item_
wraith_pact
"
,
"item_
cyclone
"
,
"item_shivas_guard"
,
"item_shivas_guard"
,
"item_sheepstick"
,
"item_sheepstick"
,
"item_moon_shard"
,
"item_moon_shard"
,
"item_wind_waker"
,
}
}
...
...
BotLib/hero_pugna.lua
View file @
d1cf3a7d
...
@@ -58,10 +58,11 @@ tOutFitList['outfit_priest'] = {
...
@@ -58,10 +58,11 @@ tOutFitList['outfit_priest'] = {
-- "item_aghanims_shard",
-- "item_aghanims_shard",
"item_guardian_greaves"
,
"item_guardian_greaves"
,
"item_spirit_vessel"
,
"item_spirit_vessel"
,
"item_
wraith_pact
"
,
"item_
cyclone
"
,
"item_shivas_guard"
,
"item_shivas_guard"
,
"item_sheepstick"
,
"item_sheepstick"
,
"item_moon_shard"
,
"item_moon_shard"
,
"item_wind_waker"
,
}
}
...
...
BotLib/hero_shadow_shaman.lua
View file @
d1cf3a7d
...
@@ -59,12 +59,12 @@ tOutFitList['outfit_priest'] = {
...
@@ -59,12 +59,12 @@ tOutFitList['outfit_priest'] = {
"item_aghanims_shard"
,
"item_aghanims_shard"
,
"item_guardian_greaves"
,
"item_guardian_greaves"
,
"item_spirit_vessel"
,
"item_spirit_vessel"
,
"item_wraith_pact"
,
"item_ultimate_scepter"
,
"item_ultimate_scepter"
,
"item_shivas_guard"
,
"item_shivas_guard"
,
"item_moon_shard"
,
"item_moon_shard"
,
"item_ultimate_scepter_2"
,
"item_ultimate_scepter_2"
,
"item_refresher"
,
"item_refresher"
,
"item_wind_waker"
,
}
}
...
...
BotLib/hero_silencer.lua
View file @
d1cf3a7d
...
@@ -60,10 +60,11 @@ tOutFitList['outfit_priest'] = {
...
@@ -60,10 +60,11 @@ tOutFitList['outfit_priest'] = {
"item_aghanims_shard"
,
"item_aghanims_shard"
,
"item_guardian_greaves"
,
"item_guardian_greaves"
,
"item_spirit_vessel"
,
"item_spirit_vessel"
,
"item_
wraith_pact
"
,
"item_
cyclone
"
,
"item_shivas_guard"
,
"item_shivas_guard"
,
"item_sheepstick"
,
"item_sheepstick"
,
"item_moon_shard"
,
"item_moon_shard"
,
"item_wind_waker"
,
}
}
...
...
BotLib/hero_skywrath_mage.lua
View file @
d1cf3a7d
...
@@ -60,12 +60,13 @@ tOutFitList['outfit_priest'] = {
...
@@ -60,12 +60,13 @@ tOutFitList['outfit_priest'] = {
"item_aghanims_shard"
,
"item_aghanims_shard"
,
"item_guardian_greaves"
,
"item_guardian_greaves"
,
"item_spirit_vessel"
,
"item_spirit_vessel"
,
"item_
wraith_pact
"
,
"item_
cyclone
"
,
"item_ultimate_scepter"
,
"item_ultimate_scepter"
,
"item_shivas_guard"
,
"item_shivas_guard"
,
"item_moon_shard"
,
"item_moon_shard"
,
"item_ultimate_scepter_2"
,
"item_ultimate_scepter_2"
,
"item_sheepstick"
,
"item_sheepstick"
,
"item_wind_waker"
,
}
}
...
...
BotLib/hero_warlock.lua
View file @
d1cf3a7d
...
@@ -62,11 +62,12 @@ tOutFitList['outfit_priest'] = {
...
@@ -62,11 +62,12 @@ tOutFitList['outfit_priest'] = {
-- "item_aghanims_shard",
-- "item_aghanims_shard",
"item_guardian_greaves"
,
"item_guardian_greaves"
,
"item_spirit_vessel"
,
"item_spirit_vessel"
,
"item_
wraith_pact
"
,
"item_
cyclone
"
,
"item_ultimate_scepter"
,
"item_ultimate_scepter"
,
"item_refresher"
,
"item_refresher"
,
"item_ultimate_scepter_2"
,
"item_ultimate_scepter_2"
,
"item_shivas_guard"
,
"item_shivas_guard"
,
"item_wind_waker"
,
"item_moon_shard"
,
"item_moon_shard"
,
}
}
...
...
BotLib/hero_windrunner.lua
View file @
d1cf3a7d
...
@@ -62,12 +62,13 @@ tOutFitList['outfit_priest'] = {
...
@@ -62,12 +62,13 @@ tOutFitList['outfit_priest'] = {
-- "item_aghanims_shard",
-- "item_aghanims_shard",
"item_guardian_greaves"
,
"item_guardian_greaves"
,
"item_spirit_vessel"
,
"item_spirit_vessel"
,
"item_
wraith_pact
"
,
"item_
cyclone
"
,
-- "item_ultimate_scepter",
-- "item_ultimate_scepter",
"item_shivas_guard"
,
"item_shivas_guard"
,
"item_moon_shard"
,
"item_moon_shard"
,
-- "item_ultimate_scepter_2",
-- "item_ultimate_scepter_2",
"item_sheepstick"
,
"item_sheepstick"
,
"item_wind_waker"
,
}
}
...
...
BotLib/hero_witch_doctor.lua
View file @
d1cf3a7d
...
@@ -59,11 +59,12 @@ tOutFitList['outfit_priest'] = {
...
@@ -59,11 +59,12 @@ tOutFitList['outfit_priest'] = {
"item_aghanims_shard"
,
"item_aghanims_shard"
,
"item_guardian_greaves"
,
"item_guardian_greaves"
,
"item_spirit_vessel"
,
"item_spirit_vessel"
,
"item_
wraith_pact
"
,
"item_
cyclone
"
,
"item_ultimate_scepter"
,
"item_ultimate_scepter"
,
"item_shivas_guard"
,
"item_shivas_guard"
,
"item_ultimate_scepter_2"
,
"item_ultimate_scepter_2"
,
"item_sheepstick"
,
"item_sheepstick"
,
"item_wind_waker"
,
"item_moon_shard"
,
"item_moon_shard"
,
}
}
...
...
BotLib/hero_zuus.lua
View file @
d1cf3a7d
...
@@ -61,11 +61,12 @@ tOutFitList['outfit_priest'] = {
...
@@ -61,11 +61,12 @@ tOutFitList['outfit_priest'] = {
"item_aghanims_shard"
,
"item_aghanims_shard"
,
"item_guardian_greaves"
,
"item_guardian_greaves"
,
"item_spirit_vessel"
,
"item_spirit_vessel"
,
"item_
wraith_pact
"
,
"item_
cyclone
"
,
"item_ultimate_scepter"
,
"item_ultimate_scepter"
,
"item_shivas_guard"
,
"item_shivas_guard"
,
"item_ultimate_scepter_2"
,
"item_ultimate_scepter_2"
,
"item_sheepstick"
,
"item_sheepstick"
,
"item_wind_waker"
,
"item_moon_shard"
,
"item_moon_shard"
,
}
}
...
...
FunLib/aba_chat.lua
View file @
d1cf3a7d
...
@@ -133,6 +133,7 @@ Chat['sAllHeroList'] = {
...
@@ -133,6 +133,7 @@ Chat['sAllHeroList'] = {
'npc_dota_hero_dawnbreaker'
,
'npc_dota_hero_dawnbreaker'
,
'npc_dota_hero_marci'
,
'npc_dota_hero_marci'
,
'npc_dota_hero_primal_beast'
,
'npc_dota_hero_primal_beast'
,
'npc_dota_hero_muerta'
,
}
}
...
@@ -2515,7 +2516,7 @@ Chat['tItemNameList'] = {
...
@@ -2515,7 +2516,7 @@ Chat['tItemNameList'] = {
[
'sCnName'
]
=
'怨灵之契'
,
[
'sCnName'
]
=
'怨灵之契'
,
[
'sEnName'
]
=
0
,
[
'sEnName'
]
=
0
,
},
},
--内部自定义新物品
--内部自定义新物品
[
274
]
=
{
[
274
]
=
{
...
@@ -2565,7 +2566,88 @@ Chat['tItemNameList'] = {
...
@@ -2565,7 +2566,88 @@ Chat['tItemNameList'] = {
[
'sEnName'
]
=
0
,
[
'sEnName'
]
=
0
,
},
},
--7.33
[
280
]
=
{
[
'sRawName'
]
=
'item_disperser'
,
[
'sShortName'
]
=
'大散失'
,
[
'sCnName'
]
=
'散魂剑'
,
[
'sEnName'
]
=
0
,
},
[
281
]
=
{
[
'sRawName'
]
=
'item_harpoon'
,
[
'sShortName'
]
=
'itemNull'
,
[
'sCnName'
]
=
'鱼叉'
,
[
'sEnName'
]
=
0
,
},
[
282
]
=
{
[
'sRawName'
]
=
'item_blood_grenade'
,
[
'sShortName'
]
=
'itemNull'
,
[
'sCnName'
]
=
'血腥榴弹'
,
[
'sEnName'
]
=
0
,
},
[
283
]
=
{
[
'sRawName'
]
=
'item_phylactery'
,
[
'sShortName'
]
=
'itemNull'
,
[
'sCnName'
]
=
'灵匣'
,
[
'sEnName'
]
=
0
,
},
[
284
]
=
{
[
'sRawName'
]
=
'item_famango'
,
[
'sShortName'
]
=
'itemNull'
,
[
'sCnName'
]
=
'疗伤莲花'
,
[
'sEnName'
]
=
0
,
},
[
285
]
=
{
[
'sRawName'
]
=
'item_great_famango'
,
[
'sShortName'
]
=
'itemNull'
,
[
'sCnName'
]
=
'大疗伤莲花'
,
[
'sEnName'
]
=
0
,
},
[
286
]
=
{
[
'sRawName'
]
=
'item_greater_famango'
,
[
'sShortName'
]
=
'itemNull'
,
[
'sCnName'
]
=
'巨大疗伤莲花'
,
[
'sEnName'
]
=
0
,
},
[
287
]
=
{
[
'sRawName'
]
=
'item_diadem'
,
[
'sShortName'
]
=
'itemNull'
,
[
'sCnName'
]
=
'宝冕'
,
[
'sEnName'
]
=
0
,
},
[
288
]
=
{
[
'sRawName'
]
=
'item_cornucopia'
,
[
'sShortName'
]
=
'itemNull'
,
[
'sCnName'
]
=
'丰饶之环'
,
[
'sEnName'
]
=
0
,
},
[
288
]
=
{
[
'sRawName'
]
=
'item_pavise'
,
[
'sShortName'
]
=
'itemNull'
,
[
'sCnName'
]
=
'长盾'
,
[
'sEnName'
]
=
0
,
},
}
}
...
@@ -3670,7 +3752,7 @@ Chat['tHeroNameList'] = {
...
@@ -3670,7 +3752,7 @@ Chat['tHeroNameList'] = {
-- 120
-- 120
[
'npc_dota_hero_hoodwink'
]
=
{
[
'npc_dota_hero_hoodwink'
]
=
{
[
'sNormName'
]
=
'
小
松鼠'
,
[
'sNormName'
]
=
'松鼠'
,
[
'sShortName'
]
=
'hoodwink'
,
[
'sShortName'
]
=
'hoodwink'
,
[
'sCnName'
]
=
'森海飞霞'
,
[
'sCnName'
]
=
'森海飞霞'
,
[
'sEnName'
]
=
0
,
[
'sEnName'
]
=
0
,
...
@@ -3688,7 +3770,7 @@ Chat['tHeroNameList'] = {
...
@@ -3688,7 +3770,7 @@ Chat['tHeroNameList'] = {
-- 122
-- 122
[
'npc_dota_hero_marci'
]
=
{
[
'npc_dota_hero_marci'
]
=
{
[
'sNormName'
]
=
'
拳妹
'
,
[
'sNormName'
]
=
'
玛西
'
,
[
'sShortName'
]
=
'marci'
,
[
'sShortName'
]
=
'marci'
,
[
'sCnName'
]
=
'玛西'
,
[
'sCnName'
]
=
'玛西'
,
[
'sEnName'
]
=
0
,
[
'sEnName'
]
=
0
,
...
@@ -3706,7 +3788,7 @@ Chat['tHeroNameList'] = {
...
@@ -3706,7 +3788,7 @@ Chat['tHeroNameList'] = {
-- 123
-- 123
[
'npc_dota_hero_muerta'
]
=
{
[
'npc_dota_hero_muerta'
]
=
{
[
'sNormName'
]
=
'
琼碧
'
,
[
'sNormName'
]
=
'
奶绿
'
,
[
'sShortName'
]
=
'muerta'
,
[
'sShortName'
]
=
'muerta'
,
[
'sCnName'
]
=
'琼英碧灵'
,
[
'sCnName'
]
=
'琼英碧灵'
,
[
'sEnName'
]
=
0
,
[
'sEnName'
]
=
0
,
...
...
FunLib/aba_item.lua
View file @
d1cf3a7d
...
@@ -197,6 +197,8 @@ Item['sBasicItems'] = {
...
@@ -197,6 +197,8 @@ Item['sBasicItems'] = {
'item_voodoo_mask'
,
--巫毒面具
'item_voodoo_mask'
,
--巫毒面具
'item_fluffy_hat'
,
--毛毛帽
'item_fluffy_hat'
,
--毛毛帽
'item_aghanims_shard'
,
'item_aghanims_shard'
,
'item_diadem'
,
--宝冕
'item_cornucopia'
,
--丰饶之环
}
}
Item
[
'sSeniorItems'
]
=
{
Item
[
'sSeniorItems'
]
=
{
...
@@ -232,7 +234,10 @@ Item['sSeniorItems'] = {
...
@@ -232,7 +234,10 @@ Item['sSeniorItems'] = {
'item_blink'
,
'item_blink'
,
'item_cyclone'
,
'item_cyclone'
,
'item_helm_of_the_dominator'
,
'item_helm_of_the_dominator'
,
'item_rod_of_atos'
,
--7.33
'item_diffusal_blade'
,
'item_echo_sabre'
,
}
}
...
@@ -263,8 +268,6 @@ Item['sTopItems'] = {
...
@@ -263,8 +268,6 @@ Item['sTopItems'] = {
'item_crimson_guard'
,
'item_crimson_guard'
,
'item_dagon_5'
,
'item_dagon_5'
,
'item_desolator'
,
'item_desolator'
,
'item_diffusal_blade'
,
'item_echo_sabre'
,
'item_ethereal_blade'
,
'item_ethereal_blade'
,
'item_gem'
,
'item_gem'
,
'item_glimmer_cape'
,
'item_glimmer_cape'
,
...
@@ -313,7 +316,10 @@ Item['sTopItems'] = {
...
@@ -313,7 +316,10 @@ Item['sTopItems'] = {
'item_revenants_brooch'
,
'item_revenants_brooch'
,
'item_boots_of_bearing'
,
'item_boots_of_bearing'
,
'item_wraith_pact'
,
'item_pavise'
,
'item_harpoon'
,
'item_disperser'
,
...
@@ -342,6 +348,7 @@ Item['tEarlyItem'] = {
...
@@ -342,6 +348,7 @@ Item['tEarlyItem'] = {
'item_magic_wand'
,
'item_magic_wand'
,
'item_falcon_blade'
,
'item_falcon_blade'
,
'item_orb_of_corrosion'
,
'item_orb_of_corrosion'
,
'item_blood_grenade'
,
-- 'item_ancient_janggo',
-- 'item_ancient_janggo',
-- 'item_refresher_shard',
-- 'item_refresher_shard',
-- 'item_cheese',
-- 'item_cheese',
...
@@ -352,7 +359,7 @@ Item['tEarlyBoots'] = {
...
@@ -352,7 +359,7 @@ Item['tEarlyBoots'] = {
'item_phase_boots'
,
'item_phase_boots'
,
'item_power_treads'
,
'item_power_treads'
,
'item_tranquil_boots'
,
'item_tranquil_boots'
,
'item_arcane_boots'
'item_arcane_boots'
,
}
}
Item
[
'sCanNotSwitchItems'
]
=
{
Item
[
'sCanNotSwitchItems'
]
=
{
...
@@ -387,6 +394,7 @@ local sConsumableList = {
...
@@ -387,6 +394,7 @@ local sConsumableList = {
'item_refresher_shard'
,
'item_refresher_shard'
,
'item_aegis'
,
'item_aegis'
,
'item_ultimate_scepter_roshan'
,
'item_ultimate_scepter_roshan'
,
'item_blood_grenade'
,
}
}
local
tConsumableItemList
=
{}
local
tConsumableItemList
=
{}
...
@@ -433,6 +441,8 @@ local sNotSellItemList = {
...
@@ -433,6 +441,8 @@ local sNotSellItemList = {
'item_travel_boots'
,
'item_travel_boots'
,
'item_travel_boots_2'
,
'item_travel_boots_2'
,
'item_ward_observer'
,
'item_ward_observer'
,
'item_harpoon'
,
'item_disperser'
,
}
}
local
tNotSellItemList
=
{}
local
tNotSellItemList
=
{}
for
_
,
sItem
in
pairs
(
sNotSellItemList
)
for
_
,
sItem
in
pairs
(
sNotSellItemList
)
...
@@ -703,6 +713,15 @@ Item['item_boots_of_bearing'] = GetItemComponents( 'item_boots_of_bearing' )[1]
...
@@ -703,6 +713,15 @@ Item['item_boots_of_bearing'] = GetItemComponents( 'item_boots_of_bearing' )[1]
Item
[
'item_wraith_pact'
]
=
GetItemComponents
(
'item_wraith_pact'
)[
1
]
Item
[
'item_wraith_pact'
]
=
GetItemComponents
(
'item_wraith_pact'
)[
1
]
--7.33
Item
[
'item_harpoon'
]
=
GetItemComponents
(
'item_harpoon'
)[
1
]
Item
[
'item_disperser'
]
=
GetItemComponents
(
'item_disperser'
)[
1
]
Item
[
'item_phylactery'
]
=
GetItemComponents
(
'item_phylactery'
)[
1
]
Item
[
'item_pavise'
]
=
GetItemComponents
(
'item_pavise'
)[
1
]
--新自定义物品
--新自定义物品
Item
[
'item_new_1'
]
=
GetItemComponents
(
'item_new_1'
)[
1
]
Item
[
'item_new_1'
]
=
GetItemComponents
(
'item_new_1'
)[
1
]
...
@@ -1383,7 +1402,7 @@ function Item.GetOutfitType( bot )
...
@@ -1383,7 +1402,7 @@ function Item.GetOutfitType( bot )
end
end
function
Item
.
GetItemWardS
ol
t
()
function
Item
.
GetItemWardS
lo
t
()
local
bot
=
GetBot
()
local
bot
=
GetBot
()
...
...
ability_item_usage_generic.lua
View file @
d1cf3a7d
...
@@ -2104,26 +2104,26 @@ X.ConsiderItemDesire["item_glimmer_cape"] = function( hItem )
...
@@ -2104,26 +2104,26 @@ X.ConsiderItemDesire["item_glimmer_cape"] = function( hItem )
if
bot
:
DistanceFromFountain
()
>
600
if
bot
:
DistanceFromFountain
()
>
600
and
#
hNearbyEnemyTowerList
==
0
and
#
hNearbyEnemyTowerList
==
0
and
not
bot
:
HasModifier
(
'modifier_item_dustofappearance'
)
and
not
bot
:
HasModifier
(
'modifier_slardar_amplify_damage'
)
and
not
bot
:
HasModifier
(
'modifier_item_glimmer_cape'
)
and
not
bot
:
IsInvulnerable
()
and
not
bot
:
IsInvulnerable
()
and
not
bot
:
IsMagicImmune
()
and
not
bot
:
IsMagicImmune
()
then
then
if
bot
:
IsSilenced
()
or
J
.
IsStunProjectileIncoming
(
bot
,
1000
)
if
bot
:
IsSilenced
()
or
J
.
IsStunProjectileIncoming
(
bot
,
1000
)
then
and
not
bot
:
HasModifier
(
'modifier_item_glimmer_cape'
)
and
bot
:
IsCanInvisible
()
then
hEffectTarget
=
bot
hEffectTarget
=
bot
sCastMotive
=
'自己被沉默了'
sCastMotive
=
'自己被沉默了'
return
BOT_ACTION_DESIRE_HIGH
,
hEffectTarget
,
sCastType
,
sCastMotive
return
BOT_ACTION_DESIRE_HIGH
,
hEffectTarget
,
sCastType
,
sCastMotive
end
end
if
(
J
.
IsRetreating
(
bot
)
if
(
(
J
.
IsRetreating
(
bot
)
and
bot
:
GetActiveModeDesire
()
>=
BOT_MODE_DESIRE_VERYHIGH
and
bot
:
GetActiveModeDesire
()
>=
BOT_MODE_DESIRE_VERYHIGH
and
not
bot
:
HasModifier
(
"modifier_fountain_aura"
)
)
and
not
bot
:
HasModifier
(
"modifier_fountain_aura"
)
)
or
(
botTarget
==
nil
or
(
botTarget
==
nil
and
#
hNearbyEnemyHeroList
>
0
and
#
hNearbyEnemyHeroList
>
0
and
J
.
GetHP
(
bot
)
<
0
.
36
+
(
0
.
09
*
#
hNearbyEnemyHeroList
)
)
and
J
.
GetHP
(
bot
)
<
0
.
36
+
(
0
.
09
*
#
hNearbyEnemyHeroList
)
))
and
not
bot
:
HasModifier
(
'modifier_item_glimmer_cape'
)
and
bot
:
IsCanInvisible
()
then
then
hEffectTarget
=
bot
hEffectTarget
=
bot
sCastMotive
=
'自己撤退'
sCastMotive
=
'自己撤退'
...
@@ -2143,9 +2143,7 @@ X.ConsiderItemDesire["item_glimmer_cape"] = function( hItem )
...
@@ -2143,9 +2143,7 @@ X.ConsiderItemDesire["item_glimmer_cape"] = function( hItem )
and
not
npcAlly
:
IsInvisible
()
and
not
npcAlly
:
IsInvisible
()
and
npcAlly
:
DistanceFromFountain
()
>
600
and
npcAlly
:
DistanceFromFountain
()
>
600
and
not
npcAlly
:
HasModifier
(
'modifier_item_glimmer_cape'
)
and
not
npcAlly
:
HasModifier
(
'modifier_item_glimmer_cape'
)
and
not
npcAlly
:
HasModifier
(
'modifier_item_dustofappearance'
)
and
npcAlly
:
IsCanInvisible
()
and
not
npcAlly
:
HasModifier
(
'modifier_slardar_amplify_damage'
)
and
not
npcAlly
:
HasModifier
(
'modifier_arc_warden_tempest_double'
)
then
then
local
nNearbyAllyEnemyTowers
=
npcAlly
:
GetNearbyTowers
(
888
,
true
)
local
nNearbyAllyEnemyTowers
=
npcAlly
:
GetNearbyTowers
(
888
,
true
)
if
#
nNearbyAllyEnemyTowers
==
0
if
#
nNearbyAllyEnemyTowers
==
0
...
@@ -5875,6 +5873,158 @@ X.ConsiderItemDesire["item_boots_of_bearing"] = function( hItem )
...
@@ -5875,6 +5873,158 @@ X.ConsiderItemDesire["item_boots_of_bearing"] = function( hItem )
end
end
--疗伤莲花
X
.
ConsiderItemDesire
[
"item_famango"
]
=
function
(
hItem
)
local
hp
=
bot
:
GetMaxHealth
()
-
bot
:
GetHealth
()
local
mp
=
bot
:
GetMaxMana
()
-
bot
:
GetMana
()
local
regen
=
hItem
:
GetVal
(
'replenish_amount'
)
if
(
hp
>
regen
+
100
and
mp
>
regen
+
100
)
or
bot
:
GetHealthPercent
()
<
30
or
bot
:
GetManaPercent
()
<
30
then
return
BOT_ACTION_DESIRE_HIGH
,
nil
,
'none'
,
"恢复"
end
end
X
.
ConsiderItemDesire
[
"item_great_famango"
]
=
X
.
ConsiderItemDesire
[
"item_famango"
]
X
.
ConsiderItemDesire
[
"item_greater_famango"
]
=
X
.
ConsiderItemDesire
[
"item_famango"
]
--血腥榴弹
X
.
ConsiderItemDesire
[
"item_blood_grenade"
]
=
function
(
hItem
)
local
nCastRange
=
600
+
aetherRange
local
sCastType
=
'ground'
local
hEffectTarget
=
nil
local
sCastMotive
=
nil
local
nInRangeEnmyList
=
bot
:
GetNearbyHeroes
(
nCastRange
,
true
,
BOT_MODE_NONE
)
if
J
.
IsGoingOnSomeone
(
bot
)
and
J
.
IsValidHero
(
botTarget
)
then
hEffectTarget
=
botTarget
:
GetLocation
()
if
not
hEffectTarget
then
return
BOT_ACTION_DESIRE_NONE
end
sCastMotive
=
"进攻:"
..
J
.
Chat
.
GetNormName
(
botTarget
)
return
BOT_ACTION_DESIRE_HIGH
,
hEffectTarget
,
sCastType
,
sCastMotive
end
return
BOT_ACTION_DESIRE_NONE
end
--散魂剑
X
.
ConsiderItemDesire
[
"item_disperser"
]
=
function
(
hItem
)
local
a
,
b
,
c
,
d
=
X
.
ConsiderItemDesire
[
"item_diffusal_blade"
](
hItem
)
if
a
>
0
then
return
a
,
b
,
c
,
d
end
local
nCastRange
=
630
+
aetherRange
local
sCastType
=
'unit'
local
hEffectTarget
=
nil
local
sCastMotive
=
nil
local
nInRangeAllies
=
bot
:
GetNearbyHeroes
(
nCastRange
,
false
,
BOT_MODE_NONE
)
--追击加速
if
J
.
IsGoingOnSomeone
(
bot
)
then
if
J
.
IsValidHero
(
botTarget
)
and
not
J
.
IsDisabled
(
botTarget
)
and
J
.
IsChasingTarget
(
bot
,
botTarget
)
then
return
BOT_ACTION_DESIRE_HIGH
,
bot
,
'unit'
,
"追击加速:"
..
J
.
Chat
.
GetNormName
(
botTarget
)
end
end
if
J
.
ShouldDispelDebuff
(
bot
)
then
return
BOT_ACTION_DESIRE_HIGH
,
bot
,
'unit'
,
'解状态'
end
for
_
,
unit
in
nInRangeAllies
do
if
J
.
ShouldDispelDebuff
(
npcAlly
)
or
npcAlly
:
GetCurrentMovementSpeed
()
<
240
then
return
BOT_ACTION_DESIRE_HIGH
,
npcAlly
,
'unit'
,
'解状态'
end
end
end
--鱼叉
X
.
ConsiderItemDesire
[
"item_harpoon"
]
=
function
(
hItem
)
local
nCastRange
=
700
+
aetherRange
local
sCastType
=
'unit'
local
hEffectTarget
=
nil
local
sCastMotive
=
nil
local
nInRangeEnmyList
=
bot
:
GetNearbyHeroes
(
nCastRange
,
true
,
BOT_MODE_NONE
)
if
J
.
IsGoingOnSomeone
(
bot
)
then
if
J
.
IsValidHero
(
botTarget
)
and
bot
:
GetDistanceToUnit
(
botTarget
)
>
bot
:
GetAttackRange
()
+
200
then
hEffectTarget
=
botTarget
sCastMotive
=
"进攻:"
..
J
.
Chat
.
GetNormName
(
botTarget
)
return
BOT_ACTION_DESIRE_HIGH
,
hEffectTarget
,
sCastType
,
sCastMotive
end
end
return
BOT_ACTION_DESIRE_NONE
end
--长盾
X
.
ConsiderItemDesire
[
"item_pavise"
]
=
function
(
hItem
)
local
nCastRange
=
1000
+
aetherRange
local
sCastType
=
'unit'
local
hEffectTarget
=
nil
local
sCastMotive
=
nil
if
(
J
.
IsRetreating
(
bot
)
and
bot
:
GetActiveModeDesire
()
>=
BOT_MODE_DESIRE_VERYHIGH
and
not
bot
:
HasModifier
(
"modifier_fountain_aura"
)
)
or
(
botTarget
==
nil
and
#
hNearbyEnemyHeroList
>
0
and
J
.
GetHP
(
bot
)
<
0
.
36
+
(
0
.
09
*
#
hNearbyEnemyHeroList
)
)
then
hEffectTarget
=
bot
sCastMotive
=
'自己撤退'
return
BOT_ACTION_DESIRE_HIGH
,
hEffectTarget
,
sCastType
,
sCastMotive
end
if
bot
:
IsSilenced
()
or
J
.
IsStunProjectileIncoming
(
bot
,
1000
)
then
hEffectTarget
=
bot
sCastMotive
=
'自己被沉默了'
return
BOT_ACTION_DESIRE_HIGH
,
hEffectTarget
,
sCastType
,
sCastMotive
end
local
hAllyList
=
bot
:
GetNearbyHeroes
(
nCastRange
,
false
,
BOT_MODE_NONE
)
for
_
,
npcAlly
in
pairs
(
hAllyList
)
do
if
J
.
IsValidHero
(
npcAlly
)
and
not
npcAlly
:
IsIllusion
()
and
not
npcAlly
:
IsMagicImmune
()
and
not
npcAlly
:
IsInvulnerable
()
and
not
npcAlly
:
IsInvisible
()
and
npcAlly
:
DistanceFromFountain
()
>
600
then
local
nNearbyAllyEnemyTowers
=
npcAlly
:
GetNearbyTowers
(
888
,
true
)
if
#
nNearbyAllyEnemyTowers
==
0
then
--retreat
if
J
.
GetHP
(
npcAlly
)
<
0
.
35
+
(
0
.
05
*
#
hNearbyEnemyHeroList
)
and
J
.
IsRetreating
(
npcAlly
)
and
npcAlly
:
WasRecentlyDamagedByAnyHero
(
4
.
0
)
then
hEffectTarget
=
npcAlly
sCastMotive
=
'保护队友撤退:'
..
J
.
Chat
.
GetNormName
(
hEffectTarget
)
return
BOT_ACTION_DESIRE_HIGH
,
hEffectTarget
,
sCastType
,
sCastMotive
end
--Disable
if
J
.
IsDisabled
(
npcAlly
)
--debug
or
J
.
IsStunProjectileIncoming
(
npcAlly
,
1000
)
then
hEffectTarget
=
npcAlly
sCastMotive
=
'保护被控队友:'
..
J
.
Chat
.
GetNormName
(
hEffectTarget
)
return
BOT_ACTION_DESIRE_HIGH
,
hEffectTarget
,
sCastType
,
sCastMotive
end
end
end
end
return
BOT_ACTION_DESIRE_NONE
end
--灵匣/item_phylactery,分散到各个脚本里单独处理
--新物品
--新物品
X
.
ConsiderItemDesire
[
"item_new"
]
=
function
(
hItem
)
X
.
ConsiderItemDesire
[
"item_new"
]
=
function
(
hItem
)
...
@@ -5966,9 +6116,9 @@ local function UseGlyph()
...
@@ -5966,9 +6116,9 @@ local function UseGlyph()
local
tower
=
GetTower
(
GetTeam
(),
t
)
local
tower
=
GetTower
(
GetTeam
(),
t
)
if
tower
and
(
X
.
IsTargetedByEnemy
(
tower
)
if
tower
and
(
X
.
IsTargetedByEnemy
(
tower
)
or
#
tower
:
GetNearbyCreeps
(
1200
,
true
)
>
3
or
#
tower
:
GetNearbyCreeps
(
1200
,
true
)
>
3
or
tower
:
GetHealthPercent
()
<
0
.
1
)
or
tower
:
GetHealthPercent
()
<
10
)
and
not
tower
:
HasModifier
(
'modifier_backdoor_protection'
)
and
not
tower
:
HasModifier
(
'modifier_backdoor_protection'
)
and
tower
:
GetHealthPercent
()
<
0
.
3
then
and
tower
:
GetHealthPercent
()
<
30
then
bot
:
ActionImmediate_Glyph
()
bot
:
ActionImmediate_Glyph
()
return
return
end
end
...
@@ -5990,9 +6140,9 @@ local function UseGlyph()
...
@@ -5990,9 +6140,9 @@ local function UseGlyph()
local
tower
=
GetTower
(
GetTeam
(),
t
)
local
tower
=
GetTower
(
GetTeam
(),
t
)
if
tower
and
(
X
.
IsTargetedByEnemy
(
tower
)
if
tower
and
(
X
.
IsTargetedByEnemy
(
tower
)
or
#
tower
:
GetNearbyCreeps
(
1200
,
true
)
>
3
or
#
tower
:
GetNearbyCreeps
(
1200
,
true
)
>
3
or
tower
:
GetHealthPercent
()
<
0
.
1
)
or
tower
:
GetHealthPercent
()
<
10
)
and
not
tower
:
HasModifier
(
'modifier_backdoor_protection'
)
and
not
tower
:
HasModifier
(
'modifier_backdoor_protection'
)
and
tower
:
GetHealthPercent
()
<
0
.
5
then
and
tower
:
GetHealthPercent
()
<
50
then
bot
:
ActionImmediate_Glyph
()
bot
:
ActionImmediate_Glyph
()
return
return
end
end
...
@@ -6004,9 +6154,9 @@ local function UseGlyph()
...
@@ -6004,9 +6154,9 @@ local function UseGlyph()
local
tower
=
GetTower
(
GetTeam
(),
t
)
local
tower
=
GetTower
(
GetTeam
(),
t
)
if
tower
and
(
X
.
IsTargetedByEnemy
(
tower
)
if
tower
and
(
X
.
IsTargetedByEnemy
(
tower
)
or
#
tower
:
GetNearbyCreeps
(
1200
,
true
)
>
3
or
#
tower
:
GetNearbyCreeps
(
1200
,
true
)
>
3
or
tower
:
GetHealthPercent
()
<
0
.
1
)
or
tower
:
GetHealthPercent
()
<
10
)
and
not
tower
:
HasModifier
(
'modifier_backdoor_protection'
)
and
not
tower
:
HasModifier
(
'modifier_backdoor_protection'
)
and
tower
:
GetHealthPercent
()
<
0
.
5
then
and
tower
:
GetHealthPercent
()
<
50
then
bot
:
ActionImmediate_Glyph
()
bot
:
ActionImmediate_Glyph
()
return
return
end
end
...
@@ -6017,9 +6167,9 @@ local function UseGlyph()
...
@@ -6017,9 +6167,9 @@ local function UseGlyph()
local
barrack
=
GetBarracks
(
GetTeam
(),
b
)
local
barrack
=
GetBarracks
(
GetTeam
(),
b
)
if
barrack
and
(
X
.
IsTargetedByEnemy
(
barrack
)
if
barrack
and
(
X
.
IsTargetedByEnemy
(
barrack
)
or
#
barrack
:
GetNearbyCreeps
(
1200
,
true
)
>
3
or
#
barrack
:
GetNearbyCreeps
(
1200
,
true
)
>
3
or
barrack
:
GetHealthPercent
()
<
0
.
1
)
or
barrack
:
GetHealthPercent
()
<
10
)
and
not
barrack
:
HasModifier
(
'modifier_backdoor_protection'
)
and
not
barrack
:
HasModifier
(
'modifier_backdoor_protection'
)
and
barrack
:
GetHealthPercent
()
<
0
.
5
then
and
barrack
:
GetHealthPercent
()
<
50
then
bot
:
ActionImmediate_Glyph
()
bot
:
ActionImmediate_Glyph
()
return
return
end
end
...
@@ -6028,9 +6178,9 @@ local function UseGlyph()
...
@@ -6028,9 +6178,9 @@ local function UseGlyph()
local
Ancient
=
GetAncient
(
GetTeam
()
)
local
Ancient
=
GetAncient
(
GetTeam
()
)
if
Ancient
and
(
X
.
IsTargetedByEnemy
(
Ancient
)
if
Ancient
and
(
X
.
IsTargetedByEnemy
(
Ancient
)
or
#
Ancient
:
GetNearbyCreeps
(
1200
,
true
)
>
3
or
#
Ancient
:
GetNearbyCreeps
(
1200
,
true
)
>
3
or
Ancient
:
GetHealthPercent
()
<
0
.
1
)
or
Ancient
:
GetHealthPercent
()
<
10
)
and
not
Ancient
:
HasModifier
(
'modifier_backdoor_protection'
)
and
not
Ancient
:
HasModifier
(
'modifier_backdoor_protection'
)
and
Ancient
:
GetHealthPercent
()
<
0
.
5
then
and
Ancient
:
GetHealthPercent
()
<
50
then
bot
:
ActionImmediate_Glyph
()
bot
:
ActionImmediate_Glyph
()
return
return
end
end
...
...
item_purchase_generic.lua
View file @
d1cf3a7d
...
@@ -487,6 +487,7 @@ function ItemPurchaseThink()
...
@@ -487,6 +487,7 @@ function ItemPurchaseThink()
--死前如果会损失金钱则购买知识书
--死前如果会损失金钱则购买知识书
--[[
if currentTime > 10 * 60
if currentTime > 10 * 60
and bot:IsAlive()
and bot:IsAlive()
and botGold >= GetItemCost( "item_tome_of_knowledge" )
and botGold >= GetItemCost( "item_tome_of_knowledge" )
...
@@ -503,7 +504,7 @@ function ItemPurchaseThink()
...
@@ -503,7 +504,7 @@ function ItemPurchaseThink()
buyBookTime = currentTime
buyBookTime = currentTime
return
return
end
end
]]
--
--交换魂泪的位置避免过早被破坏
--交换魂泪的位置避免过早被破坏
if
currentTime
>
180
if
currentTime
>
180
...
@@ -532,7 +533,7 @@ function ItemPurchaseThink()
...
@@ -532,7 +533,7 @@ function ItemPurchaseThink()
check_time
=
currentTime
check_time
=
currentTime
--把眼换上去
--把眼换上去
local
wardSlot
=
Item
.
GetItemWardS
ol
t
(
bot
)
local
wardSlot
=
Item
.
GetItemWardS
lo
t
(
bot
)
if
wardSlot
>=
6
and
wardSlot
<=
8
if
wardSlot
>=
6
and
wardSlot
<=
8
then
then
for
i
=
0
,
5
for
i
=
0
,
5
...
...
mode_ward_generic.lua
View file @
d1cf3a7d
...
@@ -48,13 +48,6 @@ function GetDesire()
...
@@ -48,13 +48,6 @@ function GetDesire()
return
BOT_MODE_DESIRE_NONE
return
BOT_MODE_DESIRE_NONE
end
end
-- local wardSlot = X.GetItemWardSolt()
-- if wardSlot <= -1
-- or wardSlot >= 6
-- then
-- return BOT_MODE_DESIRE_NONE
-- end
if
itemWard
~=
nil
then
if
itemWard
~=
nil
then
AvailableSpots
=
Site
.
GetAvailableSpot
(
bot
);
AvailableSpots
=
Site
.
GetAvailableSpot
(
bot
);
...
@@ -73,7 +66,7 @@ end
...
@@ -73,7 +66,7 @@ end
function
OnStart
()
function
OnStart
()
if
itemWard
~=
nil
then
if
itemWard
~=
nil
then
local
wardSlot
=
X
.
GetItemWardS
ol
t
()
local
wardSlot
=
X
.
GetItemWardS
lo
t
()
if
bot
:
GetItemSlotType
(
wardSlot
)
==
ITEM_SLOT_TYPE_BACKPACK
if
bot
:
GetItemSlotType
(
wardSlot
)
==
ITEM_SLOT_TYPE_BACKPACK
then
then
local
leastCostItem
=
X
.
FindLeastItemSlot
();
local
leastCostItem
=
X
.
FindLeastItemSlot
();
...
@@ -188,7 +181,7 @@ function X.IsIBecameTheTarget(units)
...
@@ -188,7 +181,7 @@ function X.IsIBecameTheTarget(units)
end
end
function
X
.
GetItemWardS
ol
t
()
function
X
.
GetItemWardS
lo
t
()
local
sWardTypeList
=
{
local
sWardTypeList
=
{
'item_ward_observer'
,
'item_ward_observer'
,
...
...
rewrite_functions.lua
View file @
d1cf3a7d
...
@@ -60,10 +60,10 @@ function CDOTA_Bot_Script.IsAlly(unit)
...
@@ -60,10 +60,10 @@ function CDOTA_Bot_Script.IsAlly(unit)
return
GetBot
():
GetTeam
()
==
unit
:
GetTeam
()
return
GetBot
():
GetTeam
()
==
unit
:
GetTeam
()
end
end
function
CDOTA_Bot_Script
.
GetHealthPercent
(
unit
)
function
CDOTA_Bot_Script
.
GetHealthPercent
(
unit
)
return
unit
:
GetHealth
()
/
unit
:
GetMaxHealth
()
return
unit
:
GetHealth
()
/
unit
:
GetMaxHealth
()
*
100
.
0
end
end
function
CDOTA_Bot_Script
.
GetManaPercent
(
unit
)
function
CDOTA_Bot_Script
.
GetManaPercent
(
unit
)
return
unit
:
GetMana
()
/
unit
:
GetMaxMana
()
return
unit
:
GetMana
()
/
unit
:
GetMaxMana
()
*
100
.
0
end
end
function
CDOTA_Bot_Script
.
IsEnemy
(
unit
)
function
CDOTA_Bot_Script
.
IsEnemy
(
unit
)
return
GetBot
():
GetTeam
()
~=
unit
:
GetTeam
()
return
GetBot
():
GetTeam
()
~=
unit
:
GetTeam
()
...
@@ -83,6 +83,16 @@ function CDOTA_Bot_Script.WasRecentlyDamagedByAnyUnit(unit,time)
...
@@ -83,6 +83,16 @@ function CDOTA_Bot_Script.WasRecentlyDamagedByAnyUnit(unit,time)
return
unit
:
WasRecentlyDamagedByAnyHero
(
time
)
return
unit
:
WasRecentlyDamagedByAnyHero
(
time
)
or
unit
:
WasRecentlyDamagedByCreep
(
time
)
or
unit
:
WasRecentlyDamagedByCreep
(
time
)
end
end
function
CDOTA_Bot_Script
.
IsCanInvisible
(
unit
)
if
not
unit
:
CanBeSeen
()
then
return
false
end
local
buffs
=
require
(
GetScriptDirectory
()
..
'/FunLib/aba_buff'
)
for
_
,
buff
in
buffs
[
'truesight_buffs'
]
do
if
unit
:
HasModifier
(
buff
)
then
return
false
end
end
return
true
end
function
CDOTABaseAbility_BotScript
.
GetVal
(
ability
,
name
)
function
CDOTABaseAbility_BotScript
.
GetVal
(
ability
,
name
)
local
f
=
ability
:
GetSpecialValueFloat
(
name
)
local
f
=
ability
:
GetSpecialValueFloat
(
name
)
if
math.abs
(
f
)
<
0
.
0001
then
if
math.abs
(
f
)
<
0
.
0001
then
...
...
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