1
This commit is contained in:
parent
bc57b6ea56
commit
727395db4d
@ -3736,3 +3736,13 @@ void Human::SetIpSaddr(long ip_saddr)
|
|||||||
{
|
{
|
||||||
ip_saddr_ = ip_saddr;
|
ip_saddr_ = ip_saddr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int Human::GetHeroQuality()
|
||||||
|
{
|
||||||
|
return hero_quality_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void Human::SetHeroQuality(int quality)
|
||||||
|
{
|
||||||
|
hero_quality_ = quality;
|
||||||
|
}
|
||||||
|
@ -296,6 +296,8 @@ class Human : public Creature
|
|||||||
void SetSocketHandle(int socket_handle);
|
void SetSocketHandle(int socket_handle);
|
||||||
long GetIpSaddr() { return ip_saddr_; };
|
long GetIpSaddr() { return ip_saddr_; };
|
||||||
void SetIpSaddr(long ip_saddr);
|
void SetIpSaddr(long ip_saddr);
|
||||||
|
int GetHeroQuality();
|
||||||
|
void SetHeroQuality(int quality);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void ProcLootWeapon(AddItemDTO& dto);
|
void ProcLootWeapon(AddItemDTO& dto);
|
||||||
@ -378,6 +380,7 @@ protected:
|
|||||||
private:
|
private:
|
||||||
int socket_handle_ = 0;
|
int socket_handle_ = 0;
|
||||||
long ip_saddr_ = 0;
|
long ip_saddr_ = 0;
|
||||||
|
int hero_quality_ = 0;
|
||||||
|
|
||||||
std::shared_ptr<BornPoint> born_point_;
|
std::shared_ptr<BornPoint> born_point_;
|
||||||
FrameData framedata_;
|
FrameData framedata_;
|
||||||
|
@ -164,6 +164,7 @@ static Player* InternalCreatePlayer(std::shared_ptr<CustomBattle> p,
|
|||||||
int quality = 1;
|
int quality = 1;
|
||||||
hum->GetNetData()->GetHeroLvQuality(hero_uniid, hero_lv, quality);
|
hum->GetNetData()->GetHeroLvQuality(hero_uniid, hero_lv, quality);
|
||||||
hum->hero_uniid = hero_uniid;
|
hum->hero_uniid = hero_uniid;
|
||||||
|
hum->SetHeroQuality(quality);
|
||||||
}
|
}
|
||||||
if (on_preadd) {
|
if (on_preadd) {
|
||||||
on_preadd(hum);
|
on_preadd(hum);
|
||||||
@ -831,6 +832,7 @@ void Human::FillMFObjectFull(Room* room, Human* hum, cs::MFObjectFull* full_data
|
|||||||
p->set_shield_max_hp(shield_max_hp_);
|
p->set_shield_max_hp(shield_max_hp_);
|
||||||
}
|
}
|
||||||
p->set_team_id(team_id);
|
p->set_team_id(team_id);
|
||||||
|
p->set_hero_quality(GetHeroQuality());
|
||||||
}
|
}
|
||||||
|
|
||||||
void Human::FillMFObjectImage(Room* room, Human* hum, cs::MFCharacterImage* image_data)
|
void Human::FillMFObjectImage(Room* room, Human* hum, cs::MFCharacterImage* image_data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user