Commit d2717eef by 赵国君

minor changes

parent cdf861c3
...@@ -832,11 +832,7 @@ public class ActionUtils { ...@@ -832,11 +832,7 @@ public class ActionUtils {
try{ try{
platformUtils = new PlatformUtils(); platformUtils = new PlatformUtils();
//helper.deleteUserData(botId);
idList = platformUtils.queryConditionIdByTypetreeId(parameters.getJSONArray("conditionCategories")); idList = platformUtils.queryConditionIdByTypetreeId(parameters.getJSONArray("conditionCategories"));
id2unit = engine.queryUnitsByIdList(idList); id2unit = engine.queryUnitsByIdList(idList);
for(Integer id:id2unit.keySet()){ for(Integer id:id2unit.keySet()){
......
...@@ -985,14 +985,15 @@ public class PlotConstructor2 extends ElementConstructor { ...@@ -985,14 +985,15 @@ public class PlotConstructor2 extends ElementConstructor {
String feature = newTerm.getFeature(); String feature = newTerm.getFeature();
feature = feature + ",activate,post::gameQA(" + QA_URL + ")"; feature = feature + ",activate,post::gameQA(" + QA_URL + ")";
newTerm.setFeature(feature); newTerm.setFeature(feature);
newTerm.setNextStep(stemStr+"_qa1,"+stemStr+"_qa2"); newTerm.setNextStep("map*,item*,npc*," + stemStr+"_qa1,"+stemStr+"_qa2");
return newTerm; return newTerm;
} }
private ConfigTermText createTermExtra1(ConfigTermText term) { private ConfigTermText createTermExtra1(ConfigTermText term) {
String hPremise = "qa_score::number-Bigger=90"; String hPremise = "qa_score::number-BiggerOrEqual=98";
String featureStr = "match,activate,return-0"; String featureStr = "match,return-0";
String nextStr = "map*,item*,npc*"; //String nextStr = "map*,item*,npc*";
String nextStr = " ";
String knowledgeStr = UNKNOWN_COUNTER_NAME+":+1"; String knowledgeStr = UNKNOWN_COUNTER_NAME+":+1";
String configName = term.getConfigName()+"_qa1"; String configName = term.getConfigName()+"_qa1";
ConfigTermText newTerm = new ConfigTermText(" ", hPremise, featureStr, "", nextStr, knowledgeStr); ConfigTermText newTerm = new ConfigTermText(" ", hPremise, featureStr, "", nextStr, knowledgeStr);
...@@ -1002,9 +1003,9 @@ public class PlotConstructor2 extends ElementConstructor { ...@@ -1002,9 +1003,9 @@ public class PlotConstructor2 extends ElementConstructor {
} }
private ConfigTermText createTermExtra2(ConfigTermText term) { private ConfigTermText createTermExtra2(ConfigTermText term) {
String hPremise = "qa_score::number-Smaller=90"; String hPremise = "qa_score::number-Smaller=98";
String featureStr = "match,activate"; String featureStr = "match";
String nextStr = "map*,item*,npc*"; String nextStr = " ";
String configName = term.getConfigName()+"_qa2"; String configName = term.getConfigName()+"_qa2";
if(term.getFeature().indexOf("activate") != -1) { if(term.getFeature().indexOf("activate") != -1) {
nextStr = term.getNextStep() + "," + nextStr; nextStr = term.getNextStep() + "," + nextStr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment