merge test
This commit is contained in:
commit
c4aa0c1a97
@ -488,11 +488,7 @@ const int ADPLAY_BUFFID = 1006;
|
||||
|
||||
const int FIXED_OBJECT_MAXID = 20140;
|
||||
|
||||
#ifdef DEBUG
|
||||
const int MAX_ROOM_IDX = 100;
|
||||
#else
|
||||
const int MAX_ROOM_IDX = 1024;
|
||||
#endif
|
||||
|
||||
const int VIEW_RANGE = 512;
|
||||
|
||||
|
@ -121,8 +121,9 @@ float Human::GetSpeed()
|
||||
}
|
||||
speed = meta->i->move_speed();
|
||||
}
|
||||
speed = (speed + GetAbility()->GetBuffAttrAbs(kHAT_Speed)) *
|
||||
(1 + GetAbility()->GetBuffAttrRate(kHAT_Speed));
|
||||
float old_speed = speed;
|
||||
speed = (speed + GetAbility()->GetAttrAbs(kHAT_Speed)) *
|
||||
(1 + GetAbility()->GetAttrRate(kHAT_Speed));
|
||||
if (a8::HasBitFlag(cell_flags_, kColliderTag_Water)) {
|
||||
speed *= MetaMgr::Instance()->water_move_coefficient;
|
||||
}
|
||||
|
@ -125,6 +125,13 @@ void RoomMgr::Update(int delta_time)
|
||||
|
||||
void RoomMgr::_CMJoin(f8::MsgHdr& hdr, const cs::CMJoin& msg)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
#else
|
||||
if (msg.proto_version() < 2021073001) {
|
||||
JoinErrorHandle(msg, 6, hdr.socket_handle);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
if (IsLimitJoin()) {
|
||||
JoinErrorHandle(msg, 2, hdr.socket_handle);
|
||||
return;
|
||||
|
@ -295,7 +295,7 @@ void Trigger::TryAddBuffs(int cond, std::vector<int>& buffids)
|
||||
#ifdef DEBUG
|
||||
owner_->MustBeAddBuff(owner_, buffid);
|
||||
#else
|
||||
owner_->TryBeAddBuff(owner_, buffid);
|
||||
owner_->TryAddBuff(owner_, buffid);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@ -307,7 +307,7 @@ void Trigger::AddBuffs(int cond, std::vector<int>& buffids)
|
||||
#ifdef DEBUG
|
||||
owner_->MustBeAddBuff(owner_, buffid);
|
||||
#else
|
||||
owner_->TryBeAddBuff(owner_, buffid);
|
||||
owner_->TryAddBuff(owner_, buffid);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ package cs;
|
||||
//常量
|
||||
enum Constant_e
|
||||
{
|
||||
ProtoVersion = 2020081401; //系统版本
|
||||
ProtoVersion = 2021073001; //系统版本
|
||||
}
|
||||
|
||||
//心跳
|
||||
|
Loading…
x
Reference in New Issue
Block a user