|
@@ -18,7 +18,7 @@
|
|
|
*/
|
|
|
package com.iohao.mmo.equip.entity;
|
|
|
|
|
|
-import com.iohao.mmo.equip.utils.RandomUtils;
|
|
|
+import com.iohao.mmo.common.kit.RandomKit;
|
|
|
import lombok.AccessLevel;
|
|
|
import lombok.Builder;
|
|
|
import lombok.Data;
|
|
@@ -68,37 +68,37 @@ public class FixedEquipProperty {
|
|
|
return FixedEquipProperty.builder().build();
|
|
|
return FixedEquipProperty.builder()
|
|
|
.hp(
|
|
|
- RandomUtils.randomFromInt(fixedEquipPropertyMin.getHp(),
|
|
|
+ RandomKit.randomFromInt(fixedEquipPropertyMin.getHp(),
|
|
|
fixedEquipPropertyMax.getHp()))
|
|
|
.mp(
|
|
|
- RandomUtils.randomFromInt(fixedEquipPropertyMin.getMp(),
|
|
|
+ RandomKit.randomFromInt(fixedEquipPropertyMin.getMp(),
|
|
|
fixedEquipPropertyMax.getMp()))
|
|
|
.physicsAttack(
|
|
|
- RandomUtils.randomFromInt(fixedEquipPropertyMin.getPhysicsAttack(),
|
|
|
+ RandomKit.randomFromInt(fixedEquipPropertyMin.getPhysicsAttack(),
|
|
|
fixedEquipPropertyMax.getPhysicsAttack()))
|
|
|
.physicsDefense(
|
|
|
- RandomUtils.randomFromInt(fixedEquipPropertyMin.getPhysicsDefense(),
|
|
|
+ RandomKit.randomFromInt(fixedEquipPropertyMin.getPhysicsDefense(),
|
|
|
fixedEquipPropertyMax.getMagicDefense()))
|
|
|
.magicAttack(
|
|
|
- RandomUtils.randomFromInt(fixedEquipPropertyMin.getMagicAttack(),
|
|
|
+ RandomKit.randomFromInt(fixedEquipPropertyMin.getMagicAttack(),
|
|
|
fixedEquipPropertyMax.getMagicAttack()))
|
|
|
.magicDefense(
|
|
|
- RandomUtils.randomFromInt(fixedEquipPropertyMin.getMagicDefense(),
|
|
|
+ RandomKit.randomFromInt(fixedEquipPropertyMin.getMagicDefense(),
|
|
|
fixedEquipPropertyMax.getMagicDefense()))
|
|
|
.treatAttack(
|
|
|
- RandomUtils.randomFromInt(fixedEquipPropertyMin.getTreatAttack(),
|
|
|
+ RandomKit.randomFromInt(fixedEquipPropertyMin.getTreatAttack(),
|
|
|
fixedEquipPropertyMax.getTreatAttack()))
|
|
|
.sealAttack(
|
|
|
- RandomUtils.randomFromInt(fixedEquipPropertyMin.getSealAttack(),
|
|
|
+ RandomKit.randomFromInt(fixedEquipPropertyMin.getSealAttack(),
|
|
|
fixedEquipPropertyMax.getSealAttack()))
|
|
|
.sealDefense(
|
|
|
- RandomUtils.randomFromInt(fixedEquipPropertyMin.getSealDefense(),
|
|
|
+ RandomKit.randomFromInt(fixedEquipPropertyMin.getSealDefense(),
|
|
|
fixedEquipPropertyMax.getSealDefense()))
|
|
|
.speed(
|
|
|
- RandomUtils.randomFromInt(fixedEquipPropertyMin.getSpeed(),
|
|
|
+ RandomKit.randomFromInt(fixedEquipPropertyMin.getSpeed(),
|
|
|
fixedEquipPropertyMax.getSpeed()))
|
|
|
.anger(
|
|
|
- RandomUtils.randomFromInt(fixedEquipPropertyMin.getAnger(),
|
|
|
+ RandomKit.randomFromInt(fixedEquipPropertyMin.getAnger(),
|
|
|
fixedEquipPropertyMax.getAnger()))
|
|
|
.build();
|
|
|
}
|