Example #1
0
 public override void OnLocalPlayerSpawn()
 {
     if (UseStartupPosition)
     {
         if (CurrentStartupPosition.ClearInventory)
         {
             Player.Local.Inventory.ClearInventory(CurrentStartupPosition.DestroyClearedItems);
         }
         if (CurrentStartupPosition.ClearWearables)
         {
             Player.Local.Wearables.ClearWearables();
         }
         if (!string.IsNullOrEmpty(CurrentStartupPosition.InventoryFillCategory))
         {
             Player.Local.Inventory.FillInventory(CurrentStartupPosition.InventoryFillCategory);
         }
         if (!string.IsNullOrEmpty(CurrentStartupPosition.WearableFillCategory))
         {
             Player.Local.Wearables.FillWearables(CurrentStartupPosition.WearableFillCategory);
         }
         for (int i = 0; i < CurrentStartupPosition.CurrencyToAdd.Count; i++)
         {
             Player.Local.Inventory.InventoryBank.Add(CurrentStartupPosition.CurrencyToAdd [i].Number, CurrentStartupPosition.CurrencyToAdd [i].Type);
         }
         if (CurrentStartupPosition.ClearLog)
         {
             Books.ClearLog();
             Missions.ClearLog();
             Conversations.ClearLog();
             Blueprints.ClearLog();
         }
         for (int i = 0; i < CurrentStartupPosition.BooksToAdd.Count; i++)
         {
             Books.AquireBook(CurrentStartupPosition.BooksToAdd [i]);
         }
     }
 }
Example #2
0
        public override void WakeUp()
        {
            base.WakeUp();

            Get = this;
        }