添加新手buff处理
This commit is contained in:
parent
c976981762
commit
adbf4a174a
@ -204,6 +204,14 @@ void Room::AddPlayer(Player* hum)
|
|||||||
},
|
},
|
||||||
&hum->xtimer_attacher.timer_list_);
|
&hum->xtimer_attacher.timer_list_);
|
||||||
}
|
}
|
||||||
|
if (room_type == RT_NewBrid || room_type == RT_MidBrid) {
|
||||||
|
for (int buff_id : MetaMgr::Instance()->newbie_buff_list) {
|
||||||
|
MetaData::Buff* buff_meta = MetaMgr::Instance()->GetBuff(buff_id);
|
||||||
|
if (buff_meta) {
|
||||||
|
hum->AddBuff(buff_meta, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
while (human_hash_.size() > ROOM_MAX_PLAYER_NUM) {
|
while (human_hash_.size() > ROOM_MAX_PLAYER_NUM) {
|
||||||
RandRemoveAndroid();
|
RandRemoveAndroid();
|
||||||
}
|
}
|
||||||
@ -1662,9 +1670,7 @@ void Room::EnableHuman(Human* target)
|
|||||||
a8::UnSetBitFlag(target->status, HS_Disable);
|
a8::UnSetBitFlag(target->status, HS_Disable);
|
||||||
moveable_hash_[target->entity_uniid] = target;
|
moveable_hash_[target->entity_uniid] = target;
|
||||||
grid_service->AddHuman(target);
|
grid_service->AddHuman(target);
|
||||||
#if 0
|
|
||||||
target->FindLocation();
|
target->FindLocation();
|
||||||
#endif
|
|
||||||
target->RefreshView();
|
target->RefreshView();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user