僵尸死亡不产生经验

This commit is contained in:
aozhiwei 2020-07-30 09:38:19 +08:00
parent 9153944fd2
commit a9fc65206d

View File

@ -572,10 +572,6 @@ void Room::OnHumanDie(Human* hum)
if (hum->GetRace() == kHumanRace) { if (hum->GetRace() == kHumanRace) {
RemoveRescue(hum); RemoveRescue(hum);
hum->DeadDrop(); hum->DeadDrop();
} else if (hum->GetRace() == kZombieRace) {
} else {
abort();
}
for (auto& pair : human_hash_) { for (auto& pair : human_hash_) {
if (pair.second != hum) { if (pair.second != hum) {
pair.second->WinExp(hum, hum->meta->i->dead_exp()); pair.second->WinExp(hum, hum->meta->i->dead_exp());
@ -587,6 +583,10 @@ void Room::OnHumanDie(Human* hum)
killer->WinExp(hum, hum->meta->i->killer_exp()); killer->WinExp(hum, hum->meta->i->killer_exp());
} }
} }
} else if (hum->GetRace() == kZombieRace) {
} else {
abort();
}
NotifyUiUpdate(); NotifyUiUpdate();
} else { } else {
--alive_count_; --alive_count_;