This commit is contained in:
aozhiwei 2021-07-07 11:33:22 +00:00
parent 45c5164a23
commit 084f8eb9a5

View File

@ -43,6 +43,7 @@ void Car::Initialize()
SetCurrWeapon(&weapons[GUN_SLOT1]);
}
born_frameno_ = room->GetFrameNo();
SetDef(hero_meta_->i->def());
SetHP(hero_meta_->i->health());
SetMaxHP(std::max(GetHP(), GetMaxHP()));
TryAddBuff(this, meta->car_deactive_buff_id);