Made the ultra berry increase your speed for 10 seconds

It stacks just like in normal bd btw. So if you get 2 ultra berries you
will have the effect for 20 seconds. Also this was surprisingly easy to
add.
This commit is contained in:
Puppet committed 2025-10-08 22:31:04 -07:00
1 parent b0af899416
commit ace7c8fb03
3 files changed
+29

No files matched your search

+16
View File
@@ -28,5 +28,21 @@ public partial class Player : Node2D {
}
Position = Pos;
// Effect handling
if (Globals.ActiveEffect != "none") {
Globals.EffectTimer -= (float)delta;
}
if (Globals.EffectTimer < 0f) {
Globals.EffectTimer = 0f;
Globals.ActiveEffect = "none";
}
if (Globals.ActiveEffect == "none") {
Globals.MovementSpeed = Globals.DefaultMovementSpeed;
} if (Globals.ActiveEffect == "ultra") {
Globals.MovementSpeed = Globals.DefaultMovementSpeed * 2f;
}
}
}