mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-01-08 12:28:10 -05:00
Add enhancement for making nuts explode bombs, similar to bombchus (#1906)
This commit is contained in:
parent
6d10e6b9f8
commit
4396411d10
@ -819,6 +819,8 @@ namespace GameMenuBar {
|
||||
UIWidgets::Tooltip("Wearing the Bunny Hood grants a speed increase like in Majora's Mask");
|
||||
UIWidgets::PaddedEnhancementCheckbox("Mask Select in Inventory", "gMaskSelect", true, false);
|
||||
UIWidgets::Tooltip("After completing the mask trading sub-quest, press A and any direction on the mask slot to change masks");
|
||||
UIWidgets::PaddedEnhancementCheckbox("Nuts explode bombs", "gNutsExplodeBombs", true, false);
|
||||
UIWidgets::Tooltip("Makes nuts explode bombs, similar to how they interact with bombchus. This does not affect bombflowers.");
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user