This commit is contained in:
aozhiwei 2024-01-10 11:50:12 +08:00
parent 66a65e8b7b
commit 80f3bae4ea
4 changed files with 13 additions and 9 deletions

View File

@ -51,8 +51,7 @@ enum HumanAttrType_e
kXHAT_End kXHAT_End
}; };
enum NewHumanAttrType_e A8_DECLARE_ENUM(NewHumanAttrType_e,
{
kNHAT_Begin = 0, kNHAT_Begin = 0,
kNHAT_vCurrnetHealth = 1, kNHAT_vCurrnetHealth = 1,
kNHAT_vHealth = 2, kNHAT_vHealth = 2,
@ -106,10 +105,9 @@ enum NewHumanAttrType_e
kNHAT_Hold = 55, kNHAT_Hold = 55,
kNHAT_End kNHAT_End
}; );
enum HumanVirtualAttrType_e A8_DECLARE_ENUM(HumanVirtualAttrType_e,
{
kHVAT_Begin = 1000, kHVAT_Begin = 1000,
kHVAT_Dmg = 1001, kHVAT_Dmg = 1001,
kHVAT_BulletAngle = 1002, kHVAT_BulletAngle = 1002,
@ -129,4 +127,4 @@ enum HumanVirtualAttrType_e
kHVAT_Volume = 1015, kHVAT_Volume = 1015,
kHVAT_FireRate = 1016, kHVAT_FireRate = 1016,
kHVAT_End kHVAT_End
}; );

View File

@ -46,3 +46,8 @@ bool AttrHelper::ParseAttr(std::shared_ptr<a8::XObject> xobj,
} }
return true; return true;
} }
std::string AttrHelper::GetAttrName(int attr_id)
{
}

View File

@ -13,4 +13,5 @@ class AttrHelper
std::array<float, kNHAT_End>& attr_abs, std::array<float, kNHAT_End>& attr_abs,
std::array<float, kNHAT_End>& attr_rate); std::array<float, kNHAT_End>& attr_rate);
static std::string GetAttrName(int attr_id);
}; };

View File

@ -785,9 +785,9 @@ float BattleDataContext::CalcDmg(Creature* target, IBullet* bullet)
g_calc_dmg_context.is_crit = 0; g_calc_dmg_context.is_crit = 0;
#ifdef MYDEBUG #ifdef MYDEBUG
if (hero_ability_->hero_meta->id() == 9011) { if (owner_.Get()->IsPlayer()) {
int i = 0;
} }
#endif #endif
float vEbc = 1.0f; float vEbc = 1.0f;