@Override public void init(SkillCommon skillCommon, ConfSkillEffect conf) { // 父类方法初始化了范围前三个参数 super.init(skillCommon, conf); buffSn = Utils.intValue(conf.param1); buffProp = Utils.intValue(conf.param2); if (buffProp == 0) { buffProp = 100; } }
public static int[] parseIntArray(String value) { if (value == null) value = ""; if (StringUtils.isEmpty(value)) { return new int[0]; } String[] elems = value.split(","); if (elems.length > 0) { int[] temp = new int[elems.length]; for (int i = 0; i < elems.length; i++) { temp[i] = Utils.intValue(elems[i]); } return temp; } return null; }