Don't add default berrydata on custom gamemodes

This commit is contained in:
JappaWakka 2025-04-20 18:21:55 +02:00
parent 2620084c76
commit 3318e02c67

View File

@ -448,12 +448,15 @@
Dim Berries() As String = System.IO.File.ReadAllLines(GameModeManager.GetContentFilePath("Data\BerryData.dat")) Dim Berries() As String = System.IO.File.ReadAllLines(GameModeManager.GetContentFilePath("Data\BerryData.dat"))
For i = 0 To Berries.Count - 1 For i = 0 To Berries.Count - 1
If Berries(i) <> "" Then
s &= Berries(i) s &= Berries(i)
If i < Berries.Count - 1 Then If i < Berries.Count - 1 Then
s &= Environment.NewLine s &= Environment.NewLine
End If End If
End If
Next Next
Else Else
If GameModeManager.ActiveGameMode.IsDefaultGamemode = True Then
s = "{route29.dat|13,0,5|6|2|0|2012,9,21,4,0,0|1}" & Environment.NewLine & s = "{route29.dat|13,0,5|6|2|0|2012,9,21,4,0,0|1}" & Environment.NewLine &
"{route29.dat|14,0,5|6|2|0|2012,9,21,4,0,0|1}" & Environment.NewLine & "{route29.dat|14,0,5|6|2|0|2012,9,21,4,0,0|1}" & Environment.NewLine &
"{route29.dat|15,0,5|6|2|0|2012,9,21,4,0,0|1}" & Environment.NewLine & "{route29.dat|15,0,5|6|2|0|2012,9,21,4,0,0|1}" & Environment.NewLine &
@ -481,6 +484,7 @@
"{safarizone\main.dat|4,0,11|0|2|0|2012,9,21,4,0,0|1}" & Environment.NewLine & "{safarizone\main.dat|4,0,11|0|2|0|2012,9,21,4,0,0|1}" & Environment.NewLine &
"{safarizone\main.dat|5,0,11|6|3|0|2012,9,21,4,0,0|1}" "{safarizone\main.dat|5,0,11|6|3|0|2012,9,21,4,0,0|1}"
End If End If
End If
Return s Return s
End Function End Function