mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-29 16:54:56 +02:00
Fix offline savegames not reset when quit new game
This commit is contained in:
parent
2689467a7c
commit
b02542ff67
@ -2098,87 +2098,85 @@
|
|||||||
Public Sub Unload()
|
Public Sub Unload()
|
||||||
'This function clears all data from the loaded player and restores the default values.
|
'This function clears all data from the loaded player and restores the default values.
|
||||||
|
|
||||||
If loadedSave = True Then
|
'Clearning lists:
|
||||||
'Clearning lists:
|
Pokemons.Clear()
|
||||||
Pokemons.Clear()
|
Pokedexes.Clear()
|
||||||
Pokedexes.Clear()
|
Inventory.Clear()
|
||||||
Inventory.Clear()
|
Badges.Clear()
|
||||||
Badges.Clear()
|
PokeFiles.Clear()
|
||||||
PokeFiles.Clear()
|
EarnedAchievements.Clear()
|
||||||
EarnedAchievements.Clear()
|
PokegearModules.Clear()
|
||||||
PokegearModules.Clear()
|
PhoneContacts.Clear()
|
||||||
PhoneContacts.Clear()
|
Mails.Clear()
|
||||||
Mails.Clear()
|
Trophies.Clear()
|
||||||
Trophies.Clear()
|
|
||||||
|
|
||||||
'Restore default values:
|
'Restore default values:
|
||||||
Name = "<playername>"
|
Name = "<playername>"
|
||||||
RivalName = ""
|
RivalName = ""
|
||||||
RivalSkin = ""
|
RivalSkin = ""
|
||||||
Money = 0
|
Money = 0
|
||||||
PlayTime = TimeSpan.Zero
|
PlayTime = TimeSpan.Zero
|
||||||
GameStart = Date.Now
|
GameStart = Date.Now
|
||||||
OT = "00000"
|
OT = "00000"
|
||||||
Points = 0
|
Points = 0
|
||||||
BP = 0
|
BP = 0
|
||||||
Coins = 0
|
Coins = 0
|
||||||
HasPokedex = False
|
HasPokedex = False
|
||||||
HasPokegear = False
|
HasPokegear = False
|
||||||
ShowBattleAnimations = 1
|
ShowBattleAnimations = 1
|
||||||
BoxAmount = 10
|
BoxAmount = 10
|
||||||
LastRestPlace = "yourroom.dat"
|
LastRestPlace = "yourroom.dat"
|
||||||
LastRestPlacePosition = "1,0.1,3"
|
LastRestPlacePosition = "1,0.1,3"
|
||||||
LastSavePlace = "yourroom.dat"
|
LastSavePlace = "yourroom.dat"
|
||||||
LastSavePlacePosition = "1,0.1,3"
|
LastSavePlacePosition = "1,0.1,3"
|
||||||
DiagonalMovement = False
|
DiagonalMovement = False
|
||||||
RepelSteps = 0
|
RepelSteps = 0
|
||||||
DifficultyMode = 0
|
DifficultyMode = 0
|
||||||
BattleStyle = 1
|
BattleStyle = 1
|
||||||
ShowModelsInBattle = True
|
ShowModelsInBattle = True
|
||||||
SaveCreated = "Pre 0.21"
|
SaveCreated = "Pre 0.21"
|
||||||
LastPokemonPosition = New Vector3(999)
|
LastPokemonPosition = New Vector3(999)
|
||||||
DaycareSteps = 0
|
DaycareSteps = 0
|
||||||
GameMode = "Kolben"
|
GameMode = "Kolben"
|
||||||
VisitedMaps = ""
|
VisitedMaps = ""
|
||||||
TempSurfSkin = "Hilbert"
|
TempSurfSkin = "Hilbert"
|
||||||
TempRideSkin = ""
|
TempRideSkin = ""
|
||||||
GTSStars = 8
|
GTSStars = 8
|
||||||
SandBoxMode = False
|
SandBoxMode = False
|
||||||
Statistics = ""
|
Statistics = ""
|
||||||
startPosition = New Vector3(14, 0.1, 10)
|
startPosition = New Vector3(14, 0.1, 10)
|
||||||
startRotation = 0
|
startRotation = 0
|
||||||
startFreeCameraMode = False
|
startFreeCameraMode = False
|
||||||
startMap = "barktown.dat"
|
startMap = "barktown.dat"
|
||||||
startFOV = 45.0F
|
startFOV = 45.0F
|
||||||
startRotationSpeed = 12
|
startRotationSpeed = 12
|
||||||
startThirdPerson = False
|
startThirdPerson = False
|
||||||
startSurfing = False
|
startSurfing = False
|
||||||
startRiding = False
|
startRiding = False
|
||||||
Skin = "Hilbert"
|
Skin = "Hilbert"
|
||||||
|
|
||||||
'Clear temp save data:
|
'Clear temp save data:
|
||||||
RegisterData = ""
|
RegisterData = ""
|
||||||
BerryData = ""
|
BerryData = ""
|
||||||
PokedexData = ""
|
PokedexData = ""
|
||||||
ItemData = ""
|
ItemData = ""
|
||||||
BoxData = ""
|
BoxData = ""
|
||||||
NPCData = ""
|
NPCData = ""
|
||||||
ApricornData = ""
|
ApricornData = ""
|
||||||
SecretBaseData = ""
|
SecretBaseData = ""
|
||||||
DaycareData = ""
|
DaycareData = ""
|
||||||
HallOfFameData = ""
|
HallOfFameData = ""
|
||||||
RoamingPokemonData = ""
|
RoamingPokemonData = ""
|
||||||
|
|
||||||
filePrefix = "nilllzz"
|
filePrefix = "nilllzz"
|
||||||
newFilePrefix = ""
|
newFilePrefix = ""
|
||||||
AutosaveUsed = False
|
AutosaveUsed = False
|
||||||
loadedSave = False
|
loadedSave = False
|
||||||
|
|
||||||
IsGameJoltSave = False
|
IsGameJoltSave = False
|
||||||
EmblemBackground = "standard"
|
EmblemBackground = "standard"
|
||||||
|
|
||||||
ResetNewLevel()
|
ResetNewLevel()
|
||||||
End If
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
End Class
|
End Class
|
Loading…
x
Reference in New Issue
Block a user