1
This commit is contained in:
parent
f664d01c53
commit
33bf201aed
@ -260,27 +260,6 @@ void FrameEvent::AddItemChg(Human* hum, int item_id, int item_num)
|
||||
hum->chged_items_.push_back(idx);
|
||||
}
|
||||
|
||||
void FrameEvent::AddLevelChg(Human* hum)
|
||||
{
|
||||
chged_levels_.push_back(hum);
|
||||
int idx = chged_levels_.size() - 1;
|
||||
hum->chged_level_.push_back(idx);
|
||||
}
|
||||
|
||||
void FrameEvent::AddExpChg(Human* hum)
|
||||
{
|
||||
chged_exps_.push_back(hum);
|
||||
int idx = chged_exps_.size() - 1;
|
||||
hum->chged_exp_.push_back(idx);
|
||||
}
|
||||
|
||||
void FrameEvent::AddRaceChg(Human* hum)
|
||||
{
|
||||
chged_races_.push_back(hum);
|
||||
int idx = chged_races_.size() - 1;
|
||||
hum->chged_race_.push_back(idx);
|
||||
}
|
||||
|
||||
void FrameEvent::AddZombieIdChg(Human* hum)
|
||||
{
|
||||
chged_zombieids_.push_back(hum);
|
||||
@ -370,15 +349,6 @@ void FrameEvent::Clear()
|
||||
if (!chged_weapon_ammo_.empty()) {
|
||||
chged_weapon_ammo_.clear();
|
||||
}
|
||||
if (!chged_levels_.empty()) {
|
||||
chged_levels_.clear();
|
||||
}
|
||||
if (!chged_exps_.empty()) {
|
||||
chged_exps_.clear();
|
||||
}
|
||||
if (!chged_races_.empty()) {
|
||||
chged_races_.clear();
|
||||
}
|
||||
if (!chged_zombieids_.empty()) {
|
||||
chged_zombieids_.clear();
|
||||
}
|
||||
|
@ -23,9 +23,6 @@ public:
|
||||
void RemoveBuff(Human* hum, int buff_id);
|
||||
void AddSkillCdChg(Human* hum);
|
||||
void AddItemChg(Human* hum, int item_id, int item_num);
|
||||
void AddLevelChg(Human* hum);
|
||||
void AddExpChg(Human* hum);
|
||||
void AddRaceChg(Human* hum);
|
||||
void AddZombieIdChg(Human* hum);
|
||||
void AddDead(Human* sender, int revive_time);
|
||||
void AddRevive(Human* sender);
|
||||
@ -44,9 +41,6 @@ private:
|
||||
std::vector<std::tuple<Human*, int, int>> chged_weapon_ammo_;
|
||||
std::vector<Human*> chged_hps_;
|
||||
std::vector<Human*> chged_skillcds_;
|
||||
std::vector<Human*> chged_levels_;
|
||||
std::vector<Human*> chged_exps_;
|
||||
std::vector<Human*> chged_races_;
|
||||
std::vector<Human*> chged_zombieids_;
|
||||
std::vector<std::tuple<int, int, int>> dead_alive_objs_;
|
||||
|
||||
|
@ -1970,8 +1970,7 @@ void Human::ChangeToRace(RaceType_e race, int level)
|
||||
void Human::ChangeToRaceAndNotify(RaceType_e race, int level)
|
||||
{
|
||||
ChangeToRace(race, level);
|
||||
room->frame_event.AddRaceChg(this);
|
||||
room->frame_event.AddLevelChg(this);
|
||||
room->frame_event.AddZombieIdChg(this);
|
||||
}
|
||||
|
||||
void Human::WinExp(Human* sender, int exp)
|
||||
@ -3798,6 +3797,4 @@ void Human::OnMetaChange()
|
||||
if (passive_skill_meta) {
|
||||
AddPassiveSkill(passive_skill_meta);
|
||||
}
|
||||
room->frame_event.AddRaceChg(this);
|
||||
room->frame_event.AddLevelChg(this);
|
||||
}
|
||||
|
@ -118,12 +118,6 @@ message MFVec2
|
||||
property_type: 10 更新武器子弹数
|
||||
property_subtype: 武器索引
|
||||
valule: 当前数量
|
||||
property_type: 20 等级
|
||||
valule: 当前等级
|
||||
property_type: 21 经验
|
||||
valule: 当前经验
|
||||
property_type: 22 阵营
|
||||
valule: 当前阵营
|
||||
property_type: 23 charid
|
||||
valule: charid
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user