1
This commit is contained in:
parent
2abae9c0f3
commit
3c08d8e96c
@ -99,7 +99,7 @@ class Creature : public MoveableEntity
|
||||
int max_armor_shield = 0;
|
||||
int revive_count = 0;
|
||||
CreatureWeakPtr master;
|
||||
int box_num;
|
||||
int box_num = 0;
|
||||
|
||||
Weapon second_weapon;
|
||||
glm::vec3 skill_pos;
|
||||
|
@ -495,6 +495,9 @@ void Obstacle::SetRotate(float rotate)
|
||||
void Obstacle::DoTreasureBoxInteraction(Human* sender)
|
||||
{
|
||||
if (!IsDead(sender->room)) {
|
||||
++sender->box_num;
|
||||
sender->room->frame_event.AddPropChgEx(sender->GetWeakPtrRef(), kPropBoxNum, 0, sender->box_num,
|
||||
1, 0, false);
|
||||
Die(sender->room);
|
||||
BroadcastFullState(sender->room);
|
||||
sender->room->xtimer.SetTimeoutEx
|
||||
|
@ -251,7 +251,6 @@ message MFVec3
|
||||
value: 老等级
|
||||
value2: 新等级
|
||||
property_type: 57 宝箱数量
|
||||
property_subtype: 对象uniid
|
||||
value: 当前宝箱数量
|
||||
value2: 本次获得宝箱数(>0表现获得新的宝箱 <0表示死亡时掉落扣除的宝箱 ==0纯数据同步)
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user