1
This commit is contained in:
parent
5acb72fe88
commit
765feb056c
@ -6,6 +6,7 @@
|
|||||||
#include "mt/Hero.h"
|
#include "mt/Hero.h"
|
||||||
#include "mt/Equip.h"
|
#include "mt/Equip.h"
|
||||||
#include "mt/NpcStandard.h"
|
#include "mt/NpcStandard.h"
|
||||||
|
#include "mt/BattleBasicAttribute.h"
|
||||||
|
|
||||||
IMPL_TABLE(mt::Hero)
|
IMPL_TABLE(mt::Hero)
|
||||||
|
|
||||||
@ -119,6 +120,7 @@ namespace mt
|
|||||||
swim_speed_ = 1.0f;
|
swim_speed_ = 1.0f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
basic_meta_ = mt::BattleBasicAttribute::GetById(id());
|
||||||
}
|
}
|
||||||
|
|
||||||
int Hero::RandDrop() const
|
int Hero::RandDrop() const
|
||||||
|
@ -55,11 +55,11 @@ namespace mt
|
|||||||
int RandDrop() const;
|
int RandDrop() const;
|
||||||
const HeroShotAnimation* GetShotAnimi(int shotfire) const;
|
const HeroShotAnimation* GetShotAnimi(int shotfire) const;
|
||||||
float GetHeight() const { return height_; }
|
float GetHeight() const { return height_; }
|
||||||
std::shared_ptr<BattleBasicAttribute> GetBasicMeta() { return basic_meta_; }
|
mt::BattleBasicAttribute* GetBasicMeta() { return basic_meta_; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
float height_ = 0.0f;
|
float height_ = 0.0f;
|
||||||
std::shared_ptr<mt::BattleBasicAttribute> basic_meta_ = nullptr;
|
mt::BattleBasicAttribute* basic_meta_ = nullptr;
|
||||||
|
|
||||||
static void LoadHeroAndEquipShotData();
|
static void LoadHeroAndEquipShotData();
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user