1
This commit is contained in:
parent
3e46f18281
commit
7962ebf895
@ -29,6 +29,7 @@
|
||||
#include "mt/Equip.h"
|
||||
#include "mt/Skill.h"
|
||||
#include "mt/Map.h"
|
||||
#include "mt/Param.h"
|
||||
|
||||
#include "behaviac_generated/types/internal/behaviac_customized_types.h"
|
||||
|
||||
@ -1602,6 +1603,17 @@ behaviac::EBTStatus HeroAgent::ThrowItem(int slot)
|
||||
fly_distance,
|
||||
0);
|
||||
last_throw_item_frameno_ = owner_->room->GetFrameNo();
|
||||
switch (weapon_slot) {
|
||||
case IS_FRAG:
|
||||
{
|
||||
owner_->TryAddBuffAndSetTime(owner_, kVertigoBuffId, mt::Param::s().frag_dinshen_time);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
{
|
||||
}
|
||||
break;
|
||||
}
|
||||
return behaviac::BT_SUCCESS;
|
||||
}
|
||||
}
|
||||
|
@ -146,6 +146,8 @@ namespace mt
|
||||
int battling_detection_range = 0;
|
||||
int battling_grass_hide_delay_time = 0;
|
||||
|
||||
int frag_dinshen_time = 1200;
|
||||
|
||||
std::vector<float> block_effect_range;
|
||||
std::vector<float> crit_effect_range;
|
||||
|
||||
|
@ -1762,6 +1762,17 @@ void Player::UpdateThrowBomb()
|
||||
bomb_dir,
|
||||
throw_bomb->fly_distance(),
|
||||
0);
|
||||
switch (equip_meta->_inventory_slot()) {
|
||||
case IS_FRAG:
|
||||
{
|
||||
TryAddBuffAndSetTime(this, kVertigoBuffId, mt::Param::s().frag_dinshen_time);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
{
|
||||
}
|
||||
break;
|
||||
}
|
||||
SendUnityDebugMsg(this, a8::Format("xxxxxxxx 9 throw_uniid:%d", {throw_bomb->throw_uniid()}));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user