From b0af899416d5764f0e44522007716c2400f24ff4 Mon Sep 17 00:00:00 2001 From: Thepuppetqueen57 Date: Wed, 8 Oct 2025 22:09:03 -0700 Subject: [PATCH] Made ultra berries give you +5 score instead of +1 progress ahahaha (making the actual boost is gonna be so fun trust) --- Scripts/BerryLogic.cs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Scripts/BerryLogic.cs b/Scripts/BerryLogic.cs index 6bb1bd3..75f0559 100644 --- a/Scripts/BerryLogic.cs +++ b/Scripts/BerryLogic.cs @@ -2,10 +2,22 @@ using Godot; using System; public partial class BerryLogic : Node2D { + string BerryType = ""; + private void _on_hitbox_area_entered(Area2D area) { - Globals.Score += 1; + Texture2D Sprite = GetNode("Sprite").Texture; + + string BerryTexturesFolder = "res://Textures/Berries/"; + if (Sprite == GD.Load(BerryTexturesFolder + "Berry.png")) { + BerryType = "normal"; + } else if (Sprite == GD.Load(BerryTexturesFolder + "UltraBerry.png")) { + BerryType = "ultra"; + } + + int ScoreAdder = (BerryType == "normal") ? 1 : 5; + Globals.Score += ScoreAdder; if (Globals.Score > Globals.HighScore) { - Globals.HighScore += 1; + Globals.HighScore += ScoreAdder; } QueueFree();