/// <summary> /// Gets if this <see cref="LogicNpcData"/> is unlocked on the map of specified avatar. /// </summary> public bool IsUnlockedInMap(LogicClientAvatar avatar) { if (!this.AlwaysUnlocked) { if (!string.IsNullOrEmpty(this.MapInstanceName)) { if (this._dependencies != null) { for (int i = 0; i < this._dependencies.Count; i++) { if (avatar.GetNpcStars(this._dependencies[i]) > 0) { return(true); } } } } return(false); } return(true); }