adding blowable tag to bonuses but the bomb exploded the bonuses instantly

This commit is contained in:
Clément Le Bihan
2021-06-10 23:12:47 +02:00
parent f8486c1ac1
commit 2a82f46e49

View File

@@ -53,6 +53,7 @@ namespace BBM
return; return;
wal.getScene()->scheduleNewEntity("Bonus") wal.getScene()->scheduleNewEntity("Bonus")
.addComponent<PositionComponent>(position) .addComponent<PositionComponent>(position)
.addComponent<TagComponent<Blowable>>()
.addComponent<HealthComponent>(1, [](WAL::Entity &entity, WAL::Wal &wal) { .addComponent<HealthComponent>(1, [](WAL::Entity &entity, WAL::Wal &wal) {
entity.scheduleDeletion(); entity.scheduleDeletion();
}) })