1
This commit is contained in:
parent
32179a8129
commit
a24e7d1680
@ -281,6 +281,8 @@ enum PropertyType_e
|
||||
|
||||
kPropLevelExp = 55,
|
||||
kPropLevelUp = 56,
|
||||
|
||||
kPropBoxNum = 57,
|
||||
};
|
||||
|
||||
enum SkinSlot_e
|
||||
|
@ -99,6 +99,7 @@ class Creature : public MoveableEntity
|
||||
int max_armor_shield = 0;
|
||||
int revive_count = 0;
|
||||
CreatureWeakPtr master;
|
||||
int box_num;
|
||||
|
||||
Weapon second_weapon;
|
||||
glm::vec3 skill_pos;
|
||||
|
@ -4270,3 +4270,15 @@ void Room::MobaOver()
|
||||
OnGameOver();
|
||||
}
|
||||
}
|
||||
|
||||
int Room::GetMaxBoxNum()
|
||||
{
|
||||
return max_box_num_;
|
||||
}
|
||||
|
||||
void Room::SetMaxBoxNum(int box_num)
|
||||
{
|
||||
if (box_num > 0) {
|
||||
max_box_num_ = box_num;
|
||||
}
|
||||
}
|
||||
|
@ -305,6 +305,8 @@ public:
|
||||
void CalcMvp();
|
||||
long long GetMobaOvertimeRaceFrameNo () { return moba_overtime_race_frameno_; }
|
||||
void MobaOver();
|
||||
int GetMaxBoxNum();
|
||||
void SetMaxBoxNum(int box_num);
|
||||
|
||||
std::shared_ptr<InGameVoice> GetInGameVoice() { return ingame_voice_; }
|
||||
|
||||
@ -473,6 +475,8 @@ private:
|
||||
|
||||
std::shared_ptr<InGameVoice> ingame_voice_;
|
||||
|
||||
int max_box_num_ = 0;
|
||||
|
||||
friend class Incubator;
|
||||
friend class Team;
|
||||
};
|
||||
|
@ -250,6 +250,9 @@ message MFVec3
|
||||
property_subtype: 对象uniid
|
||||
value: 老等级
|
||||
value2: 新等级
|
||||
property_type: 57 宝箱数量
|
||||
property_subtype: 对象uniid
|
||||
value: 宝箱数量
|
||||
*/
|
||||
message MFPropertyChg
|
||||
{
|
||||
@ -411,6 +414,7 @@ message MFPlayerFull
|
||||
optional int32 armor_shield = 73; //护甲
|
||||
optional int32 max_armor_shield = 74; //最大护甲
|
||||
|
||||
optional int32 box_num = 75; //宝箱数量
|
||||
}
|
||||
|
||||
//阻挡物-部分
|
||||
|
Loading…
x
Reference in New Issue
Block a user