diff --git a/.vs/CharmMod/DesignTimeBuild/.dtbcache.v2 b/.vs/CharmMod/DesignTimeBuild/.dtbcache.v2 index d6ac669..539e56f 100644 Binary files a/.vs/CharmMod/DesignTimeBuild/.dtbcache.v2 and b/.vs/CharmMod/DesignTimeBuild/.dtbcache.v2 differ diff --git a/.vs/CharmMod/FileContentIndex/0047d2df-52bd-4256-81ef-d0e132042627.vsidx b/.vs/CharmMod/FileContentIndex/0047d2df-52bd-4256-81ef-d0e132042627.vsidx deleted file mode 100644 index e799150..0000000 Binary files a/.vs/CharmMod/FileContentIndex/0047d2df-52bd-4256-81ef-d0e132042627.vsidx and /dev/null differ diff --git a/.vs/CharmMod/FileContentIndex/271eb246-b677-4ef4-ae87-0c858c8c9551.vsidx b/.vs/CharmMod/FileContentIndex/3608aab9-35d8-4a03-94a0-c178f1010e38.vsidx similarity index 53% rename from .vs/CharmMod/FileContentIndex/271eb246-b677-4ef4-ae87-0c858c8c9551.vsidx rename to .vs/CharmMod/FileContentIndex/3608aab9-35d8-4a03-94a0-c178f1010e38.vsidx index 06afb2d..f198880 100644 Binary files a/.vs/CharmMod/FileContentIndex/271eb246-b677-4ef4-ae87-0c858c8c9551.vsidx and b/.vs/CharmMod/FileContentIndex/3608aab9-35d8-4a03-94a0-c178f1010e38.vsidx differ diff --git a/.vs/CharmMod/FileContentIndex/41eae487-52af-4f8d-a352-a7bd8087bbf1.vsidx b/.vs/CharmMod/FileContentIndex/41eae487-52af-4f8d-a352-a7bd8087bbf1.vsidx new file mode 100644 index 0000000..738acb2 Binary files /dev/null and b/.vs/CharmMod/FileContentIndex/41eae487-52af-4f8d-a352-a7bd8087bbf1.vsidx differ diff --git a/.vs/CharmMod/FileContentIndex/580c7c8d-d194-4d1b-b50a-6293a3611a09.vsidx b/.vs/CharmMod/FileContentIndex/580c7c8d-d194-4d1b-b50a-6293a3611a09.vsidx new file mode 100644 index 0000000..29f54a4 Binary files /dev/null and b/.vs/CharmMod/FileContentIndex/580c7c8d-d194-4d1b-b50a-6293a3611a09.vsidx differ diff --git a/.vs/CharmMod/FileContentIndex/6a969caf-04b5-4b00-a82c-1244cb6e55a9.vsidx b/.vs/CharmMod/FileContentIndex/6a969caf-04b5-4b00-a82c-1244cb6e55a9.vsidx deleted file mode 100644 index 8aebe1e..0000000 Binary files a/.vs/CharmMod/FileContentIndex/6a969caf-04b5-4b00-a82c-1244cb6e55a9.vsidx and /dev/null differ diff --git a/.vs/CharmMod/FileContentIndex/f269baef-54fd-4f19-b3d4-64ec3ef337c6.vsidx b/.vs/CharmMod/FileContentIndex/b55807a5-44c5-4825-a77b-093845d66dd6.vsidx similarity index 56% rename from .vs/CharmMod/FileContentIndex/f269baef-54fd-4f19-b3d4-64ec3ef337c6.vsidx rename to .vs/CharmMod/FileContentIndex/b55807a5-44c5-4825-a77b-093845d66dd6.vsidx index 31039e8..893c7d7 100644 Binary files a/.vs/CharmMod/FileContentIndex/f269baef-54fd-4f19-b3d4-64ec3ef337c6.vsidx and b/.vs/CharmMod/FileContentIndex/b55807a5-44c5-4825-a77b-093845d66dd6.vsidx differ diff --git a/.vs/CharmMod/v17/.futdcache.v2 b/.vs/CharmMod/v17/.futdcache.v2 index baa49bf..ac18fa1 100644 Binary files a/.vs/CharmMod/v17/.futdcache.v2 and b/.vs/CharmMod/v17/.futdcache.v2 differ diff --git a/.vs/CharmMod/v17/.suo b/.vs/CharmMod/v17/.suo index 6447d40..36ade80 100644 Binary files a/.vs/CharmMod/v17/.suo and b/.vs/CharmMod/v17/.suo differ diff --git a/.vs/ProjectEvaluation/charmmod.metadata.v5.1 b/.vs/ProjectEvaluation/charmmod.metadata.v5.1 index 3dbc4fd..10e80cd 100644 Binary files a/.vs/ProjectEvaluation/charmmod.metadata.v5.1 and b/.vs/ProjectEvaluation/charmmod.metadata.v5.1 differ diff --git a/.vs/ProjectEvaluation/charmmod.projects.v5.1 b/.vs/ProjectEvaluation/charmmod.projects.v5.1 index 1da0dca..51a7a45 100644 Binary files a/.vs/ProjectEvaluation/charmmod.projects.v5.1 and b/.vs/ProjectEvaluation/charmmod.projects.v5.1 differ diff --git a/CharmMod.cs b/CharmMod.cs index 211b268..8de808e 100644 --- a/CharmMod.cs +++ b/CharmMod.cs @@ -6,15 +6,16 @@ global using SFCore; global using System.Collections.Generic; global using System.Linq; -using ItemChanger; -using ItemChanger.Tags; -using ItemChanger.UIDefs; -using Satchel.BetterMenus; -using GlobalEnums; -using ItemChanger.Internal; -using ItemChanger.Modules; -using UnityEngine.SceneManagement; -using static Fyrenest.Fyrenest; +global using ItemChanger; +global using ItemChanger.Tags; +global using ItemChanger.UIDefs; +global using Satchel.BetterMenus; +global using GlobalEnums; +global using ItemChanger.Internal; +global using ItemChanger.Modules; +global using UnityEngine.SceneManagement; +global using System.Net; +global using static Fyrenest.Fyrenest; namespace Fyrenest { @@ -455,354 +456,12 @@ public static MenuButton NavigateToMenu(string name, string description, FuncNo, I am not speaking to you, little knight....I remember... ...those proud lords, were they truly monsters? Their eyes, bright and clear. Why, why did I fear them so? They were going to help......it was I who brought the madness......No, not I. You, the voice... ...I remember now... ...But finally, you have stopped, you cruel voice......Who are you? Whose voice wonders through my mind?......How?..."; - } - - if (key == "DISTANT_VILLAGE" && sheetTitle == "Map Zones") - { - return "Herrah's Den"; - } - - if (key == "BONE_FOREST" && sheetTitle == "Map Zones") - { - return "Bone Forest"; - } - - if (key == "TEST_AREA" && sheetTitle == "Map Zones") - { - return "Test area, please tell me where this is. Ping me @BubkisLord#5187 (discord)"; - } - - if (key == "DREAM_WORLD" && sheetTitle == "Map Zones") - { - return "Dream World"; - } - - if (key == "ELDERBUG_FLOWER" && sheetTitle == "Prompts") - { - return "Give the Elderbug a flower for literal no reason?"; - } - - if (key == "CARD" && sheetTitle == "Cornifer") - { - return "Hi there, it's me! Conifer. Clearly, I have left, but you can come at see me or Pine at dirtmouth!"; - } - - if (key == "ELDERBUG_INTRO_VISITEDCROSSROAD" && sheetTitle == "Elderbug") - { - return "WHAT WAS THAT? THE ONLY VISITOR FOR YEARS JUST WALKS PAST ME?Okay, look. I haven't talked to someone in so long. I just want to talk. Well, consider it forgotten. No point in keeping grudges!"; - } - - if (key == "ELDERBUG_DREAM" && sheetTitle == "Elderbug") - { - return "Hello? Is someone there?Who is that? Aah! What was that? That feeling......Like the cold, terrifying embrace of death..."; - } - - if (key == "BELIEVE_TAB_50" && sheetTitle == "Backer Messages") - { - return "Good job on completing the game with Fyrenest on! What should I update? What new features would you like to see next? What could I improve on? Tell me on the Discord Hollow Knight Modding Server!"; - } - - if (key == "BANKER_DREAM_SPA" && sheetTitle == "Banker") - { - return "Ahh! Leave me be, you stout little knight! What grossness!"; - } - - if (key == "BANKER_DEPOSIT" && sheetTitle == "Banker") - { - return "Thank you! I will keep your hard earned geo safe! Hee hee heeeee!"; - } - - if (key == "BANKER_BALANCE_ZERO_REPEAT" && sheetTitle == "Banker") - { - return "Please! Please don't hurt me! I have no geo left!"; - } - - if (key == "BANKER_SPA_REPEAT" && sheetTitle == "Banker") - { - return "We're still friends right? Remember all those great times together! All the banking!"; - } - if (key == "CP2" && sheetTitle == "GRIMMSYCOPHANT_INSPECT") - { - return "...Raw energy... ...The troupe...Why?"; - } - if (key == "CP2" && sheetTitle == "GRIMMSYCOPHANT_DREAM") - { - return "...I founded the troupe... ...Destroyed kingdoms... ...For Grimm..."; - } - if (key == "CROSSROADS_SUB" && sheetTitle == "Titles") - { - return "Of Flame"; - } - if (key == "CROSSROADS_SUB_INF" && sheetTitle == "Titles") - { - return "Of Flame"; - } - if (key == "CORNIFER_SUB" && sheetTitle == "Titles") - { - return "The Adventurer"; - } - if (orig.Contains("Hollow Knight")) - { - return orig.Replace("Hollow Knight", "Infected Vessel"); - } - if (orig.Contains("Pure Vessel")) - { - return orig.Replace("Pure Vessel", "Hollow Vessel"); - } - if (orig.Contains("The Fading Town")) - { - return orig.Replace("The Fading Town", "The Realm of The Old One"); - } - if (orig.Contains("Elderbug")) - { - return orig.Replace("Elderbug", "The Old One"); - } - if (orig.Contains("Dirtmouth")) - { - return orig.Replace("Dirtmouth", "Fyrecamp"); - } - if (orig.Contains("Deepnest")) - { - return orig.Replace("Deepnest", "Deepfyre"); - } - if (orig.Contains("Iselda")) - { - return orig.Replace("Iselda", "Pine"); - } - if (orig.Contains("Cornifer")) - { - return orig.Replace("Conifer", "Conifer"); - } - if (orig.Contains("Hallownest")) - { - return orig.Replace("Hallownest", "Fyrenest"); - } - if (orig.Contains("Howling Cliffs")) - { - return orig.Replace("Howling Cliffs", "Inferno's Peak"); - } - if (orig.Contains("Fungal Wastes")) - { - return orig.Replace("Fungal Wastes", "Defiled Wastelands"); - } - if (orig.Contains("Kingdom's Edge")) - { - return orig.Replace("Kingdom's Edge", "Fyre's Edge"); - } - if (orig.Contains("Ancient Basin")) - { - return orig.Replace("Ancient Basin", "Void Basin"); - } - if (orig.Contains("Abyss")) - { - return orig.Replace("Abyss", "Pit"); - } - if (orig.Contains("Resting Grounds")) - { - return orig.Replace("Resting Grounds", "Spirit Sanctuary"); - } - if (orig.Contains("Crystal Peak")) - { - return orig.Replace("Crystal Peak", "Crystalline Mountain"); - } - if (orig.Contains("City of Tears")) - { - return orig.Replace("City of Tears", "City of Flame"); - } - if (SlyDeal.instance.Equipped() && sheetTitle == "Prices") - { - try - { - float numOrig = float.Parse(orig); - numOrig /= 1.5f; - orig = numOrig.ToString(); - return orig; - } - catch (Exception) - { - return orig; - } - } - if (ZoteBorn.instance.Equipped() && sheetTitle == "Prices") - { - return "10000"; - } - if (SlyDeal.instance.Equipped() && sheetTitle == "Elderbug") - { - return "I don't think I can speak to you right now. There is a disgusting whiff of something coming by..."; - } - if (SlyDeal.instance.Equipped() && sheetTitle == "Iselda") - { - return "Ugh... Please, leave.. The smell!Just buy something. Or don't. Please leave the shop."; - } - if (SlyDeal.instance.Equipped() && sheetTitle == "Enemy Dreams") - { - return "...That stench... ...disgusting..."; - } - if (SlyDeal.instance.Equipped() && sheetTitle == "Sly") - { - return "I see you are wearing that charm I gave you... Not near me please."; - } - if (SlyDeal.instance.Equipped() && sheetTitle == "Cornifer") - { - return "You can have a map! Have everything! But get me away from that stench!"; - } - if (sheetTitle == "Lore Tablets" && key == "WISHING_WELL_INSPECT") - { - return "A true follower of the Pale King gives all they own for the kingdom."; - } - if (sheetTitle == "Lore Tablets" && key == "TUT_TAB_02") - { - return "For those who enter Fyrenest from the far lands of Hallownest and The Glimmering Realm, note this. Beyond this point you enter the land of the light. Step across this threshold and obey our laws. Bear witness to one of the last civilisations, one of the eternal Kingdoms.\n\nFyrenest."; - } - if (sheetTitle == "Lore Tablets" && key == "RANDOM_POEM_STUFF") - { - return "Fyrenest is great.\nThe very last great kingdom.\nFyrenest rules all.\n - Haiku by Monomon the Teacher."; - } - if (sheetTitle == "Lore Tablets" && key == "RUINS_FOUNTAIN") - { - return "Memorial to the Hollow Vessel.\n\nIn its vault far above, stopping the death.\n\nThrough its sacrifice Fyrenest will last eternal."; - } - if (sheetTitle == "Cornifer" && key == "FUNGAL_WASTES_GREET") - { - return "Ahh my short friend, you've caught me at the perfect time. I'm impressed that you have got this far! I'm just about finished charting these noxious caverns. Very territorial types make their homes within this area. I'd suggest avoiding this place. I don't think it would be very safe for a fragile little one like you. I have heard of a group of deadly warriors, they seemed an intelligent bunch. I wouldn't go down there if I were you."; - } - if (sheetTitle == "Cornifer" && key == "GREENPATH_GREET") - { - return "Oh, hello there! I didn't think you would be here! You are surely having someone's help traversing this path... Surely, someone of your small stature couldn't get around like this! Buy a map, it will help you to get back to Fyrecamp. You are clearly lost for some reason."; - } - if (sheetTitle == "Cornifer" && key == "MINES_GREET") - { - return "Hello, my short little friend! What a suprise finding you here! Have you come to scale the mountains? I'm afraid you are much to pathetic to do that. Here, buy a map instead! It might help you find a way out."; - } - if (sheetTitle == "Cornifer" && key == "CROSSROADS_GREET") - { - return "Hello again! Still winding your way through these twisting highways? Just imagine how they must have looked during the kingdom's prime, thick with traffic and bustling with life! I wish I could have seen it. Oh, it is a shame that our old king is gone... Would you like to buy a map of the area to help you get out safely? You don't seem the adventurous type."; - } - if (sheetTitle == "Cornifer" && key == "CLIFFS_GREET") - { - return "Are you enjoying the bracing air? I doubt you have experienced something like this before, since you are always scrounging around underground, looking for geo like a hermit. Anyway, we are quite close to the borders of Fyrenest, and the desolate plains that surround it. I have heard that these plains make bugs go mad... Seeking escape, only to find lost memories and distant towns. I have heard of a place far away, where our king went when he left us. A place called Hallownest, a distant kingdom never to be found... I had a brother named Cornifer, he left in search of that horrid place... I dread what has happened to him... But, lingering on the past doesn't accomplish anything. I've drawn out a small map for the area, although simple, it is helpful nonetheless. Not knowing the full extents of a region can be quite frustrating."; - } - if (orig.ToLower().Contains("the world of infected vessel")) - { - return orig.Replace("Infected Vessel", "Hollow Knight"); - } - if (key == "WITCH_REWARD_8A") - { - return "Yes. The time has come.The Dream Nail... And you as well, Wielder. It is time for you both to awaken.The Essence you have collected... Finally, I will be able to re-enact the second stage of my plan. Pure potential! Let the power course through you and into the Dream Nail!Hold it aloft, Wielder!AWAKEN!"; - } - if (key == "WITCH_FINAL_1") - { - return "So much Essence... Finally. So bright! I will be able to retake this land.You see, the folk of my tribe were born from a light. Light similar to Essence, similar to that powerful blade, though much brighter still.They were content to bask in that light and honoured it. Worshipped it. For a time...
But we lost our way. Forgot our traditions...But another light appeared in our world... A wyrm that took the form of a king. He was born here, from the remanents of Fyrenest's essence and light. Fyrenest's power was forever destroyed, absorbed by a narcissistic king.How fickle my ancestors must have been. They forsook the light that spawned them. Turned their backs to it... Forgot it even.I have rectified their mistakes. I will ascend to a might never seen before. All those champions you slew, all those warriors you killed, I have been harvesting their power. Did you see the prison I set their spirits in? A eternal fighting ring.You have been collecting essence since you came here. Going out and fetching more for me. Now I have enough to ascend. Ascension is my final goal. You see, I am the light! I am the blinding radiance Fyrenest needs! Everyone will worship me for the end of time.No one shall forget me. No one shall lose their way. I will be their god! Their ruler!"; - } - if (key == "WITCH_FINAL_3") - { - return "IT IS HAPPENING!\nI AM ASCENDING!SO BRIGHT!I SEE THE LIGHT! THE RADIANCE!ME."; - } - if (key == "WITCH_MEET_A") - { - return "Ah, welcome back to the waking world. Those Dreamers. They inhabit every civilisation wherever you go. They are nothing, just ignore them."; - } - if (key == "WITCH_REWARD_5") - { - return "So, you already have 700 Essence. Take your gift and continue collecting Essence for me.I need more if I want to ascend. Just know that once you have 900, you must come back and visit me."; - } - if (key == "WITCH_REWARD_7") - { - return "So, you already have 1500 Essence. Soon you will gain a special gift.Continue on your path, Wielder. I know not what guides you, nor what will it is that drives you forward. But know, if that drive disappears, you will pay dearly. Once you have collected 1800 Essence though, I will be here waiting.Take this gift, may it grant you strength and help you to collect the Essence of this world!"; - } - if (key == "WITCH_REWARD_4") - { - return "Ahhhhh. 500 Essence. You're a master in the making. Well done! Well done! I've a small reward for you. Don't let it get in your head though, we still have a long way to go. I need more.Plucked from one of my most precious memories, this Charm will bring you and the Dream Nail closer together still. The secrets of this kingdom won't be able to hide from you any longer!Take it, and return once you have collected 700 Essence. More gifts await you... and me..."; - } - if (key == "WITCH_GENERIC") - { - return "Explore Fyrenest and collect Essence. There are beings of great power that harbor extreme power. Seek them out, reveal them, and gather the light inside..."; - } - if (key == "WITCH_MEET_B") - { - return "Ahhhh, you've found your way back to me. When you awoke you just left. You made a good choice coming back here. I have a use for your services."; - } - if (key == "WITCH_MEET_B") - { - return "Ahhhh, you've found your way back to me. When you awoke you just left. You made a good choice coming back here. I have a use for your services."; - } - if (key == "WITCH_REWARD_8B") - { - return "Ahhhh, ah ha ha ha ha, yes...No dream can hide itself from you now. You can peer into the darkest places... You just need to find the right crack.What will you do with such a power, Wielder? Whose memories will you hunt down?Hah. Do as you wish, once my plan is fulfilled. Find the last remaining scraps of Essence. Seek it out. Find it, and bring it to me. I want it all."; - } - if (key == "WITCH_FINAL_2") - { - return "Finally. I ascend! The time has come!\n\nI WILL RULE ALL OF FYRENEST! NOTHING SHALL STOP ME!I SHALL BE ETERNAL, I SHALL BE THE LIGHT!"; - } - if (key == "WITCH_INTRO") - { - return "Those figures, those Dreamers... they reached out with what little power they still have and dragged you into that hidden place. They feel threatened by you. They were weak.They couldn't do what needed to be done.
Let's see if you fare better.Wait, that talisman you now wield, the Dream Nail... it can cut through the veil that separates the waking world from our dreams. Maybe you shall fare better.Though I must admit, that sacred blade has dulled over time. Together perhaps, we can restore its power. You only have to bring me Essence. Yes... That works.Essence... they are precious fragments of light and energy collected from dreams. Collect it wherever you find any, and bring it to me. Once we have enough, we can work wonders together. We will re-create all of Fyrenest!Go out into the world, Wielder. Hunt down the Essence that lingers there!Collect 100 Essence and return to me. I will teach you more... The ways of ascension."; - } - //if (key == "WITCH_FINAL_2") - //{ - // return "It is time for us to be remembered.It is time for the light to be remembered, to be seen again."; - //} - if (key == "HINT_WITCH_DREAMPLANT") - { - return "Essence can be found wherever dreams take root.Have you seen them? Those whispering plants that grow all over this old Kingdom? I believe there is one just outside. Why not strike it with your Dream Nail, and see what happens? Collect my Essence."; - } - if (key == "WITCH_REWARD_1") - { - return "Hmm, already you've collected 100 Essence. Quick work! Things come naturally to you, don't they?No wonder the Dreamers tried to bury you in that old dream. Perhaps being prisoners themselves, they desired your company?In any case, now their prison is better sealed and their Essence is still being harvested. Do not worry about those Dreamers. They won't bother us anymore. Take this old trinket as encouragement from me, and return when you have collected 200 Essence."; - } - if (key == "WITCH_REWARD_6") - { - return "The Dream Nail glows bright... It holds over 1200 Essence. Looking into it I can see so many memories peering back at me. So many asking to be remembered.None of us can live forever, and so we ask those who survive to remember us.Hold something in your mind and it lives on with you, but forget it and you seal it away forever. That is the only death that matters.Huh, so they say! Enough of that though. Take this relic and come back to me with 1500 Essence. Go, get me more Essence!"; - } - if (key == "WITCH_REWARD_2A") - { - return "Ahhh... Your Dream Nail holds over 200 Essence. You're proving your talent in its collection.Have you seen that great door just outside? My tribe closed it long ago and forbade its opening.But, since I want more essence, I am going to open it. The spirits of strong beings you have killed will be imprisoned there. While imprisoned, I can harvest their energy, giving me even more Essence.You can also visit, and battle them over and over. Every victory gives me more Essence."; - } - for (int i = 1; i < 10; i++) - { - if (key == "WITCH_QUEST_"+i.ToString()) - { - return "You still require more essence before I give you another reward."; - } - } - if (key == "WITCH_REWARD_2B") - { - return "There we go! The door to the prison is open! Go ahead and fight them if you want. Just know, the Essence will go straight to me, not your dream nail. And I won't reward you for prowess in combat against them."; - } - if (key == "WITCH_QUEST_5B") - { - return "My, my, look at you! Once you collect 900 Essence, I will teach you something hidden for a very long time. You are going to like it."; - } - if (key == "WITCH_GREET") - { - return "Ah, Wielder, you've returned. Let me have a look at the Dream Nail..."; - } - if (key == "WITCH_REWARD_5B") - { - return "The Dream Nail now holds 900 Essence within its core!Yes, you're starting to see them. The connections between us and the dreams we leave behind, like prints in the dust. The time has come for you to learn how to revisit the places connected to you!Hold the Dream Nail tight, wielder, and imagine a great gate opening before you!"; - } - if (key == "WITCH_HINT_XERO") - { - return "Sometimes people can be infused with Essence. Some of the former members of our tribe conducted experiments on themselves. I created an experiment on a willing tribe member, and it turned out exactly the way it was designed. I am the only one who knows how to do an Essence infusion successfully. One day, with enough Essence, I will do it on myself.Although they are bountiful sources of Essence, instead of slaying them we banished them across the kingdom.You should search carefully near graves and other monuments. Why, I believe I saw an interesting gravestone here in the Resting Grounds.If you do decide to disturb those dreams though, be prepared for a fight... Their spirits are easily angered."; - } - if (key == "WITCH_DREAM1") - { - return "What a terrible fate they've visited upon you.To cast you away into this space between body and soul.Will you accept their judgement and fade slowly away?Or will you take the weapon before you, and cut your way out of this sad, forgotten dream?"; - } - if (key == "WITCH_DREAM_FALL") - { - return "Though you may fall, your will shall carry you forward.A dream is endless, but a Kingdom is not.The power to wake this world from its slumber... Only worshipping the light will restore that."; - } - if (key == "WITCH_DREAM") - { - return "Once I get the Essence, I will be unstoppable. I will re-create Fyrenest in my own image. People will worship the light once more. Wait. I sense...
Get out of my mind. I trusted you with a powerful weapon such as this, and you disobey me? GET OUT!"; + return text(); } return orig; } @@ -1157,6 +816,8 @@ public override void Initialize(Dictionary - /// Adds a replacement to the TextChanger - /// - static void ReplaceText(string key, string text, string sheet = "") - { - Fyrenest.instance.AddReplacement(key, text, sheetKey: sheet); - } - - /// - /// All changed texts - /// - List texts = new(); - - /// - /// Add a new text change - /// - public void AddReplacement(string key, string text, string sheetKey = "") - { - texts.Add(new TextReplacement(key, text, sheetKey)); + } } /// diff --git a/Room.cs b/Room.cs index 063a885..959188b 100644 --- a/Room.cs +++ b/Room.cs @@ -255,7 +255,7 @@ public void DestroyGO(string name) /// public void ReplaceText(string key, string text, string sheetKey = "") { - Fyrenest.instance.AddReplacement(key, text, sheetKey); + ReplaceText(key, text, sheetKey); } /// diff --git a/Rooms/Abyss/Abyss_08.cs b/Rooms/Abyss/Abyss_08.cs new file mode 100644 index 0000000..aa8cee5 --- /dev/null +++ b/Rooms/Abyss/Abyss_08.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Fyrenest.Rooms.Abyss +{ + internal class Abyss_08 : Room + { + public Abyss_08() : base("Abyss_08") { } + + public override void OnBeforeLoad() + { + SetDarkness(true); + SetColor(Color.black); + SetHeroLightColor(Color.black); + } + } +} diff --git a/Rooms/CrystalPeak/Mines_37.cs b/Rooms/CrystalPeak/Mines_37.cs index 057aa47..18d0ac5 100644 --- a/Rooms/CrystalPeak/Mines_37.cs +++ b/Rooms/CrystalPeak/Mines_37.cs @@ -17,9 +17,15 @@ internal class Mines_37 : Room { public Mines_37() : base("Mines_37") { } - public override void OnBeforeLoad() + public override void OnWorldInit() { - PlaceTransition("Mines_37", "left1", "Deepnest_09", "left1", 2.25f, 24, new Vector2(1.5f, 2.5f), new Vector2(2, 0), GameManager.SceneLoadVisualizations.Default); + // Make this go somewhere other than the deepnest stag station + PlaceTransition("Mines_37", "left1", "Crossroads_30", "left1", 2.25f, 24, new Vector2(1.5f, 2.5f), new Vector2(2, 0), GameManager.SceneLoadVisualizations.Default); } } + internal class Crossroads_30 : Room + { + // Flip target room + public Crossroads_30() : base("Crossroads_30") { IsFlipped = true; } + } } diff --git a/Rooms/Deepnest/Deepnest_9.cs b/Rooms/Deepnest/Deepnest_9.cs index 0627456..1b114fa 100644 --- a/Rooms/Deepnest/Deepnest_9.cs +++ b/Rooms/Deepnest/Deepnest_9.cs @@ -14,11 +14,35 @@ namespace Fyrenest.Rooms.Deepnest { internal class Deepnest_9 : Room { - public Deepnest_9() : base("Deepnest_09") { IsFlipped = true; } + public Deepnest_9() : base("Deepnest_09") { } public override void OnBeforeLoad() { - SetColor(Color.magenta); - //SetSaturation(100f); + SetColor(Color.black); + SetSaturation(10); + if (PlayerData.instance.royalCharmState != 3) + { + PlaceGO(Prefabs.LARGE_PLATFORM.Object, 0.5f, 5, Quaternion.Euler(0, 0, 270)); + PlaceGO(Prefabs.LARGE_PLATFORM.Object, 0.5f, 6, Quaternion.Euler(0, 0, 270)); + PlaceGO(Prefabs.LARGE_PLATFORM.Object, 0.5f, 7, Quaternion.Euler(0, 0, 270)); + PlaceGO(Prefabs.LARGE_PLATFORM.Object, 0.5f, 8, Quaternion.Euler(0, 0, 270)); + } + } + public override void OnWorldInit() + { + // Go to joni's blessing area. + SetTransition("Deepnest_09", "left1", "Abyss_08", "right1"); + + // Make it possible to get to Deepnest Stag station. + SetItem(LocationNames.Geo_Rock_Abyss_3, ItemNames.Distant_Village_Stag); + + // Make deepnest stag go to void heart. + SetItem(LocationNames.Jonis_Blessing, ItemNames.Void_Heart); + + // Get world sense after The Climb. + SetItem(LocationNames.Void_Heart, ItemNames.World_Sense); + + // Get Joni's Blessing at hk room. + SetItem(LocationNames.World_Sense, ItemNames.Jonis_Blessing); } } } diff --git a/Rooms/Dirtmouth/Crossroads1.cs b/Rooms/Dirtmouth/Crossroads1.cs index 77b1062..e4a862f 100644 --- a/Rooms/Dirtmouth/Crossroads1.cs +++ b/Rooms/Dirtmouth/Crossroads1.cs @@ -1,17 +1,4 @@ -using ItemChanger; -using ItemChanger.Components; -using ItemChanger.Internal; -using ItemChanger.Locations; -using ItemChanger.Locations.SpecialLocations; -using ItemChanger.Placements; -using ItemChanger.UIDefs; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Fyrenest.Rooms.Crossroads +namespace Fyrenest.Rooms.Crossroads { internal class Crossroads1 : Room { diff --git a/Rooms/Dirtmouth/Crossroads_08.cs b/Rooms/Dirtmouth/Crossroads_08.cs new file mode 100644 index 0000000..0bd3382 --- /dev/null +++ b/Rooms/Dirtmouth/Crossroads_08.cs @@ -0,0 +1,13 @@ +namespace Fyrenest.Rooms.Crossroads +{ + internal class Crossroads_08 : Room + { + public Crossroads_08() : base("Crossroads_08") { } + public override void OnBeforeLoad() + { + PlaceGO(Prefabs.LARGE_PLATFORM.Object, 50, 20, Quaternion.Euler(0, 0, 270)); + PlaceGO(Prefabs.LARGE_PLATFORM.Object, 50, 23, Quaternion.Euler(0, 0, 270)); + PlaceGO(Prefabs.LARGE_PLATFORM.Object, 50, 26, Quaternion.Euler(0, 0, 270)); + } + } +} diff --git a/Rooms/Dirtmouth/Dirtmouth.cs b/Rooms/Dirtmouth/Dirtmouth.cs index e612017..e5fae95 100644 --- a/Rooms/Dirtmouth/Dirtmouth.cs +++ b/Rooms/Dirtmouth/Dirtmouth.cs @@ -3,15 +3,7 @@ using ItemChanger.Internal; using ItemChanger.Locations; using ItemChanger.Locations.SpecialLocations; -using ItemChanger.Placements; -using ItemChanger.UIDefs; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Fyrenest.Rooms.Abyss +namespace Fyrenest.Rooms.Dirtmouth { internal class Dirtmouth : Room { diff --git a/Rooms/Kingdom'sEdge/KingdomsEdge.cs b/Rooms/Kingdom'sEdge/KingdomsEdge.cs new file mode 100644 index 0000000..ccda709 --- /dev/null +++ b/Rooms/Kingdom'sEdge/KingdomsEdge.cs @@ -0,0 +1,34 @@ +using ItemChanger; +using ItemChanger.Components; +using ItemChanger.Internal; +using ItemChanger.Locations; +using ItemChanger.Locations.SpecialLocations; +using ItemChanger.Placements; +using ItemChanger.UIDefs; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Fyrenest.Rooms.KingdomsEdge +{ + internal class KingdomsEdge : Room + { + public KingdomsEdge() : base("Deepnest_East_01") { } + public override void OnWorldInit() + { + AbstractPlacement placement = Finder.GetLocation(LocationNames.Kings_Brand).Wrap(); + AbstractItem aitem = new VoidSoul(); + aitem.UIDef = new MsgUIDef() + { + name = new BoxedString("VoidSoul"), + sprite = new BoxedSprite(EmbeddedSprite.Get("VoidSoul.png")), + }; + // Add a cost to get. + //aitem.AddTag().Cost = new GeoCost(1200); + placement.Add(aitem); + ItemChangerMod.AddPlacements(new AbstractPlacement[] { placement }, PlacementConflictResolution.MergeKeepingNew); + } + } +} diff --git a/TextReplacements.cs b/TextReplacements.cs new file mode 100644 index 0000000..b1a0472 --- /dev/null +++ b/TextReplacements.cs @@ -0,0 +1,506 @@ +global using System; +global using System.IO; +global using System.Collections; +global using Modding; +global using UnityEngine; +global using SFCore; +global using System.Collections.Generic; +global using System.Linq; +using ItemChanger; +using ItemChanger.Tags; +using ItemChanger.UIDefs; +using Satchel.BetterMenus; +using GlobalEnums; +using ItemChanger.Internal; +using ItemChanger.Modules; +using UnityEngine.SceneManagement; +using static Fyrenest.Fyrenest; + +namespace Fyrenest +{ + public class TextReplacements + { + public static readonly TextReplacements instance = new(); + public TextReplacements() {} + + #region LanguageReplacements + public string LanguageGet(string key, string sheetTitle, string orig) + { + if (key == "DESC_MANTIS_LORD") + { + return "Leaders of the Mantis tribe and its finest warriors. In legend, they were said to fight a god-like being of immense power, and its misguided followers. One among them was a mysterious bug who hides away somewhere in Fyrenest, who is now the last of the followers."; + } + + if (key == "HU_DEFEAT" && sheetTitle == "Ghosts") + { + return "My mind... it clears. Have we been... sleeping, child?Aah... I remember. Our leader. He drove us to ruin. Destroyed this world. Attacked the rest of us.Killed.Killed... me...?...aah. I see now..."; + } + + if (key == "KCIN_REPEAT") + { + return "Seeking power is a hollow goal. Best to search for other things. Trust me, our old leader sought power. It destroyed us all."; + } + + if (key == "DISTANT_VILLAGE" && sheetTitle == "Map Zones") + { + return "Herrah's Den"; + } + + if (key == "BONE_FOREST" && sheetTitle == "Map Zones") + { + return "Bone Forest"; + } + + if (key == "TEST_AREA" && sheetTitle == "Map Zones") + { + return "Test area, please tell me where this is. Ping me @BubkisLord#5187 (discord)"; + } + + if (key == "DREAM_WORLD" && sheetTitle == "Map Zones") + { + return "Dream World"; + } + + if (key == "ELDERBUG_FLOWER" && sheetTitle == "Prompts") + { + return "Give the Elderbug a flower for literal no reason?"; + } + + if (key == "CARD" && sheetTitle == "Cornifer") + { + return "Hi there, it's me! Conifer. Clearly, I have left, but you can come at see me or Pine at dirtmouth!"; + } + + if (key == "ELDERBUG_INTRO_VISITEDCROSSROAD" && sheetTitle == "Elderbug") + { + return "My, my, look at that! I haven't talked to someone in so long! How great to have you! Welcome to Dirtmouth."; + } + + if (key == "ELDERBUG_DREAM" && sheetTitle == "Elderbug") + { + return "Hello? Is someone there?Who is that? Aah! What was that? That feeling......Like the cold, terrifying embrace of death..."; + } + + if (key == "BELIEVE_TAB_50" && sheetTitle == "Backer Messages") + { + return "Good job on completing the game with Fyrenest on! What should I update? What new features would you like to see next? What could I improve on? Tell me on the Discord Hollow Knight Modding Server!"; + } + + if (key == "BANKER_DREAM_SPA" && sheetTitle == "Banker") + { + return "Ahh! Leave me be, you stout little knight! What grossness!"; + } + + if (key == "BANKER_DEPOSIT" && sheetTitle == "Banker") + { + return "Thank you! I will keep your hard earned geo safe! Hee hee heeeee!"; + } + + if (key == "BANKER_BALANCE_ZERO_REPEAT" && sheetTitle == "Banker") + { + return "Please! Please don't hurt me! I have no geo left!"; + } + + if (key == "BANKER_SPA_REPEAT" && sheetTitle == "Banker") + { + return "We're still friends right? Remember all those great times together! All the banking!"; + } + if (key == "CP2" && sheetTitle == "GRIMMSYCOPHANT_INSPECT") + { + return "...Raw energy... ...The troupe...Why?"; + } + if (key == "CP2" && sheetTitle == "GRIMMSYCOPHANT_DREAM") + { + return "...I founded the troupe... ...Destroyed kingdoms... ...For Grimm..."; + } + if (key == "CROSSROADS_SUB" && sheetTitle == "Titles") + { + return "Of Flame"; + } + if (key == "CROSSROADS_SUB_INF" && sheetTitle == "Titles") + { + return "Of Flame"; + } + if (key == "CORNIFER_SUB" && sheetTitle == "Titles") + { + return "The Adventurer"; + } + if (orig.Contains("Hollow Knight")) + { + return orig.Replace("Hollow Knight", "Infected Vessel"); + } + if (orig.Contains("Pure Vessel")) + { + return orig.Replace("Pure Vessel", "Hollow Vessel"); + } + if (orig.Contains("The Fading Town")) + { + return orig.Replace("The Fading Town", "The Realm of The Old One"); + } + if (orig.Contains("Elderbug")) + { + return orig.Replace("Elderbug", "The Old One"); + } + if (orig.Contains("Dirtmouth")) + { + return orig.Replace("Dirtmouth", "Fyrecamp"); + } + if (orig.Contains("Deepnest")) + { + return orig.Replace("Deepnest", "Deepfyre"); + } + if (orig.Contains("Iselda")) + { + return orig.Replace("Iselda", "Pine"); + } + if (orig.Contains("Cornifer")) + { + return orig.Replace("Conifer", "Conifer"); + } + if (orig.Contains("Hallownest")) + { + return orig.Replace("Hallownest", "Fyrenest"); + } + if (orig.Contains("Howling Cliffs")) + { + return orig.Replace("Howling Cliffs", "Inferno's Peak"); + } + if (orig.Contains("Fungal Wastes")) + { + return orig.Replace("Fungal Wastes", "Defiled Wastelands"); + } + if (orig.Contains("Kingdom's Edge")) + { + return orig.Replace("Kingdom's Edge", "Fyre's Edge"); + } + if (orig.Contains("Ancient Basin")) + { + return orig.Replace("Ancient Basin", "Void Basin"); + } + if (orig.Contains("Abyss")) + { + return orig.Replace("Abyss", "Pit"); + } + if (orig.Contains("Resting Grounds")) + { + return orig.Replace("Resting Grounds", "Spirit Sanctuary"); + } + if (orig.Contains("Crystal Peak")) + { + return orig.Replace("Crystal Peak", "Crystalline Mountain"); + } + if (orig.Contains("City of Tears")) + { + return orig.Replace("City of Tears", "City of Flame"); + } + if (SlyDeal.instance.Equipped() && sheetTitle == "Prices") + { + try + { + float numOrig = float.Parse(orig); + numOrig /= 1.5f; + orig = numOrig.ToString(); + return orig; + } + catch (Exception) + { + return orig; + } + } + if (ZoteBorn.instance.Equipped() && sheetTitle == "Prices") + { + return "10000"; + } + if (SlyDeal.instance.Equipped() && sheetTitle == "Elderbug") + { + return "I don't think I can speak to you right now. There is a disgusting whiff of something coming by..."; + } + if (SlyDeal.instance.Equipped() && sheetTitle == "Iselda") + { + return "Ugh... Please, leave.. The smell!Just buy something. Or don't. Please leave the shop."; + } + if (SlyDeal.instance.Equipped() && sheetTitle == "Enemy Dreams") + { + return "...That stench... ...disgusting..."; + } + if (SlyDeal.instance.Equipped() && sheetTitle == "Sly") + { + return "I see you are wearing that charm I gave you... Not near me please."; + } + if (SlyDeal.instance.Equipped() && sheetTitle == "Cornifer") + { + return "You can have a map! Have everything! But get me away from that stench!"; + } + if (sheetTitle == "Lore Tablets" && key == "WISHING_WELL_INSPECT") + { + return "A true follower of the Pale King gives all they own for the kingdom."; + } + if (sheetTitle == "Lore Tablets" && key == "TUT_TAB_02") + { + return "For those who enter Fyrenest from the far lands of Hallownest and The Glimmering Realm, note this. Beyond this point you enter the land of the light. Step across this threshold and obey our laws. Bear witness to one of the last civilisations, one of the eternal Kingdoms.\n\nFyrenest."; + } + if (sheetTitle == "Lore Tablets" && key == "RANDOM_POEM_STUFF") + { + return "Fyrenest is great.\nThe very last great kingdom.\nFyrenest rules all.\n - Haiku by Monomon the Teacher."; + } + if (sheetTitle == "Lore Tablets" && key == "RUINS_FOUNTAIN") + { + return "Memorial to the Hollow Vessel.\n\nIn its vault far above, stopping the death.\n\nThrough its sacrifice Fyrenest will last eternal."; + } + if (sheetTitle == "Cornifer" && key == "FUNGAL_WASTES_GREET") + { + return "Ahh my short friend, you've caught me at the perfect time. I'm impressed that you have got this far! I'm just about finished charting these noxious caverns. Very territorial types make their homes within this area. I'd suggest avoiding this place. I don't think it would be very safe for a fragile little one like you. I have heard of a group of deadly warriors, they seemed an intelligent bunch. I wouldn't go down there if I were you."; + } + if (sheetTitle == "Cornifer" && key == "GREENPATH_GREET") + { + return "Oh, hello there! I didn't think you would be here! You are surely having someone's help traversing this path... Surely, someone of your small stature couldn't get around like this! Buy a map, it will help you to get back to Fyrecamp. You are clearly lost for some reason."; + } + if (sheetTitle == "Cornifer" && key == "MINES_GREET") + { + return "Hello, my short little friend! What a suprise finding you here! Have you come to scale the mountains? I'm afraid you are much to pathetic to do that. Here, buy a map instead! It might help you find a way out."; + } + if (sheetTitle == "Cornifer" && key == "CROSSROADS_GREET") + { + return "Hello again! Still winding your way through these twisting highways? Just imagine how they must have looked during the kingdom's prime, thick with traffic and bustling with life! I wish I could have seen it. Oh, it is a shame that our old king is gone... Would you like to buy a map of the area to help you get out safely? You don't seem the adventurous type."; + } + if (sheetTitle == "Cornifer" && key == "CLIFFS_GREET") + { + return "Are you enjoying the bracing air? I doubt you have experienced something like this before, since you are always scrounging around underground, looking for geo like a hermit. Anyway, we are quite close to the borders of Fyrenest, and the desolate plains that surround it. I have heard that these plains make bugs go mad... Seeking escape, only to find lost memories and distant towns. I have heard of a place far away, where our king went when he left us. A place called Hallownest, a distant kingdom never to be found... I had a brother named Cornifer, he left in search of that horrid place... I dread what has happened to him... But, lingering on the past doesn't accomplish anything. I've drawn out a small map for the area, although simple, it is helpful nonetheless. Not knowing the full extents of a region can be quite frustrating."; + } + if (orig.ToLower().Contains("the world of infected vessel")) + { + return orig.Replace("Infected Vessel", "Hollow Knight"); + } + if (key == "WITCH_REWARD_8A") + { + return "Yes. The time has come.The Dream Nail... And you as well, Wielder. It is time for you both to awaken.The Essence you have collected... Finally, I will be able to re-enact the second stage of my plan. Pure potential! Let the power course through you and into the Dream Nail!Hold it aloft, Wielder!AWAKEN!"; + } + if (key == "WITCH_FINAL_1") + { + return "So much Essence... Finally. So bright! I will be able to retake this land.You see, the folk of my tribe were born from a light. Light similar to Essence, similar to that powerful blade, though much brighter still.They were content to bask in that light and honoured it. Worshipped it. For a time...
But we lost our way. Forgot our traditions...But another light appeared in our world... A wyrm that took the form of a king. He was born here, from the remanents of Fyrenest's essence and light. Fyrenest's power was forever destroyed, absorbed by a narcissistic king.How fickle my ancestors must have been. They forsook the light that spawned them. Turned their backs to it... Forgot it even.I have rectified their mistakes. I will ascend to a might never seen before. All those champions you slew, all those warriors you killed, I have been harvesting their power. Did you see the prison I set their spirits in? A eternal fighting ring.You have been collecting essence since you came here. Going out and fetching more for me. Now I have enough to ascend. Ascension is my final goal. You see, I am the light! I am the blinding radiance Fyrenest needs! Everyone will worship me for the end of time.No one shall forget me. No one shall lose their way. I will be their god! Their ruler!"; + } + if (key == "WITCH_FINAL_3") + { + return "IT IS HAPPENING!\nI AM ASCENDING!SO BRIGHT!I SEE THE LIGHT! THE RADIANCE!ME."; + } + if (key == "WITCH_MEET_A") + { + return "Ah, welcome back to the waking world. Those Dreamers. They inhabit every civilisation wherever you go. They are nothing, just ignore them."; + } + if (key == "WITCH_REWARD_5") + { + return "So, you already have 700 Essence. Take your gift and continue collecting Essence for me.I need more if I want to ascend. Just know that once you have 900, you must come back and visit me."; + } + if (key == "WITCH_REWARD_7") + { + return "So, you already have 1500 Essence. Soon you will gain a special gift.Continue on your path, Wielder. I know not what guides you, nor what will it is that drives you forward. But know, if that drive disappears, you will pay dearly. Once you have collected 1800 Essence though, I will be here waiting.Take this gift, may it grant you strength and help you to collect the Essence of this world!"; + } + if (key == "WITCH_REWARD_4") + { + return "Ahhhhh. 500 Essence. You're a master in the making. Well done! Well done! I've a small reward for you. Don't let it get in your head though, we still have a long way to go. I need more.Plucked from one of my most precious memories, this Charm will bring you and the Dream Nail closer together still. The secrets of this kingdom won't be able to hide from you any longer!Take it, and return once you have collected 700 Essence. More gifts await you... and me..."; + } + if (key == "WITCH_GENERIC") + { + return "Explore Fyrenest and collect Essence. There are beings of great power that harbor extreme power. Seek them out, reveal them, and gather the light inside..."; + } + if (key == "WITCH_MEET_B") + { + return "Ahhhh, you've found your way back to me. When you awoke you just left. You made a good choice coming back here. I have a use for your services."; + } + if (key == "WITCH_MEET_B") + { + return "Ahhhh, you've found your way back to me. When you awoke you just left. You made a good choice coming back here. I have a use for your services."; + } + if (key == "WITCH_REWARD_8B") + { + return "Ahhhh, ah ha ha ha ha, yes...No dream can hide itself from you now. You can peer into the darkest places... You just need to find the right crack.What will you do with such a power, Wielder? Whose memories will you hunt down?Hah. Do as you wish, once my plan is fulfilled. Find the last remaining scraps of Essence. Seek it out. Find it, and bring it to me. I want it all."; + } + if (key == "WITCH_FINAL_2") + { + return "Finally. I ascend! The time has come!\n\nI WILL RULE ALL OF FYRENEST! NOTHING SHALL STOP ME!I SHALL BE ETERNAL, I SHALL BE THE LIGHT!"; + } + if (key == "WITCH_INTRO") + { + return "Those figures, those Dreamers... they reached out with what little power they still have and dragged you into that hidden place. They feel threatened by you. They were weak.They couldn't do what needed to be done.
Let's see if you fare better.Wait, that talisman you now wield, the Dream Nail... it can cut through the veil that separates the waking world from our dreams. Maybe you shall fare better.Though I must admit, that sacred blade has dulled over time. Together perhaps, we can restore its power. You only have to bring me Essence. Yes... That works.Essence... they are precious fragments of light and energy collected from dreams. Collect it wherever you find any, and bring it to me. Once we have enough, we can work wonders together. We will re-create all of Fyrenest!Go out into the world, Wielder. Hunt down the Essence that lingers there!Collect 100 Essence and return to me. I will teach you more... The ways of ascension."; + } + //if (key == "WITCH_FINAL_2") + //{ + // return "It is time for us to be remembered.It is time for the light to be remembered, to be seen again."; + //} + if (key == "HINT_WITCH_DREAMPLANT") + { + return "Essence can be found wherever dreams take root.Have you seen them? Those whispering plants that grow all over this old Kingdom? I believe there is one just outside. Why not strike it with your Dream Nail, and see what happens? Collect my Essence."; + } + if (key == "WITCH_REWARD_1") + { + return "Hmm, already you've collected 100 Essence. Quick work! Things come naturally to you, don't they?No wonder the Dreamers tried to bury you in that old dream. Perhaps being prisoners themselves, they desired your company?In any case, now their prison is better sealed and their Essence is still being harvested. Do not worry about those Dreamers. They won't bother us anymore. Take this old trinket as encouragement from me, and return when you have collected 200 Essence."; + } + if (key == "WITCH_REWARD_6") + { + return "The Dream Nail glows bright... It holds over 1200 Essence. Looking into it I can see so many memories peering back at me. So many asking to be remembered.None of us can live forever, and so we ask those who survive to remember us.Hold something in your mind and it lives on with you, but forget it and you seal it away forever. That is the only death that matters.Huh, so they say! Enough of that though. Take this relic and come back to me with 1500 Essence. Go, get me more Essence!"; + } + if (key == "WITCH_REWARD_2A") + { + return "Ahhh... Your Dream Nail holds over 200 Essence. You're proving your talent in its collection.Have you seen that great door just outside? My tribe closed it long ago and forbade its opening.But, since I want more essence, I am going to open it. The spirits of strong beings you have killed will be imprisoned there. While imprisoned, I can harvest their energy, giving me even more Essence.You can also visit, and battle them over and over. Every victory gives me more Essence."; + } + for (int i = 1; i < 10; i++) + { + if (key == "WITCH_QUEST_" + i.ToString()) + { + return "You still require more essence before I give you another reward."; + } + } + if (key == "WITCH_REWARD_2B") + { + return "There we go! The door to the prison is open! Go ahead and fight them if you want. Just know, the Essence will go straight to me, not your dream nail. And I won't reward you for prowess in combat against them."; + } + if (key == "WITCH_QUEST_5B") + { + return "My, my, look at you! Once you collect 900 Essence, I will teach you something hidden for a very long time. You are going to like it."; + } + if (key == "WITCH_GREET") + { + return "Ah, Wielder, you've returned. Let me have a look at the Dream Nail..."; + } + if (key == "WITCH_REWARD_5B") + { + return "The Dream Nail now holds 900 Essence within its core!Yes, you're starting to see them. The connections between us and the dreams we leave behind, like prints in the dust. The time has come for you to learn how to revisit the places connected to you!Hold the Dream Nail tight, wielder, and imagine a great gate opening before you!"; + } + if (key == "WITCH_HINT_XERO") + { + return "Sometimes people can be infused with Essence. Some of the former members of our tribe conducted experiments on themselves. I created an experiment on a willing tribe member, and it turned out exactly the way it was designed. I am the only one who knows how to do an Essence infusion successfully. One day, with enough Essence, I will do it on myself.Although they are bountiful sources of Essence, instead of slaying them we banished them across the kingdom.You should search carefully near graves and other monuments. Why, I believe I saw an interesting gravestone here in the Resting Grounds.If you do decide to disturb those dreams though, be prepared for a fight... Their spirits are easily angered."; + } + if (key == "WITCH_DREAM1") + { + return "What a terrible fate they've visited upon you.To cast you away into this space between body and soul.Will you accept their judgement and fade slowly away?Or will you take the weapon before you, and cut your way out of this sad, forgotten dream?"; + } + if (key == "WITCH_DREAM_FALL") + { + return "Though you may fall, your will shall carry you forward.A dream is endless, but a Kingdom is not.The power to wake this world from its slumber... Only worshipping the light will restore that."; + } + if (key == "WITCH_DREAM") + { + return "Once I get the Essence, I will be unstoppable. I will re-create Fyrenest in my own image. People will worship the light once more. Wait. I sense...
Get out of my mind. I trusted you with a powerful weapon such as this, and you disobey me? GET OUT!"; + } + if (key == "HORNET_PRE_FINAL_BATTLE") + { + return "You have destroyed the Dreamers. The path is open, but are you sure this is the right one?\nI will aid you in the coming battle, but I fear that there is something else.Something feels wrong, but I trust your judgement, little knight."; + } + if (key == "HORNET_PRE_FINAL_BATTLE_DREAM") + { + return "This is not the final battle. This is not the enemy. Something is wrong..."; + } + if (key == "HORNET_GREENPATH") + { + return "Come no closer, ghost.I've seen you, creeping in the undergrowth, stalking me.\nI do not know who you are, but you are not my enemy. I know what you will do. What everyone does. They side with the hidden power.You must be destroyed."; + } + if (key == "HORNET_SPIDER_TOWN_REPEAT") + { + return "Leave me now, ghost. Allow me a moment alone before this bedchamber forever becomes a shrine.Although, I feel that this is not the way..."; + } + if (key == "HORNET_DOOR_UNOPENED") + { + return "I'm impressed little ghost. You've burdened yourself with the fate of this world, yet you still stand strong.To stop the seer would alone be considered an impossible task, but to accept that void inside yourself, that casts you as something rather exceptional."; + } + if (key == "HORNET_OUTSKIRTS_2") + { + return "Prove yourself to be strong enough, prove that you can defeat the dreams, lest they become nightmares."; + } + if (key == "HORNET_FOUNTAIN_1") + { + return "Again we meet little ghost.I'm normally quite perceptive. You I underestimated, though I've since guessed the truth.It's no surprise you've managed to reach the heart of this world. In so doing, you shall know the sacrifice that keeps it standing.A great sacrifice to hold the light. To keep it at bay."; + } + if (key == "HORNET_FOUNTAIN_2") + { + return "If, knowing that truth, you'd still attempt a role in Fyrenest's perpetuation. Do not fail."; + } + if (key == "HORNET_ABYSS_ASCENT_01") + { + return "Ghost. I see you've faced the place of your birth, and now drape yourself in the substance of its shadow.Though our strength is born of similar source, that part of you, that crucial emptiness, I do not share.Funny then, that such darkness gives me hope. Within it, I see the chance of change.A difficult journey you would face, but a choice it can create. Aid the light, let it rise, or snuff it out."; + } + if (key == "HORNET_SPIDER_TOWN_01") + { + return "So you've slain the Beast... and you head towards that fated goal.I'd not have obstructed this happening, but it caused me some pain to knowingly stand idle....What? You might think me stern but I'm not completely cold.We do not choose our mothers, or the circumstance into which we are born. Despite all the ills of this world, I'm thankful for the life she granted me.It's quite a debt I owed. Only in allowing her to pass, and taking the burden of the future in her stead, can I begin to repay it."; + } + if (key == "HORNET_OUTSKIRTS_DEFEAT") + { + return "...So strong... You could do it, if you had the will.But could you raise your nail once knowing its tragic conception? And knowing yourself?...Then do it, Ghost of Fyrenest! Head onward. Take the artifact which unites void and light."; + } + if (key == "ELDERBUG_DREAM") + { + return "If only the rest of Dirtmouth was full once more."; + } + if (key == "ELDERBUG_GENERIC_2") + { + return "I'm a bit bored of talking right now, come back later. There's only so much I can handle!"; + } + if (key == "ELDERBUG_HISTORY_1") + { + return "Many used to come from far and wide, hoping the kingdom would fulfill their desires.Fyrenest. Supposedly the greatest kingdom there ever was, full of treasures and secrets.But sadly, now it's nothing more than a poisonous tomb full of dreams and decay.Everything fades eventually, I suppose.Hmm, that reminds me of story I heard long ago about an area of Fyrenest that had faded. The color sucked out of the stone and brick."; + } + if (key == "ELDERBUG_INTRO_MAIN") + { + return "The other residents, they've all disappeared. Headed down that well, one by one, into the caverns below.Used to be there was a great kingdom beneath our town. It's long fell to ruin, yet it still draws folks into its depths.Wealth, glory, enlightenment, power, that darkness seems to promise all things. I'm sure you too seek your dreams down there. My dreams are long gone. Taken, by those who crave them.Well watch out. It's a sickly air that fills the place. Creatures turn mad and travellers are robbed of their memories, hopes and dreams.Perhaps dreams aren't such great things after all..."; + } + if (key == "ELDERBUG_TEMPLE_VISITED") + { + return "Did you visit that temple? A strange building I've heard, though I'd never dare the journey myself.The braver among us once went there to pray, said they felt peace and power radiating from within the walls. After a while, they stopped going.It became a very empty and morbid place. Many stopped praying and worshipping. Now it serves as a forgotten shrine.I wonder what changed?"; + } + if (key == "MANTIS_PLAQUE_01") + { + return "To all hidden dreams, welcome.
May you find swift end upon our claws."; + } + if (key == "STAG_CROSSROADS") + { + return "Although from a time lost past, I remember when these highways and crossroads pulsed with life. These are the paths where I carried my first passengers through when I was young.Now those travellers are gone. Maybe it was better when we worshipped light and power above. Shunning that power came with a great cost."; + } + if (key == "STAG_ROYALGARDENS") + { + return "I'd almost forgotten this station existed. It was not often used by the common bugs, being a well-guarded retreat for our late Queen.Even as overgrown as they've become, these gardens are still beautiful after all this time. I'm sure the Queen would be happy to know that.Ironic, isn't it? The Queen was the bug who first had the idea to stop worshipping the light. Now, she is one of the only ones still free. Some could say it is a blessing to be free, but when alone, it feels like a curse. Sometimes I want to just let go, and let the power take me."; + } + if (key == "STAG_DEEPNEST") + { + return "Hmm, throughout all these years, I have never been to this area. It feels cold, deep down, deeper than anywhere else in Fyrenest. Secluded, far away from the ruins of civilisation."; + } + if (key == "") + { + return ""; + } + if (key == "") + { + return ""; + } + if (key == "") + { + return ""; + } + if (key == "") + { + return ""; + } + if (key == "") + { + return ""; + } + if (key == "") + { + return ""; + } + if (key == "") + { + return ""; + } + if (key == "") + { + return ""; + } + return orig; + } + #endregion + + public void Hook() + { + ModHooks.LanguageGetHook += LanguageGet; + } + } +} \ No newline at end of file diff --git a/bin/Debug/net472/Fyrenest.dll b/bin/Debug/net472/Fyrenest.dll index 0d1b18e..eac255d 100644 Binary files a/bin/Debug/net472/Fyrenest.dll and b/bin/Debug/net472/Fyrenest.dll differ diff --git a/bin/Debug/net472/Fyrenest.pdb b/bin/Debug/net472/Fyrenest.pdb index 7bc8582..39a0a89 100644 Binary files a/bin/Debug/net472/Fyrenest.pdb and b/bin/Debug/net472/Fyrenest.pdb differ diff --git a/obj/Debug/net472/CharmMod.csproj.CoreCompileInputs.cache b/obj/Debug/net472/CharmMod.csproj.CoreCompileInputs.cache index f01367b..db2c5e7 100644 --- a/obj/Debug/net472/CharmMod.csproj.CoreCompileInputs.cache +++ b/obj/Debug/net472/CharmMod.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -015b6344fc811dc0fcf0ca55fb8bb2cff7a348bf +15c68052749fad6124dc9e6183f5b9ef03a5ef7c diff --git a/obj/Debug/net472/Fyrenest.dll b/obj/Debug/net472/Fyrenest.dll index 0d1b18e..eac255d 100644 Binary files a/obj/Debug/net472/Fyrenest.dll and b/obj/Debug/net472/Fyrenest.dll differ diff --git a/obj/Debug/net472/Fyrenest.pdb b/obj/Debug/net472/Fyrenest.pdb index 7bc8582..39a0a89 100644 Binary files a/obj/Debug/net472/Fyrenest.pdb and b/obj/Debug/net472/Fyrenest.pdb differ