Aura.Channel.Scripting.Scripts.NpcScript.SetGiftWeights C# (CSharp) Метод

SetGiftWeights() защищенный Метод

Sets the gift weights.
protected SetGiftWeights ( float adult, float anime, float beauty, float individuality, float luxury, float maniac, float meaning, float rarity, float sexy, float toughness, float utility ) : void
adult float How much the NPC likes "adult" items.
anime float How much the NPC likes "anime" items.
beauty float How much the NPC likes "beauty" items.
individuality float How much the NPC likes "indiv" items.
luxury float How much the NPC likes "luxury" items.
maniac float How much the NPC likes "maniac" items.
meaning float How much the NPC likes "meaning" items.
rarity float How much the NPC likes "rarity" items.
sexy float How much the NPC likes "sexy" items.
toughness float How much the NPC likes "toughness" items.
utility float How much the NPC likes "utility" items.
Результат void
		protected void SetGiftWeights(float adult, float anime, float beauty, float individuality, float luxury, float maniac, float meaning, float rarity, float sexy, float toughness, float utility)
		{
			if (this.NPC == null)
				throw new InvalidOperationException("NPC's race has to be set first.");

			this.NPC.GiftWeights.Adult = adult;
			this.NPC.GiftWeights.Anime = anime;
			this.NPC.GiftWeights.Beauty = beauty;
			this.NPC.GiftWeights.Individuality = individuality;
			this.NPC.GiftWeights.Luxury = luxury;
			this.NPC.GiftWeights.Maniac = maniac;
			this.NPC.GiftWeights.Meaning = meaning;
			this.NPC.GiftWeights.Rarity = rarity;
			this.NPC.GiftWeights.Sexy = sexy;
			this.NPC.GiftWeights.Toughness = toughness;
			this.NPC.GiftWeights.Utility = utility;
		}