1
This commit is contained in:
parent
8d7d8dbb0d
commit
09b43289aa
@ -17,6 +17,7 @@ class Car : public Creature
|
||||
public:
|
||||
int car_uniid = 0;
|
||||
MetaData::Equip* meta = nullptr;
|
||||
MetaData::Player* hero_meta_ = nullptr;
|
||||
|
||||
Car();
|
||||
virtual ~Car() override;
|
||||
@ -38,5 +39,4 @@ class Car : public Creature
|
||||
bool later_removed_ = false;
|
||||
Human* driver_ = nullptr;
|
||||
std::set<Human*> passengers_;
|
||||
MetaData::Player* hero_meta_ = nullptr;
|
||||
};
|
||||
|
@ -149,6 +149,9 @@ void Player::UpdateMove()
|
||||
if (HasBuffEffect(kBET_Vertigo)) {
|
||||
return;
|
||||
}
|
||||
if (GetCar() && GetCar()->HasBuffEffect(kBET_Vertigo)) {
|
||||
return;
|
||||
}
|
||||
if (HasBuffEffect(kBET_Passenger)) {
|
||||
return;
|
||||
}
|
||||
|
@ -593,6 +593,9 @@ Car* Room::CreateCar(Human* driver,
|
||||
AddToEntityHash(car);
|
||||
grid_service->AddCreature(car);
|
||||
car->RefreshView();
|
||||
for (int buff_id : car->hero_meta_->init_buffs) {
|
||||
car->MustBeAddBuff(car, buff_id);
|
||||
}
|
||||
car->BroadcastFullState(this);
|
||||
return car;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user