- 23 Авг 2022
- 28
- 1
нету кастомного предмета в лавке, в shop.txt добавлял
npc_items_custom
npc_items_custom
KV:
"item_desolator_two"
{
// General
"BaseClass" "item_desolator"
//-------------------------------------------------------------------------------------------------------------
"ID" "168" // unique ID number for this item. Do not change this once established or it will invalidate collected stats.
"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_PASSIVE"
"AbilityTextureName" "items/item_desolator_two" // Иконка предмета. О ней позже.
// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "7000"
"ItemShopTags" "damage;unique"
"ItemQuality" "artifact"
"ItemAliases" "desolator"
"ItemDeclarations" "DECLARE_PURCHASES_TO_TEAMMATES | DECLARE_PURCHASES_IN_SPEECH | DECLARE_PURCHASES_TO_SPECTATORS"
"SpellDispellableType" "SPELL_DISPELLABLE_YES"
"ShouldBeSuggested" "1"
// Special
//-------------------------------------------------------------------------------------------------------------
"AbilityValues"
{
"bonus_damage" "100"
"corruption_armor" "-12"
"corruption_duration" "10.0"
"bonus_damage_per_kill" "5"
"bonus_damage_per_assist" "2"
"max_damage" "40"
}
}
"item_recipe_desolator_two"
{
"ID" "1200"
"BaseClass" "item_datadriven"
"ItemRecipe" "1" // Рецепт для комбинации предмета
"ItemCost" "0" // Если будет 0, тогда комбинирование предметов будет без рецепта
"ItemResult" "item_desolator_two" // Результат комбинации предмета после ItemRequirements
"ItemRequirements"
{
"01" "item_desolator;item_desolator" // Необходимые предметы для комбинации
}
}