level 12
有没有吧友carddb搞好的分我一份,正则表达式懒得去研究了
2019年04月19日 08点04分
23
有确不完整,有部分描述缺失的。。。
2019年04月19日 08点04分
@風▎焱へ连城 那个不影响,要不要愉快的分享一下,或者私我
2019年04月19日 08点04分
level 11
想问下 大佬 playedthisturn的含义是这个回合打出的 而不是这个回合攻击过对吧
2019年04月20日 00点04分
25
是的,攻击次数是另一个
2019年04月20日 03点04分
level 7
突袭能识别 但还是会走脸 是哪层楼抽了 有些东西没弄吗?
2019年04月21日 10点04分
29
解决了!根据上一楼层的提示,在LZ的基础上 minion.cs的570行左右的updateReadyness()函数里最下边加了一行if (rush >= 1 && charge == 0 && playedThisTurn) cantAttackHeroes = true; 突袭怪首回合就不会打脸了
2019年04月21日 14点04分
十分抱歉,感谢吧友指正。之前删改了一些,没有进行进一步测试
2019年04月21日 15点04分
level 10
楼主能问个问题吗,为什么怎么都不会用松鼠和守卫梦境之路,一直在手上不出。
2019年04月22日 01点04分
32
可能是carddb.TXT 没加也可能是在carddb.cs 里面没有声明
2019年04月22日 01点04分
@朱泙漫 嗯我用的就是那个,已经整合了的,都有声明和调用了
2019年04月22日 03点04分
level 12
using System;
using System.Collections.Generic;
using System.Text;
namespace HREngine.Bots
{
class Sim_TRL_065: SimTemplate //* 祖尔金
{
// Battlecry: Summon all friendly Demons that died this game.
CardDB cdb = CardDB.Instance;
CardDB.Card kid = CardDB.Instance.getCardDataFromID(CardDB.cardIDEnum.LOOT_077t);//Wolf
CardDB.Card kid2 = CardDB.Instance.getCardDataFromID(CardDB.cardIDEnum.DAL_378t1);//双足飞龙
CardDB.Card kid3 = CardDB.Instance.getCardDataFromID(CardDB.cardIDEnum.NEW1_032);//misha
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
p.setNewHeroPower(CardDB.cardIDEnum.TRL_065h, ownplay); //
if (ownplay) p.ownHero.armor += 5;
else p.enemyHero.armor += 5;
int pos =(ownplay) ? p.ownMinions.Count : p.enemyMinions.Count;
if(ownplay)
{
foreach (KeyValuePair<CardDB.cardIDEnum, int> e in Probabilitymaker.Instance.ownCardsOut)
{
kid = cdb.getCardDataFromID(e.Key);
if (kid.type == CardDB.cardtype.SPELL)
{
{
if (kid.Secret)
{
if (p.ownSecretsIDList.Count < 5 && !p.ownSecretsIDList.Contains(kid.cardIDenum))
p.ownSecretsIDList.Add(kid.cardIDenum);
}
else
{
for(int i=0;i<e.Value;i++)
{
kid.sim_card.onCardPlay(p,ownplay,(p.ownMinions.Count!=0||p.ownMinions.Count!=0)?(p.ownMinions.Count>=p.ownMinions.Count? p.searchRandomMinion(p.ownMinions, searchmode.searchHighestAttack):p.searchRandomMinion(p.enemyMinions, searchmode.searchHighestAttack)):p.enemyHero,2);
}
}
}
}
}
}
}
}
}
2019年05月06日 07点05分
35
重写了祖尔金
2019年05月06日 07点05分
跟最原始的版本有哪些差别
2019年05月11日 10点05分
level 6
修改后报错:
2019-09-15 14:31:19,693 [7] ERROR AssemblyLoader`1 (null) - Compiler Error: c:\Users\CB\Desktop\Hearthbuddy 0.3.1446.417\Routines\DefaultRoutine\silverfish_HB.cs(745,38) : error CS1061: “Triton.Game.HSCard”不包含“HasRush”的定义,并且找不到可接受类型为“Triton.Game.HSCard”的第一个参数的扩展方法“HasRush”(是否缺少 using 指令或程序集引用?)
请版主,大神解惑 谢谢
2019年09月15日 15点09分
39