Add RemoveSpinAttackDarkness

This commit is contained in:
Pepe20129 2024-10-17 22:19:42 +02:00
parent b5c6545d6f
commit 4af61db648
2 changed files with 6 additions and 0 deletions

View File

@ -1370,6 +1370,8 @@ void DrawEnhancementsMenu() {
UIWidgets::Tooltip("Shows what items you have collected in the file select screen, like in N64 randomizer");
UIWidgets::PaddedEnhancementCheckbox("Better ammo rendering in pause menu", CVAR_ENHANCEMENT("BetterAmmoRendering"), true, false);
UIWidgets::Tooltip("Ammo counts in the pause menu will work correctly regardless of the position of items in the inventory");
UIWidgets::PaddedEnhancementCheckbox("Remove spin attack darkness", CVAR_ENHANCEMENT("RemoveSpinAttackDarkness"), true, false);
UIWidgets::Tooltip("Remove the darkness that appears when charging a spin attack");
ImGui::EndMenu();
}

View File

@ -125,6 +125,10 @@ void EnMThunder_Destroy(Actor* thisx, PlayState* play) {
}
void func_80A9F314(PlayState* play, f32 arg1) {
if (CVarGetInteger(CVAR_ENHANCEMENT("RemoveSpinAttackDarkness"), 0)) {
return;
}
Environment_AdjustLights(play, arg1, 850.0f, 0.2f, 0.0f);
}