Skip to content

Commit

Permalink
Don't delete some legacy servuo items
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczy93 committed Jan 13, 2025
1 parent 08189d9 commit a8039e3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Scripts/Nelderim/Commands/ServUOSave.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ public static class ServUoSave
{
private static readonly List<Type> itemsToDelete = new List<Type>
{
typeof(DesCityWallEast), typeof(DesCityWallSouth), typeof(kolczanwstyluzachodnim),
typeof(kolczanwstylupolnocnym), typeof(PowerHourScroll), typeof(TrashBarrel), typeof(FishingPole),
typeof(RewardScroll), typeof(SheafOfHay), typeof(ArcaneFocus), typeof(SmallHunterBOD),
typeof(DesCityWallEast), typeof(DesCityWallSouth), typeof(PowerHourScroll), typeof(TrashBarrel),
typeof(FishingPole), typeof(RewardScroll), typeof(SheafOfHay), typeof(ArcaneFocus), typeof(SmallHunterBOD),
typeof(LargeHunterBOD), typeof(Aquarium), typeof(HuntingBulkOrderBook), typeof(ZakrwawioneBandaze),
typeof(PowderForMetal), typeof(PowderForLeather), typeof(PowderForTinkering), typeof(PowderForWood),
typeof(GoldenWool), typeof(SiegeComponent), typeof(FieryCannonball), typeof(SiegeCannon),
typeof(MageSpellbook), typeof(NecroSpellbook), typeof(ChivalrySpellbook), typeof(MaabusCoffinComponent),
typeof(IronSiegeLog), typeof(ExplodingCannonball), typeof(SiegeRam), typeof(HeavySiegeLog),
Expand All @@ -46,7 +44,7 @@ public static class ServUoSave
typeof(ChaosGuard), typeof(XmlQuestNPCChlop), typeof(DeadlyImp), typeof(XmlQuestNPCFuglus),
typeof(XmlQuestNPCPijak), typeof(EscortableMage), typeof(Noble), typeof(DrowAnimalTrainer),
typeof(EvolutionDragon), typeof(EvolutionDragon2), typeof(EvolutionDragon3), typeof(EvolutionDragon4),
typeof(EvolutionDragon5), typeof(FerelTreefellow)
typeof(EvolutionDragon5), typeof(FerelTreefellow), typeof(Swoop), typeof(NBurugh)
};

public static void Initialize()
Expand Down Expand Up @@ -104,7 +102,8 @@ private static void ServUoSave_Command(CommandEventArgs e)
{
Misc.AutoSave.Save();
File.Delete("Servuo/Saves/Nelderim/Gains.sav");
File.Move("Servuo/Saves/Nelderim/Speech.sav", "Servuo/Saves/Nelderim/Languages.sav");
if(!File.Exists("Servuo/Saves/Nelderim/Languages.sav"))
File.Move("Servuo/Saves/Nelderim/Speech.sav", "Servuo/Saves/Nelderim/Languages.sav");
}
finally
{
Expand Down

0 comments on commit a8039e3

Please sign in to comment.