Exemple #1
0
        public void DungeonTransition()
        {
            // Called when the player has completed a layer of a dungeon
            // Examples: reaching the dungeon exit; using an item

            UpdateDungeonValues();
            InitiateNewLocation();

            GenerateItemList();

            RemoveAllPassives();

            EnemyNPCs.Clear();
            EnemyPosX.Clear();
            EnemyPosY.Clear();

            Gamestate.TimeSinceMerchantSpawn = Gamestate.TimeSinceMerchantSpawn + 1;

            CreateListsOfNPCs();

            Gamestate.Location = Location.Name;
        }
Exemple #2
0
 public void RemoveEnemyFromList(Enemy e)
 {
     EnemyNPCs.Remove(e);
 }