Fixed my retardation
I was using > instead of >= here for some reason
This commit is contained in:
1 parent
34380b2370
commit
0fb849e878
1 file changed
+3
-3
@@ -33,10 +33,10 @@ public partial class BerryLogic : Node2D {
|
|||||||
(BerryType == "ultra") ? 5 :
|
(BerryType == "ultra") ? 5 :
|
||||||
(BerryType == "speedy") ? 10 : 0;
|
(BerryType == "speedy") ? 10 : 0;
|
||||||
|
|
||||||
Globals.Score += ScoreAdder;
|
if (Globals.Score >= Globals.HighScore) {
|
||||||
if (Globals.Score > Globals.HighScore) {
|
Globals.HighScore = Globals.Score + ScoreAdder;
|
||||||
Globals.HighScore += ScoreAdder;
|
|
||||||
}
|
}
|
||||||
|
Globals.Score += ScoreAdder;
|
||||||
|
|
||||||
if (BerryType == "normal") {
|
if (BerryType == "normal") {
|
||||||
PlaySound("res://Audio/SFX/Eat.mp3", 80f);
|
PlaySound("res://Audio/SFX/Eat.mp3", 80f);
|
||||||
|
|||||||
Reference in new issue
Block a user