This commit is contained in:
aozhiwei 2022-12-26 12:24:10 +08:00
parent 5217ed437c
commit 030ca3d763
2 changed files with 7 additions and 0 deletions

View File

@ -114,6 +114,11 @@ namespace mt
return 0;
}
void Hero::StaticPostInit()
{
LoadHeroAndEquipShotData();
}
const HeroShotAnimation* Hero::GetShotAnimi(int shotfire) const
{
auto itr = shot_animations.find(shotfire);

View File

@ -47,6 +47,8 @@ namespace mt
std::map<int, HeroShotAnimation> shot_animations;
void Init1();
static void StaticPostInit();
int RandDrop() const;
const HeroShotAnimation* GetShotAnimi(int shotfire) const;