|
@@ -114,11 +114,13 @@ namespace Yuuna
|
|
{
|
|
{
|
|
public static void Main(string[] args)
|
|
public static void Main(string[] args)
|
|
{
|
|
{
|
|
|
|
+
|
|
|
|
+
|
|
var canResponses = new Response[]
|
|
var canResponses = new Response[]
|
|
{
|
|
{
|
|
(Moods.Sad, "我不清楚你想做什麼 OvQ"),
|
|
(Moods.Sad, "我不清楚你想做什麼 OvQ"),
|
|
(Moods.Sad, "我不懂你想幹嘛 QAQ"),
|
|
(Moods.Sad, "我不懂你想幹嘛 QAQ"),
|
|
- (Moods.Sad, "我不知道你是什麼意思 OHQ"),
|
|
|
|
|
|
+ (Moods.Sad, "我不知道你想幹嘛 OHQ"),
|
|
};
|
|
};
|
|
|
|
|
|
var antonyms = new[]
|
|
var antonyms = new[]
|
|
@@ -201,6 +203,11 @@ namespace Yuuna
|
|
|
|
|
|
case Status.Proposition:
|
|
case Status.Proposition:
|
|
{
|
|
{
|
|
|
|
+ //我: 開
|
|
|
|
+ //悠: 你是想要開房門嗎?
|
|
|
|
+ //我: 對
|
|
|
|
+ //悠: 我不知道你想幹嘛 OHQ
|
|
|
|
+
|
|
var sb = new StringBuilder();
|
|
var sb = new StringBuilder();
|
|
var current = alternative.Matches[0];
|
|
var current = alternative.Matches[0];
|
|
|
|
|
|
@@ -226,14 +233,10 @@ namespace Yuuna
|
|
interactor.OnReceive(r);
|
|
interactor.OnReceive(r);
|
|
goto Leave;
|
|
goto Leave;
|
|
}
|
|
}
|
|
- else
|
|
|
|
|
|
+ else if(type.Equals(Antonym.TypeKinds.Negative))
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
- else
|
|
|
|
- goto Unknown;
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
|
|
|
|
sb.Clear();
|
|
sb.Clear();
|
|
|
|
|
|
@@ -263,14 +266,11 @@ namespace Yuuna
|
|
interactor.OnReceive(r);
|
|
interactor.OnReceive(r);
|
|
goto Leave;
|
|
goto Leave;
|
|
}
|
|
}
|
|
- else
|
|
|
|
|
|
+ else if (type.Equals(Antonym.TypeKinds.Negative))
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
- else
|
|
|
|
- goto Unknown;
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
- Unknown:
|
|
|
|
|
|
+
|
|
interactor.OnReceive(canResponses.RandomTakeOne());
|
|
interactor.OnReceive(canResponses.RandomTakeOne());
|
|
|
|
|
|
Leave:
|
|
Leave:
|