This commit is contained in:
aozhiwei 2023-04-19 18:36:58 +08:00
parent 3085b50992
commit 3d23c706bc
2 changed files with 7 additions and 0 deletions

View File

@ -42,6 +42,7 @@
#include "ability.h"
#include "stats.h"
#include "hero.h"
#include "guide.h"
#include "buff/sprint.h"
@ -89,6 +90,8 @@ Human::Human():Creature()
AddInventory(IS_ICE, FIGHTING_MODE_BULLET_NUM);
}
stats = std::make_shared<PlayerStats>();
guide_ = std::make_shared<Guide>();
guild_->Init(this);
}
Human::~Human()

View File

@ -40,6 +40,7 @@ class Loot;
class Car;
class Buff;
class PlayerStats;
class Guide;
struct BornPoint;
class Human : public Creature
{
@ -253,6 +254,7 @@ class Human : public Creature
void ProcThrowDmg(int throw_uniid);
void CalcStats();
void ShiledBreak();
std::shared_ptr<Guide> GetGuide() { return guide_; };
protected:
void ProcLootWeapon(AddItemDTO& dto);
@ -343,5 +345,7 @@ private:
float old_sync_speed = 0;
std::map<int, long long> attacker_hash_;
std::shared_ptr<Guide> guide_;
friend class PBUtils;
};