This commit is contained in:
aozhiwei 2021-09-10 17:28:33 +08:00
parent df3696ba61
commit 721515fc5c
2 changed files with 2 additions and 1 deletions

View File

@ -408,6 +408,7 @@ void Car::BeKill(int killer_id, const std::string& killer_name, int weapon_id)
room->frame_event.AddCarChg(passenger->GetWeakPtrRef());
}
std::shared_ptr<Explosion> explosion = EntityFactory::Instance()->MakeExplosion();
explosion->SetDamageDelay(meta->i->explosion_damage_delay());
explosion->IndifferenceAttack(
room,
GetPos(),

View File

@ -15,7 +15,7 @@ class Explosion : public std::enable_shared_from_this<Explosion>
long long GetSpecialDamageType() { return special_damage_type_; };
bool IsPreBattleExplosion();
int GetExplosionEffect() { return explosion_effect_; };
void SetDmageDelay(int delay) { explosion_damage_delay_ = delay; };
void SetDamageDelay(int delay) { explosion_damage_delay_ = delay; };
void IndifferenceAttack(Room* room,
const a8::Vec2& center,