From 372a4da2054049a0ddcf661049c22bec570527fe Mon Sep 17 00:00:00 2001 From: En Yi Date: Sun, 20 Apr 2025 19:16:07 +0800 Subject: [PATCH] Adjust crate destuction time --- scenes/game_systems.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scenes/game_systems.c b/scenes/game_systems.c index 4f7fe44..925dab0 100644 --- a/scenes/game_systems.c +++ b/scenes/game_systems.c @@ -1752,10 +1752,14 @@ void hitbox_update_system(Scene_t* scene) { remove_component(p_other_ent, CHURTBOX_T); CLifeTimer_t* p_clifetimer = add_component(p_other_ent, CLIFETIMER_T); - if (p_other_ent->m_tag == CRATES_ENT_TAG - && (p_ent->m_tag == ARROW_ENT_TAG || p_ent->m_tag == DESTRUCTABLE_ENT_TAG)) + if (p_other_ent->m_tag == CRATES_ENT_TAG) { - p_clifetimer->life_time = 0.1f; + if (p_ent->m_tag == ARROW_ENT_TAG) { + p_clifetimer->life_time = 0.15f; + } + else if (p_ent->m_tag == DESTRUCTABLE_ENT_TAG) { + p_clifetimer->life_time = 0.12f; + } } else {