Aura.Channel.World.Dungeons.Props.Door.RemoveKey C# (CSharp) Метод

RemoveKey() приватный Метод

Returns true if character has the key to unlock this door, and removes it from his inventory.
private RemoveKey ( Creature character ) : bool
character Aura.Channel.World.Entities.Creature
Результат bool
		private bool RemoveKey(Creature character)
		{
			// Check key
			var key = character.Inventory.GetItem(item => (item.Info.Id == 70029 || item.Info.Id == 70030) && item.MetaData1.GetString("prop_to_unlock") == this.Name);
			if (key == null)
				return false;

			// Remove key
			character.Inventory.Remove(key);
			return true;
		}