public Player(Level l) : base(l, "dickbutt", 50, true) { Sanity = new Stat("Sanity", 30, true, Player.SanityDesc); Sanity.Value -= 5; MainPlayer = this; this.Character = '@'; this.ViewPriority = Int32.MaxValue; }
private void AddPlayer() { Point playerPoint; do { playerPoint = new Point(DarkRL.Random.getInt(0, Width), DarkRL.Random.getInt(0, Height)); } while (!this[playerPoint].IsWalkable); Player player = new Player(this); Lantern lantern = new Lantern(this); //player.AddItem(lantern); player.Equip(lantern); this.AddEntity(this[playerPoint].ID, player); this.AddEntity(lantern); for (int i = 0; i < 5; ++i) { Torch t = new Torch(this); player.AddItem(t); this.AddEntity(t); } }