1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package de.kaiserpfalzedv.rpg.torg.model.actors;
19
20 import org.eclipse.microprofile.openapi.annotations.media.Schema;
21
22 import com.fasterxml.jackson.annotation.JsonInclude;
23
24 import de.kaiserpfalzedv.rpg.torg.model.core.Skill;
25 import lombok.AllArgsConstructor;
26 import lombok.Builder;
27 import lombok.EqualsAndHashCode;
28 import lombok.Getter;
29 import lombok.ToString;
30 import lombok.extern.jackson.Jacksonized;
31
32
33
34
35
36
37
38 @Jacksonized
39 @Builder(toBuilder = true)
40 @AllArgsConstructor
41 @Getter
42 @ToString
43 @EqualsAndHashCode
44 @JsonInclude(JsonInclude.Include.NON_ABSENT)
45 @Schema(description = "A single skill with its values")
46 public class SkillValue {
47 @Schema(description = "Name of the skill to use.")
48 private final Skill name;
49
50 @ToString.Exclude
51 @Schema(description = "The adds of this skill", nullable = true)
52 private final Integer adds;
53
54 @ToString.Exclude
55 @Schema(description = "The bonus to the skill", nullable = true)
56 private final Integer bonus;
57
58 @Schema(description = "The total value of this skill", nullable = true)
59 private final Integer value;
60
61 @Schema(description = "If the skill is favoured", nullable = true)
62 private final Boolean favoured;
63 }