From 5ab490270ab2bea5aea2899dd413100241ca3138 Mon Sep 17 00:00:00 2001 From: David Markowitz Date: Thu, 16 Oct 2025 10:44:56 -0700 Subject: [PATCH] add config option --- dScripts/ai/GF/GfBanana.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dScripts/ai/GF/GfBanana.cpp b/dScripts/ai/GF/GfBanana.cpp index 0fd5b05f..30288689 100644 --- a/dScripts/ai/GF/GfBanana.cpp +++ b/dScripts/ai/GF/GfBanana.cpp @@ -47,7 +47,7 @@ void GfBanana::OnHit(Entity* self, Entity* attacker) { const auto bananaId = self->GetVar(u"banana"); if (bananaId == LWOOBJID_EMPTY) { - if (GeneralUtils::GenerateRandomNumber(1, 100) == 100 && self->GetVar(u"apeId") == LWOOBJID_EMPTY) { + if (GeneralUtils::GenerateRandomNumber(1, 100) == 100 && self->GetVar(u"apeId") == LWOOBJID_EMPTY && Game::config->GetValue("angry_apes") == "1") { // ape appears if you hurt the trees feeling while it has no banana // play fx effect