1
This commit is contained in:
parent
3085b50992
commit
3d23c706bc
@ -42,6 +42,7 @@
|
|||||||
#include "ability.h"
|
#include "ability.h"
|
||||||
#include "stats.h"
|
#include "stats.h"
|
||||||
#include "hero.h"
|
#include "hero.h"
|
||||||
|
#include "guide.h"
|
||||||
|
|
||||||
#include "buff/sprint.h"
|
#include "buff/sprint.h"
|
||||||
|
|
||||||
@ -89,6 +90,8 @@ Human::Human():Creature()
|
|||||||
AddInventory(IS_ICE, FIGHTING_MODE_BULLET_NUM);
|
AddInventory(IS_ICE, FIGHTING_MODE_BULLET_NUM);
|
||||||
}
|
}
|
||||||
stats = std::make_shared<PlayerStats>();
|
stats = std::make_shared<PlayerStats>();
|
||||||
|
guide_ = std::make_shared<Guide>();
|
||||||
|
guild_->Init(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
Human::~Human()
|
Human::~Human()
|
||||||
|
@ -40,6 +40,7 @@ class Loot;
|
|||||||
class Car;
|
class Car;
|
||||||
class Buff;
|
class Buff;
|
||||||
class PlayerStats;
|
class PlayerStats;
|
||||||
|
class Guide;
|
||||||
struct BornPoint;
|
struct BornPoint;
|
||||||
class Human : public Creature
|
class Human : public Creature
|
||||||
{
|
{
|
||||||
@ -253,6 +254,7 @@ class Human : public Creature
|
|||||||
void ProcThrowDmg(int throw_uniid);
|
void ProcThrowDmg(int throw_uniid);
|
||||||
void CalcStats();
|
void CalcStats();
|
||||||
void ShiledBreak();
|
void ShiledBreak();
|
||||||
|
std::shared_ptr<Guide> GetGuide() { return guide_; };
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void ProcLootWeapon(AddItemDTO& dto);
|
void ProcLootWeapon(AddItemDTO& dto);
|
||||||
@ -343,5 +345,7 @@ private:
|
|||||||
float old_sync_speed = 0;
|
float old_sync_speed = 0;
|
||||||
std::map<int, long long> attacker_hash_;
|
std::map<int, long long> attacker_hash_;
|
||||||
|
|
||||||
|
std::shared_ptr<Guide> guide_;
|
||||||
|
|
||||||
friend class PBUtils;
|
friend class PBUtils;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user