From fe296952a4210d0429255058e9b38d26b97d6d7e Mon Sep 17 00:00:00 2001 From: Noah Pilarski Date: Wed, 31 Aug 2022 11:28:52 -0400 Subject: [PATCH] Start new achievements --- NewHorizons/Assets/translations/english.json | 12 ++++++++++ .../AchievementsPlus/AchievementHandler.cs | 3 +++ .../AchievementsPlus/NH/RaftingAchievement.cs | 23 +++++++++++++++++++ .../NH/SuckedIntoLavaByTornadoAchievement.cs | 23 +++++++++++++++++++ .../NH/TalkToFiveCharactersAchievement.cs | 23 +++++++++++++++++++ 5 files changed, 84 insertions(+) create mode 100644 NewHorizons/OtherMods/AchievementsPlus/NH/RaftingAchievement.cs create mode 100644 NewHorizons/OtherMods/AchievementsPlus/NH/SuckedIntoLavaByTornadoAchievement.cs create mode 100644 NewHorizons/OtherMods/AchievementsPlus/NH/TalkToFiveCharactersAchievement.cs diff --git a/NewHorizons/Assets/translations/english.json b/NewHorizons/Assets/translations/english.json index b7aae651..753d2dc5 100644 --- a/NewHorizons/Assets/translations/english.json +++ b/NewHorizons/Assets/translations/english.json @@ -40,6 +40,18 @@ "NH_VESSEL_WARP": { "Name": "Lore Accurate", "Description": "Warp to a star system using the Vessel." + }, + "NH_RAFTING": { + "Name": "The Raft and the Furious", + "Description": "Go rafting." + }, + "NH_SUCKED_INTO_LAVA_BY_TORNADO": { + "Name": "Placeholder", + "Description": "Get sucked into lava by a tornado." + }, + "NH_TALK_TO_FIVE_CHARACTERS": { + "Name": "Placeholder", + "Description": "Talk to 5 characters." } } } diff --git a/NewHorizons/OtherMods/AchievementsPlus/AchievementHandler.cs b/NewHorizons/OtherMods/AchievementsPlus/AchievementHandler.cs index 32942654..bf6ada93 100644 --- a/NewHorizons/OtherMods/AchievementsPlus/AchievementHandler.cs +++ b/NewHorizons/OtherMods/AchievementsPlus/AchievementHandler.cs @@ -39,6 +39,9 @@ namespace NewHorizons.OtherMods.AchievementsPlus NH.EatenOutsideBrambleAchievement.Init(); NH.NewFrequencyAchievement.Init(); NH.ProbeLostAchievement.Init(); + NH.RaftingAchievement.Init(); + NH.TalkToFiveCharactersAchievement.Init(); + NH.SuckedIntoLavaByTornadoAchievement.Init(); API.RegisterTranslationsFromFiles(Main.Instance, "Assets/translations"); diff --git a/NewHorizons/OtherMods/AchievementsPlus/NH/RaftingAchievement.cs b/NewHorizons/OtherMods/AchievementsPlus/NH/RaftingAchievement.cs new file mode 100644 index 00000000..0ed6249a --- /dev/null +++ b/NewHorizons/OtherMods/AchievementsPlus/NH/RaftingAchievement.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace NewHorizons.OtherMods.AchievementsPlus.NH +{ + public static class RaftingAchievement + { + public static readonly string UNIQUE_ID = "NH_RAFTING"; + + public static void Init() + { + AchievementHandler.Register(UNIQUE_ID, false, Main.Instance); + } + + public static void Earn() + { + AchievementHandler.Earn(UNIQUE_ID); + } + } +} diff --git a/NewHorizons/OtherMods/AchievementsPlus/NH/SuckedIntoLavaByTornadoAchievement.cs b/NewHorizons/OtherMods/AchievementsPlus/NH/SuckedIntoLavaByTornadoAchievement.cs new file mode 100644 index 00000000..3d0d1efd --- /dev/null +++ b/NewHorizons/OtherMods/AchievementsPlus/NH/SuckedIntoLavaByTornadoAchievement.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace NewHorizons.OtherMods.AchievementsPlus.NH +{ + public static class SuckedIntoLavaByTornadoAchievement + { + public static readonly string UNIQUE_ID = "NH_SUCKED_INTO_LAVA_BY_TORNADO"; + + public static void Init() + { + AchievementHandler.Register(UNIQUE_ID, false, Main.Instance); + } + + public static void Earn() + { + AchievementHandler.Earn(UNIQUE_ID); + } + } +} diff --git a/NewHorizons/OtherMods/AchievementsPlus/NH/TalkToFiveCharactersAchievement.cs b/NewHorizons/OtherMods/AchievementsPlus/NH/TalkToFiveCharactersAchievement.cs new file mode 100644 index 00000000..4a59cc24 --- /dev/null +++ b/NewHorizons/OtherMods/AchievementsPlus/NH/TalkToFiveCharactersAchievement.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace NewHorizons.OtherMods.AchievementsPlus.NH +{ + public static class TalkToFiveCharactersAchievement + { + public static readonly string UNIQUE_ID = "NH_TALK_TO_FIVE_CHARACTERS"; + + public static void Init() + { + AchievementHandler.Register(UNIQUE_ID, false, Main.Instance); + } + + public static void Earn() + { + AchievementHandler.Earn(UNIQUE_ID); + } + } +}