Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mathieu Féry
mobile21
Commits
db9d870c
Commit
db9d870c
authored
Dec 11, 2020
by
Mathieu Féry (Mathius)
Browse files
Patch process for DnDSheet
parent
b3dc47f1
Pipeline
#23355
failed with stages
in 2 minutes and 33 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
app/src/main/java/fr/iutnantes/miar/dndgenerator/api/dnd/DnDSheet.java
View file @
db9d870c
...
...
@@ -1345,12 +1345,12 @@ public class DnDSheet implements Serializable {
languages
.
add
(
lang
.
getAsString
());
List
<
String
>
equipment
=
new
ArrayList
<>();
if
(
json
.
get
(
"equipment"
)
!=
jsonNull
)
for
(
JsonElement
lang
:
json
.
get
(
"equipment"
).
getAsJsonArray
())
languages
.
add
(
lang
.
getAsString
());
for
(
JsonElement
equip
:
json
.
get
(
"equipment"
).
getAsJsonArray
())
equipment
.
add
(
equip
.
getAsString
());
List
<
String
>
notes
=
new
ArrayList
<>();
if
(
json
.
get
(
"
languag
es"
)
!=
jsonNull
)
for
(
JsonElement
lang
:
json
.
get
(
"
languag
es"
).
getAsJsonArray
())
languag
es
.
add
(
lang
.
getAsString
());
if
(
json
.
get
(
"
not
es"
)
!=
jsonNull
)
for
(
JsonElement
note
:
json
.
get
(
"
not
es"
).
getAsJsonArray
())
not
es
.
add
(
note
.
getAsString
());
List
<
String
>
spells
=
new
ArrayList
<>();
if
(
json
.
get
(
"spell"
)
!=
jsonNull
)
for
(
JsonElement
spell
:
json
.
get
(
"spell"
).
getAsJsonArray
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment