This commit is contained in:
aozhiwei 2023-03-17 18:38:46 +08:00
parent 7c3ef74ba5
commit 5d8d90658d
3 changed files with 14 additions and 3 deletions

View File

@ -15,7 +15,8 @@ A8_DECLARE_CLASS_ENUM(BuffCallFunc_e, int,
kAddEnergyShield = 10, kAddEnergyShield = 10,
kAddHp = 11, kAddHp = 11,
kFlashMoveToPos = 12, kFlashMoveToPos = 12,
kLightCircle = 13 kLightCircle = 13,
kDmgAddition = 14
); );

View File

@ -1,6 +1,7 @@
#include "precompile.h" #include "precompile.h"
#include "mt/Grasp.h" #include "mt/Grasp.h"
#include "mt/Item.h"
IMPL_TABLE(mt::Grasp) IMPL_TABLE(mt::Grasp)
std::map<long long, std::tuple<int, std::set<int>>> mt::Grasp::hero_id_lv_gun_hash_; std::map<long long, std::tuple<int, std::set<int>>> mt::Grasp::hero_id_lv_gun_hash_;
@ -33,6 +34,11 @@ namespace mt
if (weapon_id() == 0) { if (weapon_id() == 0) {
abort(); abort();
} }
const mt::Item* item_meta = mt::Item::GetById(weapon_id());
if (!item_meta){
abort();
}
weapon_id_ = item_meta->relationship();
} }
void Grasp::Init2() void Grasp::Init2()

View File

@ -2,6 +2,8 @@
#include <a8/magicenum.h> #include <a8/magicenum.h>
#include "app.h"
#include "mt/SkillNumber.h" #include "mt/SkillNumber.h"
#include "mt/Skill.h" #include "mt/Skill.h"
@ -108,8 +110,10 @@ namespace mt
if (!skill_meta) { if (!skill_meta) {
abort(); abort();
} }
#if 1 #ifdef DEBUG
if (App::Instance()->instance_id == 6) {
_float_cd = 6; _float_cd = 6;
}
#endif #endif
//metatable::Skill* skill_pb = (metatable::Skill*)(skill_meta->pb); //metatable::Skill* skill_pb = (metatable::Skill*)(skill_meta->pb);
//skill_pb->set_skill_cd(float_cd); //skill_pb->set_skill_cd(float_cd);