示例#1
0
 public void InitThelmore()
 {
     if (TOWN == null)
     {
         TOWN = this;
     }
     else
     {
         Destroy(this);
     }
     //Initialize time system
     TimeManager.AdvanceTime(0f);
     //Initialize status bar
     StatusBar.GetComponent <StatusBarManager>().UpdateStatusBar();
     //Set Store Button bools based on loaded SaveGame
     showBank = false;  if (SaveGame.current.TAGS.Contains("Thelmore_Bank_Open"))
     {
         showBank = true;
     }
     showBarracks = false;  if (SaveGame.current.TAGS.Contains("Thelmore_Barracks_Open"))
     {
         showBarracks = true;
     }
     showInn = false;  if (SaveGame.current.TAGS.Contains("Thelmore_Inn_Open"))
     {
         showInn = true;
     }
     showRoad = false;  if (SaveGame.current.TAGS.Contains("Thelmore_Road_Open"))
     {
         showRoad = true;
     }
     showSmith = false; if (SaveGame.current.TAGS.Contains("Thelmore_Smith_Open"))
     {
         showSmith = true;
     }
     showTavern = false; if (SaveGame.current.TAGS.Contains("Thelmore_Tavern_Open"))
     {
         showTavern = true;
     }
     showTemple = false;  if (SaveGame.current.TAGS.Contains("Thelmore_Temple_Open"))
     {
         showTemple = true;
     }
     showItemShop = false; if (SaveGame.current.TAGS.Contains("Thelmore_Tools_Open"))
     {
         showItemShop = true;
     }
     showTownHall = false; if (SaveGame.current.TAGS.Contains("Thelmore_TownHall_Open"))
     {
         showTownHall = true;
     }
     showVoncar = false; if (SaveGame.current.TAGS.Contains("Thelmore_Magic_Open"))
     {
         showVoncar = true;
     }
     showWell = false; if (SaveGame.current.TAGS.Contains("Thelmore_Well_Open"))
     {
         showWell = true;
     }
 }
示例#2
0
 public void AddAdventurerToParty()
 {
     Debug.Log("Added " + SaveGame.current.NPCS[adventurerIndexSelected].pcName + " to party");
     if (SaveGame.current.GROUP.Count < 9)
     {
         SaveGame.current.NPCS[adventurerIndexSelected].pcStatus = "In Party";
         SaveGame.current.GROUP.Add(SaveGame.current.NPCS[adventurerIndexSelected]);
         StatusBar.GetComponent <StatusBarManager>().UpdateStatusBar();
         SaveAndLoad.Save(); Debug.Log("Saving savegame");
     }
 }