public static void UnmarkLegendaryLocation(GameObject target)
        {
            JournalMapNote mapNote = JournalAPI.GetMapNote(MakeSecretId(target));

            if (mapNote != null)
            {
                JournalAPI.DeleteMapNote(mapNote);
                Popup.Show("Your journal entry for " + target.DisplayNameOnlyDirect + "&y has been deleted.");
            }
        }
Ejemplo n.º 2
0
        public virtual void generateRecoilerPartonObject()
        {
            List <JournalMapNote> mapNotes = JournalAPI.GetMapNotes((JournalMapNote note) => note.Has("ruins") || note.Has("historic"));

            if (mapNotes.Count > 0)
            {
                //MessageQueue.AddPlayerMessage($"Adding Recoilondeath part!");
                ZoneManager    zoneManager   = XRLCore.Core.Game.ZoneManager;
                JournalMapNote randomElement = mapNotes.GetRandomElement();
                RecoilOnDeath  teleporter    = ParentObject.RequirePart <RecoilOnDeath>();

                Zone        destinationZone     = zoneManager.GetZone(randomElement.zoneid);
                List <Cell> emptyReachableCells = destinationZone.GetEmptyReachableCells();
                Cell        destinationcell     = ((emptyReachableCells.Count <= 0) ? destinationZone.GetCell(40, 20) : emptyReachableCells.GetRandomElement());

                teleporter.DestinationZone = randomElement.zoneid;
                teleporter.DestinationX    = destinationcell.X;
                teleporter.DestinationY    = destinationcell.Y;
                //MessageQueue.AddPlayerMessage($"DestinationZone: {randomElement.zoneid}!");
            }
        }
 public JournalLocation(IBaseJournalEntry journalEntry)
 {
     this._Entry          = (journalEntry is JournalMapNote journalMapNote) ? journalMapNote : null;
     this._HasBeenVisited = null;
 }
 public JournalFacts(JournalMapNote jmn)
 {
     this.entry           = jmn;
     this._directionsTo   = String.Empty;
     this._hasBeenVisited = null;
 }