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

ModifyRelation() публичный Метод

Modifies memory, favor, and stress and sends random reaction message based on the favor change.
public ModifyRelation ( int memory, int favor, int stress ) : void
memory int
favor int
stress int
Результат void
		public virtual void ModifyRelation(int memory, int favor, int stress)
		{
			if (memory != 0) this.Memory += memory;
			if (favor != 0) this.Favor += favor;
			if (stress != 0) this.Stress += stress;

			// Seem to be multiple levels? -5, -2, 0, 2, 5?

			var msg = "";
			if (favor >= 0)
			{
				msg = this.Rnd(
					Localization.Get("(I think I left a good impression.)"),
					Localization.Get("(The conversation drew a lot of interest.)"),
					Localization.Get("(That was a great conversation!)")
					// (It seems I left quite a good impression.)
			   );
			}
			else
			{
				msg = this.Rnd(
					Localization.Get("(A bit of frowning is evident.)"),
					Localization.Get("(Seems like this person did not enjoy the conversation.)"),
					Localization.Get("(A disapproving look, indeed.)")
			   );
			}

			this.Msg(Hide.Name, FavorExpression(), msg);
		}