Fixed info_struct->get_account_age_base() so account age displays on character page.
This commit is contained in:
parent
f73dab429b
commit
0301472fda
2 changed files with 3 additions and 5 deletions
EQ2/source/WorldServer
|
@ -609,16 +609,13 @@ EQ2Packet* PlayerInfo::serialize3(PacketStruct* packet, int16 version){
|
|||
return 0;
|
||||
}
|
||||
|
||||
void PlayerInfo::SetAccountAge(int16 age){
|
||||
void PlayerInfo::SetAccountAge(int32 age){
|
||||
info_struct->set_account_age_base(age);
|
||||
}
|
||||
|
||||
EQ2Packet* PlayerInfo::serialize(int16 version, int16 modifyPos, int32 modifyValue) {
|
||||
player->CalculateBonuses();
|
||||
|
||||
int8 blah1 = 90;
|
||||
int8 blah2 = 120;
|
||||
|
||||
PacketStruct* packet = configReader.getStruct("WS_CharacterSheet", version);
|
||||
//0-69, locked screen movement
|
||||
//30-69 normal movement
|
||||
|
@ -641,6 +638,7 @@ EQ2Packet* PlayerInfo::serialize(int16 version, int16 modifyPos, int32 modifyVal
|
|||
packet->setDataByName("effective_level", info_struct->get_effective_level() != 0 ? info_struct->get_effective_level() : info_struct->get_level());
|
||||
packet->setDataByName("tradeskill_level", info_struct->get_tradeskill_level());
|
||||
packet->setDataByName("account_age_base", info_struct->get_account_age_base());
|
||||
|
||||
//TODO: 2021 FIX THIS CASTING
|
||||
for (int8 i = 0; i < 19; i++)
|
||||
packet->setDataByName("account_age_bonus", 0);
|
||||
|
|
|
@ -370,7 +370,7 @@ public:
|
|||
void SetBindY(float y);
|
||||
void SetBindZ(float z);
|
||||
void SetBindHeading(float heading);
|
||||
void SetAccountAge(int16 days);
|
||||
void SetAccountAge(int32 days);
|
||||
int32 GetHouseZoneID();
|
||||
int32 GetBindZoneID();
|
||||
float GetBindZoneX();
|
||||
|
|
Loading…
Add table
Reference in a new issue