1
This commit is contained in:
parent
7ced127ff7
commit
39cd029f4d
@ -1021,6 +1021,12 @@ void Buff::ProcMachineGun()
|
||||
break;
|
||||
case MAGIC_FG:
|
||||
{
|
||||
bool shot_ok = false;
|
||||
a8::Vec2 target_dir;
|
||||
float fly_distance = 0;
|
||||
int trace_target_uniid = 0;
|
||||
owner->Shot(owner->context_dir, shot_ok, fly_distance, trace_target_uniid);
|
||||
|
||||
owner->room->xtimer.ModifyTimer
|
||||
(remover_timer,
|
||||
skill_meta->number_meta->float_time * 1000 / FRAME_RATE_MS);
|
||||
|
@ -906,6 +906,9 @@ void Creature::ProcSkillPhase(MetaData::SkillPhase* phase)
|
||||
if (std::abs(skill_dir_.x) > FLT_EPSILON ||
|
||||
std::abs(skill_dir_.y) > FLT_EPSILON) {
|
||||
float target_distance = 5;
|
||||
if (CurrentSkill()->meta->GetMagicId() == MAGIC_FG) {
|
||||
target_distance = CurrentSkill()->meta->number_meta->float_range;
|
||||
}
|
||||
if (weapon_meta->i->equip_type() == EQUIP_TYPE_THROW &&
|
||||
weapon_meta->i->equip_subtype() == THROW_EQUIP_TYPE_ADD_BUFF) {
|
||||
target_distance = skill_distance_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user