Esempio n. 1
0
        public void loadQuestInfo()
        {
            if (whoToGreet.Count <= 0)
            {
                base.questTitle = Game1.content.LoadString("Strings\\StringsFromCSFiles:SocializeQuest.cs.13785");
                parts.Clear();
                parts.Add(new DescriptionElement("Strings\\StringsFromCSFiles:SocializeQuest.cs.13786", (random.NextDouble() < 0.3) ? new DescriptionElement("Strings\\StringsFromCSFiles:SocializeQuest.cs.13787") : ((random.NextDouble() < 0.5) ? new DescriptionElement("Strings\\StringsFromCSFiles:SocializeQuest.cs.13788") : new DescriptionElement("Strings\\StringsFromCSFiles:SocializeQuest.cs.13789"))));
                parts.Add("Strings\\StringsFromCSFiles:SocializeQuest.cs.13791");
                foreach (string name in Game1.content.Load <Dictionary <string, string> >("Data\\NPCDispositions").Keys)
                {
                    switch (name)
                    {
                    default:
                        whoToGreet.Add(name);
                        break;

                    case "Kent":
                    case "Sandy":
                    case "Dwarf":
                    case "Marlon":
                    case "Wizard":
                    case "Krobus":
                        break;
                    }
                }
                objective.Value = new DescriptionElement("Strings\\StringsFromCSFiles:SocializeQuest.cs.13802", "2", whoToGreet.Count);
                total.Value     = whoToGreet.Count;
                whoToGreet.Remove("Lewis");
                whoToGreet.Remove("Robin");
            }
        }
Esempio n. 2
0
        public void loadQuestInfo()
        {
            if (whoToGreet.Count > 0)
            {
                return;
            }
            base.questTitle = Game1.content.LoadString("Strings\\StringsFromCSFiles:SocializeQuest.cs.13785");
            parts.Clear();
            parts.Add(new DescriptionElement("Strings\\StringsFromCSFiles:SocializeQuest.cs.13786", (random.NextDouble() < 0.3) ? new DescriptionElement("Strings\\StringsFromCSFiles:SocializeQuest.cs.13787") : ((random.NextDouble() < 0.5) ? new DescriptionElement("Strings\\StringsFromCSFiles:SocializeQuest.cs.13788") : new DescriptionElement("Strings\\StringsFromCSFiles:SocializeQuest.cs.13789"))));
            parts.Add("Strings\\StringsFromCSFiles:SocializeQuest.cs.13791");
            Dictionary <string, string> npcs = Game1.content.Load <Dictionary <string, string> >("Data\\NPCDispositions");

            foreach (string name in npcs.Keys)
            {
                switch (name)
                {
                case "Kent":
                case "Sandy":
                case "Dwarf":
                case "Marlon":
                case "Wizard":
                case "Krobus":
                case "Leo":
                    continue;
                }
                if (!(npcs[name].Split('/')[7] != "Town"))
                {
                    whoToGreet.Add(name);
                }
            }
            objective.Value = new DescriptionElement("Strings\\StringsFromCSFiles:SocializeQuest.cs.13802", "2", whoToGreet.Count);
            total.Value     = whoToGreet.Count;
            whoToGreet.Remove("Lewis");
            whoToGreet.Remove("Robin");
        }
Esempio n. 3
0
 public void removeWorldStateID(string id)
 {
     worldStateIDs.Remove(id);
 }