|
@@ -37,7 +37,7 @@ import java.util.Objects;
|
|
|
@Data
|
|
|
@Document
|
|
|
@FieldDefaults(level = AccessLevel.PRIVATE)
|
|
|
-public class BasicsProperty {
|
|
|
+public class BasicProperty {
|
|
|
@Id
|
|
|
String id;
|
|
|
/** 生命值 */
|
|
@@ -63,24 +63,24 @@ public class BasicsProperty {
|
|
|
/** 怒气 */
|
|
|
int anger;
|
|
|
|
|
|
- public BasicsProperty plus(BasicsProperty basicsProperty) {
|
|
|
+ public BasicProperty plus(BasicProperty basicProperty) {
|
|
|
|
|
|
- if (Objects.isNull(basicsProperty)) {
|
|
|
- basicsProperty = new BasicsProperty();
|
|
|
+ if (Objects.isNull(basicProperty)) {
|
|
|
+ basicProperty = new BasicProperty();
|
|
|
}
|
|
|
|
|
|
- BasicsProperty the = new BasicsProperty();
|
|
|
- the.hp = this.hp + basicsProperty.hp;
|
|
|
- the.mp = this.mp + basicsProperty.mp;
|
|
|
- the.physicsAttack = this.physicsAttack + basicsProperty.physicsAttack;
|
|
|
- the.physicsDefense = this.physicsDefense + basicsProperty.physicsDefense;
|
|
|
- the.magicAttack = this.magicAttack + basicsProperty.magicAttack;
|
|
|
- the.magicDefense = this.magicDefense + basicsProperty.magicDefense;
|
|
|
- the.treatAttack = this.treatAttack + basicsProperty.treatAttack;
|
|
|
- the.sealAttack = this.sealAttack + basicsProperty.sealAttack;
|
|
|
- the.sealDefense = this.sealDefense + basicsProperty.sealDefense;
|
|
|
- the.speed = this.speed + basicsProperty.speed;
|
|
|
- the.anger = this.anger + basicsProperty.anger;
|
|
|
+ BasicProperty the = new BasicProperty();
|
|
|
+ the.hp = this.hp + basicProperty.hp;
|
|
|
+ the.mp = this.mp + basicProperty.mp;
|
|
|
+ the.physicsAttack = this.physicsAttack + basicProperty.physicsAttack;
|
|
|
+ the.physicsDefense = this.physicsDefense + basicProperty.physicsDefense;
|
|
|
+ the.magicAttack = this.magicAttack + basicProperty.magicAttack;
|
|
|
+ the.magicDefense = this.magicDefense + basicProperty.magicDefense;
|
|
|
+ the.treatAttack = this.treatAttack + basicProperty.treatAttack;
|
|
|
+ the.sealAttack = this.sealAttack + basicProperty.sealAttack;
|
|
|
+ the.sealDefense = this.sealDefense + basicProperty.sealDefense;
|
|
|
+ the.speed = this.speed + basicProperty.speed;
|
|
|
+ the.anger = this.anger + basicProperty.anger;
|
|
|
|
|
|
return the;
|
|
|
}
|