This commit is contained in:
aozhiwei 2024-01-18 15:03:46 +08:00
parent 1f611dbe72
commit 9edcf5fffb
4 changed files with 18 additions and 0 deletions

View File

@ -229,6 +229,11 @@ void CallFuncBuff::Activate()
} }
} }
break; break;
case BuffCallFunc_e::kAccumulatePower:
{
AccumulatePower();
}
break;
default: default:
{ {
} }
@ -1394,3 +1399,8 @@ void CallFuncBuff::ThrowKnife()
})); }));
} }
} }
void CallFuncBuff::AccumulatePower()
{
}

View File

@ -37,6 +37,7 @@ A8_DECLARE_CLASS_ENUM(BuffCallFunc_e, int,
kSpecCenterRangeHoldBuff = 37, kSpecCenterRangeHoldBuff = 37,
kThrowKnife = 38, kThrowKnife = 38,
kDirectAbsDecHP = 39, kDirectAbsDecHP = 39,
kAccumulatePower = 40,
); );
@ -72,6 +73,7 @@ class CallFuncBuff : public Buff
void LispEval(); void LispEval();
void SpecCenterRangeHoldBuff(); void SpecCenterRangeHoldBuff();
void ThrowKnife(); void ThrowKnife();
void AccumulatePower();
void InternalRangeHoldBuff(std::function<bool(glm::vec3&)> get_center_func); void InternalRangeHoldBuff(std::function<bool(glm::vec3&)> get_center_func);

View File

@ -194,6 +194,8 @@ enum EquipType_e
enum GunSubEquipType_e enum GunSubEquipType_e
{ {
GUN_SUB_EQUIP_TYPE_THREE_GUN = 9,
GUN_SUB_EQUIP_TYPE_LASER_CANNON = 10,
GUN_SUB_EQUIP_TYPE_FLY_HOOk = 14, GUN_SUB_EQUIP_TYPE_FLY_HOOk = 14,
GUN_SUB_EQUIP_TYPE_End GUN_SUB_EQUIP_TYPE_End
}; };
@ -508,6 +510,7 @@ enum SwitchTimesType_e
kEnableDmgForwardTimes, kEnableDmgForwardTimes,
kImmuneGasTimes, kImmuneGasTimes,
kAniHideTimes, kAniHideTimes,
kAccumulatePowerTimes,
kSwitchTimeEnd, kSwitchTimeEnd,
}; };

View File

@ -3342,6 +3342,9 @@ std::shared_ptr<std::set<int>> Creature::CalcReporterList(bool is_trace_bullet,
} }
break; break;
} }
if (weapon_meta->equip_subtype() == GUN_SUB_EQUIP_TYPE_THREE_GUN) {
need_gen = true;
}
if (need_gen) { if (need_gen) {
float nearest_distance = FLT_MAX; float nearest_distance = FLT_MAX;
Creature* nearest_hum = nullptr; Creature* nearest_hum = nullptr;