Esempio n. 1
0
        static void MoonConversation_AddEvents(On.SLOracleBehaviorHasMark.MoonConversation.orig_AddEvents orig,
                                               SLOracleBehaviorHasMark.MoonConversation self)
        {
            orig(self);

            if (self.id == Conversation.ID.MoonFirstPostMarkConversation &&
                self.State.neuronsLeft >= 4)
            {
                switch (ConfigMenu.ColourMode_)
                {
                case ConfigMenu.ColourMode.RandomStatic:
                    self.events.Add(new Conversation.TextEvent(self, 5,
                                                               self.Translate("Quite the collection of friends you have here, <PlayerName>!"), 0));
                    self.events.Add(new Conversation.TextEvent(self, 0,
                                                               self.Translate("My friends have been keeping close watch on things of late...<LINE>" +
                                                                              "Hello, my friends..."), 10));
                    break;

                case ConfigMenu.ColourMode.RandomStrobe:
                    self.events.Add(new Conversation.TextEvent(self, 5,
                                                               self.Translate("Oh, and quite the party you have brought with you!"), 0));
                    self.events.Add(new Conversation.TextEvent(self, 0,
                                                               self.Translate("How fashionable! It is so good to see this many colours after so long..."), 0));
                    break;

                case ConfigMenu.ColourMode.AllMoon:
                    self.events.Add(new Conversation.TextEvent(self, 5,
                                                               self.Translate("You've been looking after my overseers, <PlayerName>...<LINE>" +
                                                                              "Thank you."), 0));
                    break;

                case ConfigMenu.ColourMode.Default:
                case ConfigMenu.ColourMode.AllPebbles:
                    self.events.Add(new Conversation.TextEvent(self, 5,
                                                               self.Translate("So many overseers from Five Pebbles..."), 0));
                    self.events.Add(new Conversation.TextEvent(self, 0,
                                                               self.Translate("I do wonder if he still cares about what goes on outside his can."), 10));
                    break;

                case ConfigMenu.ColourMode.AllGreenOverseerFromUnknownIterator:
                    self.events.Add(new Conversation.TextEvent(self, 5,
                                                               self.Translate("Someone is watching over you, <PlayerName>.<LINE>" +
                                                                              "These overseers have travelled far..."), 0));
                    break;
                }
            }
        }
        private static void MoonConversation_AddEvents(On.SLOracleBehaviorHasMark.MoonConversation.orig_AddEvents orig,
                                                       SLOracleBehaviorHasMark.MoonConversation self)
        {
            bool foundPearl = false;

            foreach (KeyValuePair <int, CustomPearl> pearls in CustomWorldMod.customPearls)
            {
                if (foundPearl)
                {
                    break;
                }

                Conversation.ID id = (Conversation.ID)Enum.Parse(typeof(Conversation.ID), "Moon_" + pearls.Value.name);
                if (self.id == id)
                {
                    foundPearl = true;
                    self.PearlIntro();
                    LoadCustomEventsFromFile(pearls.Value.ID, CustomWorldMod.activatedPacks[pearls.Value.packName], self);
                }
            }
            orig(self);
        }
Esempio n. 3
0
 private static void MoonConvoExtended(On.SLOracleBehaviorHasMark.MoonConversation.orig_AddEvents orig, SLOracleBehaviorHasMark.MoonConversation moonConvo)
 {
     orig(moonConvo);
     if (moonConvo.id == Conversation.ID.Moon_Misc_Item)
     {
         if (moonConvo.describeItem == EnumExt_NewItems.ClubDialogue)
         {
             moonConvo.events.Add(new Conversation.TextEvent(moonConvo, 10, moonConvo.Translate("It's the bone of a large creature, carved into the shape of a club."), 0));
             moonConvo.events.Add(new Conversation.TextEvent(moonConvo, 10, moonConvo.Translate("I can imagine using this could cause quite a bit of havoc,<LINE>so please don't swing it around me."), 0));
         }
         if (moonConvo.describeItem == EnumExt_NewItems.BowDialogue)
         {
             moonConvo.events.Add(new Conversation.TextEvent(moonConvo, 10, moonConvo.Translate("It's a long, curved piece of some composite material,<LINE>with a thread wrapped around the ends.<LINE>Some form of spider silk, perhaps?"), 0));
             moonConvo.events.Add(new Conversation.TextEvent(moonConvo, 10, moonConvo.Translate("I remember some scavengers that passed by carrying a few of these on their back...<LINE>did they give you this, <PlayerName>?"), 0));
         }
         if (moonConvo.describeItem == EnumExt_NewItems.ArrowDialogue)
         {
             moonConvo.events.Add(new Conversation.TextEvent(moonConvo, 10, moonConvo.Translate("This is a large needle with feathers attached at one end<LINE>and a piece of sharpened rock attached to ther other."), 0));
         }
     }
 }