Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lesuixin opened this issue Nov 5, 2021 · 4 comments
Open

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

lesuixin opened this issue Nov 5, 2021 · 4 comments

Comments

@lesuixin
Copy link
Owner

lesuixin commented Nov 5, 2021

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

@lesuixin
Copy link
Owner Author

lesuixin commented Nov 5, 2021

修改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
Copy link

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

@Greatlakess
Copy link

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

@lesuixin
Copy link
Owner Author

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

不替换,统计插件也失效

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants