1
This commit is contained in:
parent
be7a12d163
commit
eb46ffae0c
@ -2308,6 +2308,9 @@ void Human::DeadDrop()
|
||||
room->DropItem(drop_pos, weapon.weapon_id, 1, weapon.weapon_lv);
|
||||
}
|
||||
}
|
||||
{
|
||||
curr_weapon = &weapons[0];
|
||||
}
|
||||
{
|
||||
Skin* old_skin = GetSkinByIdx(kSkinSlot_HAT);
|
||||
if (old_skin && old_skin->skin_id != 0) {
|
||||
|
@ -287,6 +287,7 @@ class Human : public MoveableEntity
|
||||
void ChangeToRaceAndNotify(RaceType_e race, int level);
|
||||
void WinExp(Human* sender, int exp);
|
||||
HumanCar& GetCar() { return car_; }
|
||||
void DeadDrop();
|
||||
|
||||
protected:
|
||||
void _InternalUpdateMove(float speed);
|
||||
@ -304,7 +305,6 @@ protected:
|
||||
private:
|
||||
void ClearFrameData();
|
||||
void GenBattleReportData(a8::MutableXObject* params);
|
||||
void DeadDrop();
|
||||
void FillSMGameOver(cs::SMGameOver& msg);
|
||||
void SendBattleReport();
|
||||
void FindLocationWithTarget(Entity* target);
|
||||
|
@ -483,6 +483,10 @@ void Player::ObstacleInteraction(Obstacle* entity)
|
||||
|
||||
void Player::LootInteraction(Loot* entity)
|
||||
{
|
||||
if (room->GetRoomMode() == kZombieMode &&
|
||||
GetRace() == kZombieRace) {
|
||||
return;
|
||||
}
|
||||
if (entity->pickuped ||
|
||||
entity->count <= 0) {
|
||||
return;
|
||||
|
@ -569,6 +569,7 @@ void Room::OnHumanDie(Human* hum)
|
||||
if (GetRoomMode() == kZombieMode) {
|
||||
if (hum->GetRace() == kHumanRace) {
|
||||
RemoveRescue(hum);
|
||||
hum->DeadDrop();
|
||||
} else if (hum->GetRace() == kZombieRace) {
|
||||
} else {
|
||||
abort();
|
||||
|
Loading…
x
Reference in New Issue
Block a user