private void Register(IShopPersonalityTrait trait, params int[] npcIds) { for (int index = 0; index < npcIds.Length; ++index) { this.Register(trait, npcIds[index]); } }
private void Register(IShopPersonalityTrait trait, params int[] npcIds) { for (int i = 0; i < npcIds.Length; i++) { Register(trait, npcIds[i]); } }
private void Register(IShopPersonalityTrait trait, int npcId) { if (!this._personalityProfiles.ContainsKey(npcId)) { this._personalityProfiles[npcId] = new PersonalityProfile(); } this._personalityProfiles[npcId].ShopModifiers.Add(trait); }