Aura.Channel.Scripting.Scripts.NpcScript.UpdateRelationAfterGreet C# (CSharp) 메소드

UpdateRelationAfterGreet() 공개 메소드

Updates relation between NPC and Player based on current relation values.
Handles common update of relation values, which almost all NPCs do, after greeting the player on the start of a Conversation.
public UpdateRelationAfterGreet ( ) : void
리턴 void
		public void UpdateRelationAfterGreet()
		{
			if (Memory <= 0)
			{
				Memory = 1;
			}
			else if (Memory == 1)
			{
			}
			else if (Memory <= 6 && Stress == 0)
			{
				Memory += 1;
				Stress += 5;
			}
			else if (Stress == 0)
			{
				Memory += 1;
				Stress += 10;
			}

			// Show relation values to devCATs for debugging
			if (this.Player.Titles.SelectedTitle == TitleId.devCAT)
				this.Msg(string.Format("-Debug-<br/>Favor: {0}<br/>Memory: {1}<br/>Stress: {2}", this.Favor, this.Memory, this.Stress));
		}