Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
153280ea
Commit
153280ea
authored
May 28, 2022
by
Melledy
Browse files
Fix quest data parser
parent
a23b29b6
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/data/excels/QuestData.java
View file @
153280ea
...
...
@@ -81,24 +81,24 @@ public class QuestData extends GameResource {
}
public
void
onLoad
()
{
this
.
acceptConditons
=
acceptCond
.
stream
().
filter
(
p
->
p
.
T
ype
!=
null
).
map
(
QuestCondition:
:
new
).
toArray
(
QuestCondition
[]::
new
);
this
.
acceptConditons
=
acceptCond
.
stream
().
filter
(
p
->
p
.
_t
ype
!=
null
).
map
(
QuestCondition:
:
new
).
toArray
(
QuestCondition
[]::
new
);
acceptCond
=
null
;
this
.
finishConditons
=
finishCond
.
stream
().
filter
(
p
->
p
.
T
ype
!=
null
).
map
(
QuestCondition:
:
new
).
toArray
(
QuestCondition
[]::
new
);
this
.
finishConditons
=
finishCond
.
stream
().
filter
(
p
->
p
.
_t
ype
!=
null
).
map
(
QuestCondition:
:
new
).
toArray
(
QuestCondition
[]::
new
);
finishCond
=
null
;
this
.
failConditons
=
failCond
.
stream
().
filter
(
p
->
p
.
T
ype
!=
null
).
map
(
QuestCondition:
:
new
).
toArray
(
QuestCondition
[]::
new
);
this
.
failConditons
=
failCond
.
stream
().
filter
(
p
->
p
.
_t
ype
!=
null
).
map
(
QuestCondition:
:
new
).
toArray
(
QuestCondition
[]::
new
);
failCond
=
null
;
}
public
class
QuestParam
{
QuestTrigger
T
ype
;
int
[]
P
aram
;
String
count
;
QuestTrigger
_t
ype
;
int
[]
_p
aram
;
String
_
count
;
}
public
class
QuestExecParam
{
QuestTrigger
T
ype
;
String
[]
P
aram
;
String
count
;
QuestTrigger
_t
ype
;
String
[]
_p
aram
;
String
_
count
;
}
public
static
class
QuestCondition
{
...
...
@@ -107,8 +107,8 @@ public class QuestData extends GameResource {
private
String
count
;
public
QuestCondition
(
QuestParam
param
)
{
this
.
type
=
param
.
T
ype
;
this
.
param
=
param
.
P
aram
;
this
.
type
=
param
.
_t
ype
;
this
.
param
=
param
.
_p
aram
;
}
public
QuestTrigger
getType
()
{
...
...
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