All Downloads are FREE. Search and download functionalities are using the official Maven repository.

reader.number.default.yml Maven / Gradle / Ivy

The newest version!
Default:
  type: number
  matchers:
    #左边是捕获组id 右边是运算操作
    #捕获组id只能包含 a-z A-Z 0-9 
    #运算操作:
    #- plus 加
    #- max 取最大
    #- min 取最小
    #- reduce 减
    #- scalar 乘
    percentMax: plus
    percentMin: plus
    valueMin: plus
    valueMax: plus
    percent: plus
    value: plus
    valueAddition: plus
    percentAddition: plus
    mul: scalar
  #匹配模式(正则)
  #从上到下先后匹配
  #特殊字符要转义
  #捕获组id只能包含 a-z A-Z 0-9 
  patterns:
    # 攻击力: 11-23 %
    - "{name}.*?-.*?%"
    # 攻击力: 10-20
    - "{name}.*?-"
    # 攻击力: 10 (+20) %
    - "{name}.*?.*?\\(\\).*?%"
    # 攻击力: 10 %
    - "{name}.*?.*?%"
    #  攻击力*10
    - "{name}.*?\\*.*?"
    # 攻击力: 100 (+50)
    - "{name}.*?.*?\\(\\)"
    # 攻击力: 100  /  攻击力 100
    - "{name}.*?"
    #  100 攻击力 +100
    - ".*?{name}.*?"
    #  100 攻击力
    - ".*?{name}"
  #变量(PAPI / PouPAPI)
  #调用变量格式: %as_att:属性ID_下面的id%
  placeholders:
    #占位符id
    # 可通过 %as_att:属性id_占位符id 调用%
    #可带入捕获组 与 其他 占位符 的值
    #优先带入捕获组的
    # total min max 必须写
    total: "(  )*( 1 + () ) * { if check  == 0 then 1 else  }"
    min: "( +  + )*( 1 + () ) "
    max: "( +  + )*( 1 + () )"
    mul: 
    value:  + 
    percent: ( + ) /100
    valueMin:  + 
    valueMax:  + 
    percentMin: ( + ) /100
    percentMax: ( + ) /100
    valueRandom:  +  + {random  to }
    percentRandom: (( + ()/100) + {random  to }/100)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy