Skip to content

Commit

Permalink
Add support for v0.3.0 achievements
Browse files Browse the repository at this point in the history
  • Loading branch information
TalkTakesTime committed Mar 3, 2022
1 parent 9633dd0 commit 25b527c
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 5 deletions.
Binary file added Images/DefeatBossPlant.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/EvolveSongOfMana.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/FindCoffinStage3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/FindMilkyWayMap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/ReachLV40InLibrary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/Survive15MinutesWithSong.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions LiveSplit.VampireSurvivors.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,12 @@
<EmbeddedResource Include="Images\Defeat3000Buers.png" />
<EmbeddedResource Include="Images\Survive20MinutesWithCurse.png" />
<EmbeddedResource Include="Images\Survive30MinutesWithAxe.png" />
<EmbeddedResource Include="Images\DefeatBossPlant.png" />
<EmbeddedResource Include="Images\EvolveSongOfMana.png" />
<EmbeddedResource Include="Images\FindCoffinStage3.png" />
<EmbeddedResource Include="Images\FindMilkyWayMap.png" />
<EmbeddedResource Include="Images\ReachLV40InLibrary.png" />
<EmbeddedResource Include="Images\Survive15MinutesWithSong.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Expand Down
24 changes: 24 additions & 0 deletions Model/SaveData/Achievement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public enum Achievement {
[Description("Reach Level 20 in Mad Forest.")]
ReachLV20InMadForest,

[Description("Reach Level 40 in Inlaid Library.")]
[FromVersion("0.3.0")]
ReachLV40InLibrary,

[Description("Reach Level 100 with Mortaccio.")]
[FromVersion("0.2.12")]
ReachLV100WithMortaccio,
Expand All @@ -49,6 +53,10 @@ public enum Achievement {
[Description("Survive 10 minutes with any character.")]
Survive10Minutes,

[Description("Survive 15 minutes with Poppea.")]
[FromVersion("0.3.0")]
Survive15MinutesWithSong,

[Description("Survive 20 minutes with any character.")]
Survive20Minutes,

Expand Down Expand Up @@ -121,6 +129,14 @@ public enum Achievement {
[Description("Find a Stone Mask.")]
FindAStoneMask,

[Description("Find the Milky Way Map.")]
[FromVersion("0.3.0")]
FindMilkyWayMap,

[Description("Find and open the coffin in the Dairy Plant.")]
[FromVersion("0.3.0")]
FindCoffinStage3,

[Description("Defeat a total of 3000 Skeletons.")]
Defeat3000Skeletons,

Expand All @@ -140,6 +156,10 @@ public enum Achievement {
[Description("Defeat the Nesuferit in the Inlaid Library.")]
DefeatBossLibrary,

[Description("Defeat the Sword Guardian in the Dairy Plant.")]
[FromVersion("0.3.0")]
DefeatBossPlant,

[Description("Unlock Hyper mode for 2 stages.")]
Unlock2Hypers,

Expand Down Expand Up @@ -174,6 +194,10 @@ public enum Achievement {
[Description("Evolve the Garlic.")]
EvolveGarlic,

[Description("Evolve the Song Of Mana.")]
[FromVersion("0.3.0")]
EvolveSongOfMana,

[Description("Unite Ebony Wings and Peachone.")]
UniteBirds,

Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.3.0.0")]
[assembly: AssemblyFileVersion("0.3.0.0")]
[assembly: AssemblyVersion("0.4.0.0")]
[assembly: AssemblyFileVersion("0.4.0.0")]
[assembly: ComponentFactory(typeof(VampireSurvivorsFactory))]
6 changes: 3 additions & 3 deletions UI/Components/VampireSurvivorsFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ namespace LiveSplit.UI.Components {
public class VampireSurvivorsFactory : IComponentFactory {
public string ComponentName => "Vampire Survivors Tracker";
public string Description => "Displays achievements obtained so far in the current Vampire Survivors run.";

public Version Version => Assembly.GetExecutingAssembly().GetName().Version;
public ComponentCategory Category => ComponentCategory.Information;

public string UpdateName => ComponentName;
public string UpdateURL => "";
public string XMLURL => UpdateURL + "";

public IComponent Create(LiveSplitState state) => new VampireSurvivorsComponent(state);
}
}

0 comments on commit 25b527c

Please sign in to comment.