diff --git a/src/engine/fox_play.c b/src/engine/fox_play.c index 3e90db13..0ef05370 100644 --- a/src/engine/fox_play.c +++ b/src/engine/fox_play.c @@ -5559,7 +5559,9 @@ void Player_UpdateShields(Player* player) { if (player->damage <= 0) { player->damage = 0; } - player->shields -= 2; + if (!CVarGetInteger("gInvincible", 0)) { + player->shields -= 2; + } if (player->shields <= 0) { player->shields = 0; player->damage = 0; diff --git a/src/port/ui/ImguiUI.cpp b/src/port/ui/ImguiUI.cpp index a9fc6fef..3d8d6c8e 100644 --- a/src/port/ui/ImguiUI.cpp +++ b/src/port/ui/ImguiUI.cpp @@ -460,6 +460,7 @@ void DrawEnhancementsMenu() { void DrawCheatsMenu() { if (UIWidgets::BeginMenu("Cheats")) { UIWidgets::CVarCheckbox("Infinite Lives", "gInfiniteLives"); + UIWidgets::CVarCheckbox("Invincible", "gInvincible"); UIWidgets::CVarCheckbox("Unbreakable Wings", "gUnbreakableWings"); UIWidgets::CVarCheckbox("Infinite Bombs", "gInfiniteBombs"); UIWidgets::CVarCheckbox("Hyper Laser", "gHyperLaser");