diff options
| author | Garrett Cox <garrettjcox@gmail.com> | 2022-11-05 08:37:32 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-05 14:37:32 +0100 |
| commit | 4396411d1072b24a4bb77658b453a4286e030fb2 (patch) | |
| tree | 499952a4a9ee07acbd76eae5b0374ca431c734d8 /soh/src | |
| parent | 6d10e6b9f88af348fb45decc2a0ad00fb2f452e9 (diff) | |
Add enhancement for making nuts explode bombs, similar to bombchus (#1906)
Diffstat (limited to 'soh/src')
| -rw-r--r-- | soh/src/overlays/actors/ovl_En_Bom/z_en_bom.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/soh/src/overlays/actors/ovl_En_Bom/z_en_bom.c b/soh/src/overlays/actors/ovl_En_Bom/z_en_bom.c index 06b42cd79..76b072797 100644 --- a/soh/src/overlays/actors/ovl_En_Bom/z_en_bom.c +++ b/soh/src/overlays/actors/ovl_En_Bom/z_en_bom.c @@ -103,6 +103,9 @@ void EnBom_Init(Actor* thisx, GlobalContext* globalCtx) { Collider_SetCylinder(globalCtx, &this->bombCollider, thisx, &sCylinderInit); Collider_SetJntSph(globalCtx, &this->explosionCollider, thisx, &sJntSphInit, &this->explosionColliderItems[0]); this->explosionColliderItems[0].info.toucher.damage += (thisx->shape.rot.z & 0xFF00) >> 8; + if (CVar_GetS32("gNutsExplodeBombs", 0)) { + this->bombCollider.info.bumper.dmgFlags |= 1; + } thisx->shape.rot.z &= 0xFF; if (thisx->shape.rot.z & 0x80) { |
