private IEnumerator ReturnFromPoseidon() { yield return(Say("Hello again! *squeek*")); yield return(Say($"I did it! *squeek*")); yield return(Say($"Right after you gave me the {OwnedItems.Last().Name} I rushed to the underwater city.")); yield return(Say("I found there Poseidon, the ruthless ruler who wishes no good upon his city's people.")); yield return(Say("*sqeeeek* This is when I challenged him!")); yield return(Say("We faught for hours.")); yield return(Say("I was beginning to lose hope, but then...")); yield return(Say("... The staff you gave me, it started glowing red hot. *squeek*")); yield return(Say("I rushed towards Poseidon with all I had left and impaled his heart.")); yield return(Say("*squeek* and here I am now!")); yield return(Say("The staff you gave me saved me!")); yield return(Say("As a thank you, I want to give you this")); GiveItem(PoseidonsCrownPrefab); AchivementBadge.Achieved("poseidon"); yield return(Say("It's Poseidon's crown. Do what you want with it hehe. *sqeeek*")); yield return(Say("Bye and see ya! *squek*")); RemoveFromClients(); }
private IEnumerator BanditLordDefeated() { RemoveFromClients <ThiefBehaviour>(); yield return(Say("Greetings!")); AchivementBadge.Achieved("bandit"); yield return(Say("Kingdom has defeated the bandit lord.")); yield return(Say("As a thank you for your support kingdom would like to give you bandit lord's sword.")); GiveItem(BanditLordSwordPrefab); nextVisit = BuySuppliesAfterDefeatingBanditLord; }
private IEnumerator GiveDragonHead() { Global.Dragon = "defeated"; yield return(Say("Hi, me again! Guess what...")); AchivementBadge.Achieved("dragon"); yield return(Say("I slayed the dragon! But uhm...")); yield return(Say($"The {OwnedItems.Last().Name} was broken in the process *quack*")); yield return(Say($"I got you dragon's head though! So no hard feelings ok?")); GiveItem(DragonHeadPrefab); yield return(Say("Bye and sorry again for the item.", 3)); RemoveFromClients(); }