public void StartGame() { Game.PlayerStats.HeadPiece = m_selectedLineageObj.HeadPiece; Game.PlayerStats.ShoulderPiece = m_selectedLineageObj.ShoulderPiece; Game.PlayerStats.ChestPiece = m_selectedLineageObj.ChestPiece; Game.PlayerStats.IsFemale = m_selectedLineageObj.IsFemale; Game.PlayerStats.Class = m_selectedLineageObj.Class; Game.PlayerStats.Traits = m_selectedLineageObj.Traits; Game.PlayerStats.Spell = m_selectedLineageObj.Spell; Game.PlayerStats.PlayerName = m_selectedLineageObj.PlayerName; Game.PlayerStats.Age = m_selectedLineageObj.Age; Game.PlayerStats.ChildAge = m_selectedLineageObj.ChildAge; if (Game.PlayerStats.Class == 1 || Game.PlayerStats.Class == 9) { Game.PlayerStats.WizardSpellList = SpellType.GetNext3Spells(); } Game.PlayerStats.CurrentBranches.Clear(); (ScreenManager as RCScreenManager).DisplayScreen(15, true); }
public void TakeItem() { RoomCompleted = true; Game.PlayerStats.Spell = Spell; if (Game.PlayerStats.Class == 9) { Game.PlayerStats.WizardSpellList = SpellType.GetNext3Spells(); } Spell = 0; m_speechBubble.Visible = false; m_icon.Visible = false; (Game.ScreenManager.CurrentScreen as ProceduralLevelScreen).UpdatePlayerSpellIcon(); var list = new List <object>(); list.Add(new Vector2(m_icon.X, m_icon.Y - m_icon.Height / 2f)); list.Add(4); list.Add(new Vector2(Game.PlayerStats.Spell, 0f)); (Player.AttachedLevel.ScreenManager as RCScreenManager).DisplayScreen(12, true, list); Tween.RunFunction(0f, Player, "RunGetItemAnimation"); }