Skip to content

Commit

Permalink
增加按默认顺序派遣动物伙伴选项 (constanline#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
JiangAshao authored Dec 6, 2024
1 parent 576c54e commit daf8069
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ public class AntForestV2 extends ModelTask {
private BooleanModelField greenLife;
private BooleanModelField combineAnimalPiece;
private BooleanModelField consumeAnimalProp;
private BooleanModelField sequenceAnimalProp;
private SelectModelField whoYouWantToGiveTo;
private BooleanModelField ecoLife;
private SelectModelField ecoLifeOptions;
Expand Down Expand Up @@ -213,6 +214,7 @@ public ModelFields getFields() {
modelFields.addField(userPatrol = new BooleanModelField("userPatrol", "保护地巡护", false));
modelFields.addField(combineAnimalPiece = new BooleanModelField("combineAnimalPiece", "合成动物碎片", false));
modelFields.addField(consumeAnimalProp = new BooleanModelField("consumeAnimalProp", "派遣动物伙伴", false));
modelFields.addField(sequenceAnimalProp = new BooleanModelField("sequenceAnimalProp", "动物伙伴顺序", false));
modelFields.addField(receiveForestTaskAward = new BooleanModelField("receiveForestTaskAward", "森林任务", false));
modelFields.addField(collectGiftBox = new BooleanModelField("collectGiftBox", "领取礼盒", false));
modelFields.addField(medicalHealth = new BooleanModelField("medicalHealth", "医疗健康", false));
Expand Down Expand Up @@ -2106,6 +2108,9 @@ private void queryAnimalPropList() {
animalProp = jo;
}
}
if (sequenceAnimalProp.getValue()) {
animalProp = animalProps.getJSONObject(0);
}
consumeAnimalProp(animalProp);
} catch (Throwable t) {
Log.i(TAG, "queryAnimalPropList err:");
Expand Down Expand Up @@ -2754,4 +2759,4 @@ public interface UsePropType {

String[] nickNames = {"关闭", "所有道具", "限时道具"};
}
}
}

0 comments on commit daf8069

Please sign in to comment.