lesuixin / Hearthstone-Hearthbuddy

Hearthstone 炉石传说 Hearthbuddy 炉石兄弟
549 stars 121 forks source link

自动识别新皮肤 auto distinguish new skins #25

Open lesuixin opened 3 years ago

lesuixin commented 3 years ago

游戏更新了很多皮肤,自动识别新皮肤 game update many skins, auto distinguish new skins

lesuixin commented 3 years ago
修改change  Routines\DefaultRoutine\silverfish_HB.cs
silverfish_HB里面找this.heroname和this.enemyHeroname替换我发那两句。

原本的两句 original two sentences
if (controller == ownController) {
this.heroname = Hrtprozis.Instance.heroIDtoName(cardId);
else if (controller == enemyController) {
this.enemyHeroname = Hrtprozis.Instance.heroIDtoName(cardId);

替换为 replace with
this.heroname = GameState.Get().GetFriendlySidePlayer().GetHero().GetClass().ToString().ToLower();
this.enemyHeroname = GameState.Get().GetOpposingSidePlayer().GetHero().GetClass().ToString().ToLower();

修改后运行,日志会显示 after replace, UltimateLogs show
异常,不认识敌方英雄:None
recalc-check###########
然后就行了, then it is ok

修改silverfish_HB.zip

IrvingZou commented 3 years ago

为什么替换了以后就找不到李文浩大佬的策略了

Greatlakess commented 3 years ago

替换之后统计插件失效,这个能修复吗

lesuixin commented 3 years ago

替换之后的统计插件失效,这个能修复吗

不替换,统计插件也失效