僵尸死亡不产生经验
This commit is contained in:
parent
9153944fd2
commit
a9fc65206d
@ -572,21 +572,21 @@ void Room::OnHumanDie(Human* hum)
|
||||
if (hum->GetRace() == kHumanRace) {
|
||||
RemoveRescue(hum);
|
||||
hum->DeadDrop();
|
||||
for (auto& pair : human_hash_) {
|
||||
if (pair.second != hum) {
|
||||
pair.second->WinExp(hum, hum->meta->i->dead_exp());
|
||||
}
|
||||
}
|
||||
{
|
||||
Human* killer = GetPlayerByUniId(hum->stats.killer_id);
|
||||
if (killer && killer != hum) {
|
||||
killer->WinExp(hum, hum->meta->i->killer_exp());
|
||||
}
|
||||
}
|
||||
} else if (hum->GetRace() == kZombieRace) {
|
||||
} else {
|
||||
abort();
|
||||
}
|
||||
for (auto& pair : human_hash_) {
|
||||
if (pair.second != hum) {
|
||||
pair.second->WinExp(hum, hum->meta->i->dead_exp());
|
||||
}
|
||||
}
|
||||
{
|
||||
Human* killer = GetPlayerByUniId(hum->stats.killer_id);
|
||||
if (killer && killer != hum) {
|
||||
killer->WinExp(hum, hum->meta->i->killer_exp());
|
||||
}
|
||||
}
|
||||
NotifyUiUpdate();
|
||||
} else {
|
||||
--alive_count_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user