Commit cfbdc0de authored by YSPplayer's avatar YSPplayer Committed by GitHub

Update dialog and bot Zefra (#167)

parent d5995341
...@@ -213,3 +213,8 @@ SUPPORT_MASTER_RULE_2020 ...@@ -213,3 +213,8 @@ SUPPORT_MASTER_RULE_2020
Name=神数不神 Deck=Tearlaments Dialog=Zefra.zh-CN Name=神数不神 Deck=Tearlaments Dialog=Zefra.zh-CN
旧式地天使珠泪哀歌族卡组。 旧式地天使珠泪哀歌族卡组。
AI_LV3 SUPPORT_MASTER_RULE_2020 AI_LV3 SUPPORT_MASTER_RULE_2020
!神数不神-神数
Name=神数不神 Deck=Zefra Dialog=Zefra.zh-CN
神数卡组。
AI_LV3 SUPPORT_MASTER_RULE_2020
...@@ -50,5 +50,10 @@ ...@@ -50,5 +50,10 @@
"乎,我发动{0}!", "乎,我发动{0}!",
"不好意思拉,我有{0}", "不好意思拉,我有{0}",
"哈哈,发动{0}的效果!" "哈哈,发动{0}的效果!"
],
"custom": [
"呱!本体出征!",
"凸(艹皿艹 )卡手不玩拉!!!",
"嘿不慌,还有摆子场( ̄y▽ ̄)╭"
] ]
} }
This diff is collapsed.
...@@ -34,7 +34,9 @@ namespace WindBot.Game.AI ...@@ -34,7 +34,9 @@ namespace WindBot.Game.AI
[DataMember] [DataMember]
public string[] setmonster { get; set; } public string[] setmonster { get; set; }
[DataMember] [DataMember]
public string[] chaining { get; set; } public string[] chaining { get; set; }
[DataMember]
public string[] custom { get; set; }
} }
public class Dialogs public class Dialogs
{ {
...@@ -53,7 +55,8 @@ namespace WindBot.Game.AI ...@@ -53,7 +55,8 @@ namespace WindBot.Game.AI
private string[] _summon; private string[] _summon;
private string[] _setmonster; private string[] _setmonster;
private string[] _chaining; private string[] _chaining;
private string[] _custom;
public Dialogs(GameClient game) public Dialogs(GameClient game)
{ {
_game = game; _game = game;
...@@ -75,6 +78,7 @@ namespace WindBot.Game.AI ...@@ -75,6 +78,7 @@ namespace WindBot.Game.AI
_summon = data.summon; _summon = data.summon;
_setmonster = data.setmonster; _setmonster = data.setmonster;
_chaining = data.chaining; _chaining = data.chaining;
_custom = data.custom;
} }
} }
...@@ -173,5 +177,14 @@ namespace WindBot.Game.AI ...@@ -173,5 +177,14 @@ namespace WindBot.Game.AI
if (message != "") if (message != "")
_game.Chat(message); _game.Chat(message);
} }
public void SendCustomChat(int index, params object[] opts)
{
if (!_game._chat || _custom == null)
return;
string message = string.Format(_custom[index], opts);
if (message != "")
_game.Chat(message);
}
} }
} }
...@@ -165,6 +165,7 @@ namespace WindBot.Game.AI ...@@ -165,6 +165,7 @@ namespace WindBot.Game.AI
// For overriding // For overriding
return null; return null;
} }
public virtual void OnSelectChain(IList<ClientCard> cards) public virtual void OnSelectChain(IList<ClientCard> cards)
{ {
return; return;
......
...@@ -54,6 +54,14 @@ namespace WindBot.Game ...@@ -54,6 +54,14 @@ namespace WindBot.Game
_dialogs.SendDuelStart(); _dialogs.SendDuelStart();
} }
/// <summary>
/// Customized called when the AI do something in a duel.
/// </summary>
public void SendCustomChat(int index, params object[] opts)
{
_dialogs.SendCustomChat(index, opts);
}
/// <summary> /// <summary>
/// Called when the AI do the rock-paper-scissors. /// Called when the AI do the rock-paper-scissors.
/// </summary> /// </summary>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment