Пример #1
0
        public void Difficulty_Get()
        {
            var terrariaPlayer = new Terraria.Player {
                difficulty = (byte)CharacterDifficulty.Journey
            };
            var character = new OrionCharacter(terrariaPlayer);

            Assert.Equal(CharacterDifficulty.Journey, character.Difficulty);
        }
Пример #2
0
        public void Difficulty_Set()
        {
            var terrariaPlayer = new Terraria.Player();
            var character      = new OrionCharacter(terrariaPlayer);

            character.Difficulty = CharacterDifficulty.Journey;

            Assert.Equal(CharacterDifficulty.Journey, (CharacterDifficulty)terrariaPlayer.difficulty);
        }
Пример #3
0
        public OrionPlayer(int playerIndex, Terraria.Player terrariaPlayer, IEventManager events, ILogger log)
            : base(playerIndex, terrariaPlayer)
        {
            Debug.Assert(events != null);
            Debug.Assert(log != null);

            _events = events;
            _log    = log;

            Character = new OrionCharacter(terrariaPlayer);
            Buffs     = new BuffArray(terrariaPlayer);
            Inventory = new InventoryArray(terrariaPlayer);
        }