This commit is contained in:
aozhiwei 2024-07-29 16:28:37 +08:00
parent 32179a8129
commit a24e7d1680
5 changed files with 23 additions and 0 deletions

View File

@ -281,6 +281,8 @@ enum PropertyType_e
kPropLevelExp = 55, kPropLevelExp = 55,
kPropLevelUp = 56, kPropLevelUp = 56,
kPropBoxNum = 57,
}; };
enum SkinSlot_e enum SkinSlot_e

View File

@ -99,6 +99,7 @@ class Creature : public MoveableEntity
int max_armor_shield = 0; int max_armor_shield = 0;
int revive_count = 0; int revive_count = 0;
CreatureWeakPtr master; CreatureWeakPtr master;
int box_num;
Weapon second_weapon; Weapon second_weapon;
glm::vec3 skill_pos; glm::vec3 skill_pos;

View File

@ -4270,3 +4270,15 @@ void Room::MobaOver()
OnGameOver(); OnGameOver();
} }
} }
int Room::GetMaxBoxNum()
{
return max_box_num_;
}
void Room::SetMaxBoxNum(int box_num)
{
if (box_num > 0) {
max_box_num_ = box_num;
}
}

View File

@ -305,6 +305,8 @@ public:
void CalcMvp(); void CalcMvp();
long long GetMobaOvertimeRaceFrameNo () { return moba_overtime_race_frameno_; } long long GetMobaOvertimeRaceFrameNo () { return moba_overtime_race_frameno_; }
void MobaOver(); void MobaOver();
int GetMaxBoxNum();
void SetMaxBoxNum(int box_num);
std::shared_ptr<InGameVoice> GetInGameVoice() { return ingame_voice_; } std::shared_ptr<InGameVoice> GetInGameVoice() { return ingame_voice_; }
@ -473,6 +475,8 @@ private:
std::shared_ptr<InGameVoice> ingame_voice_; std::shared_ptr<InGameVoice> ingame_voice_;
int max_box_num_ = 0;
friend class Incubator; friend class Incubator;
friend class Team; friend class Team;
}; };

View File

@ -250,6 +250,9 @@ message MFVec3
property_subtype: uniid property_subtype: uniid
value: value:
value2: value2:
property_type: 57
property_subtype: uniid
value:
*/ */
message MFPropertyChg message MFPropertyChg
{ {
@ -411,6 +414,7 @@ message MFPlayerFull
optional int32 armor_shield = 73; // optional int32 armor_shield = 73; //
optional int32 max_armor_shield = 74; // optional int32 max_armor_shield = 74; //
optional int32 box_num = 75; //
} }
//- //-