MalitsPlus / ShizuruNotes

An unofficial Android tool application for "Princess Connect Re:Dive"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

动作数量超过10的潜在bug

cc004 opened this issue · comments

更新action数量后,代码中富含的action = detail % 10应该都有可能出bug

if (ifType != null)
trueClause = I18N.getString(R.string.use_d1_to_s2_if_s3,
actionDetail2 % 100, targetParameter.buildTargetClause(true), ifType.description());
} else if(actionDetail1 >= 0 && actionDetail1 < 100){
trueClause = I18N.getString(R.string.d1_chance_use_d2,
actionDetail1, actionDetail2 % 10);
} else if(actionDetail1 >=500 && actionDetail1 <= 512) {
trueClause = I18N.getString(R.string.use_d1_if_s2_has_s3,
actionDetail2 % 10, targetParameter.buildTargetClause(), ifType.description());

感谢反馈。
目前把搜到的都替换掉了,可能还有一小部分不容易发现的漏网之鱼,只有等出问题的时候再补救了。