This commit is contained in:
aozhiwei 2020-07-30 15:25:05 +08:00
parent f664d01c53
commit 33bf201aed
4 changed files with 1 additions and 46 deletions

View File

@ -260,27 +260,6 @@ void FrameEvent::AddItemChg(Human* hum, int item_id, int item_num)
hum->chged_items_.push_back(idx); 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) void FrameEvent::AddZombieIdChg(Human* hum)
{ {
chged_zombieids_.push_back(hum); chged_zombieids_.push_back(hum);
@ -370,15 +349,6 @@ void FrameEvent::Clear()
if (!chged_weapon_ammo_.empty()) { if (!chged_weapon_ammo_.empty()) {
chged_weapon_ammo_.clear(); 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()) { if (!chged_zombieids_.empty()) {
chged_zombieids_.clear(); chged_zombieids_.clear();
} }

View File

@ -23,9 +23,6 @@ public:
void RemoveBuff(Human* hum, int buff_id); void RemoveBuff(Human* hum, int buff_id);
void AddSkillCdChg(Human* hum); void AddSkillCdChg(Human* hum);
void AddItemChg(Human* hum, int item_id, int item_num); 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 AddZombieIdChg(Human* hum);
void AddDead(Human* sender, int revive_time); void AddDead(Human* sender, int revive_time);
void AddRevive(Human* sender); void AddRevive(Human* sender);
@ -44,9 +41,6 @@ private:
std::vector<std::tuple<Human*, int, int>> chged_weapon_ammo_; std::vector<std::tuple<Human*, int, int>> chged_weapon_ammo_;
std::vector<Human*> chged_hps_; std::vector<Human*> chged_hps_;
std::vector<Human*> chged_skillcds_; 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<Human*> chged_zombieids_;
std::vector<std::tuple<int, int, int>> dead_alive_objs_; std::vector<std::tuple<int, int, int>> dead_alive_objs_;

View File

@ -1970,8 +1970,7 @@ void Human::ChangeToRace(RaceType_e race, int level)
void Human::ChangeToRaceAndNotify(RaceType_e race, int level) void Human::ChangeToRaceAndNotify(RaceType_e race, int level)
{ {
ChangeToRace(race, level); ChangeToRace(race, level);
room->frame_event.AddRaceChg(this); room->frame_event.AddZombieIdChg(this);
room->frame_event.AddLevelChg(this);
} }
void Human::WinExp(Human* sender, int exp) void Human::WinExp(Human* sender, int exp)
@ -3798,6 +3797,4 @@ void Human::OnMetaChange()
if (passive_skill_meta) { if (passive_skill_meta) {
AddPassiveSkill(passive_skill_meta); AddPassiveSkill(passive_skill_meta);
} }
room->frame_event.AddRaceChg(this);
room->frame_event.AddLevelChg(this);
} }

View File

@ -118,12 +118,6 @@ message MFVec2
property_type: 10 property_type: 10
property_subtype: property_subtype:
valule: valule:
property_type: 20
valule:
property_type: 21
valule:
property_type: 22
valule:
property_type: 23 charid property_type: 23 charid
valule: charid valule: charid
*/ */