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 {
...
@@ -81,24 +81,24 @@ public class QuestData extends GameResource {
}
}
public
void
onLoad
()
{
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
;
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
;
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
;
failCond
=
null
;
}
}
public
class
QuestParam
{
public
class
QuestParam
{
QuestTrigger
T
ype
;
QuestTrigger
_t
ype
;
int
[]
P
aram
;
int
[]
_p
aram
;
String
count
;
String
_
count
;
}
}
public
class
QuestExecParam
{
public
class
QuestExecParam
{
QuestTrigger
T
ype
;
QuestTrigger
_t
ype
;
String
[]
P
aram
;
String
[]
_p
aram
;
String
count
;
String
_
count
;
}
}
public
static
class
QuestCondition
{
public
static
class
QuestCondition
{
...
@@ -107,8 +107,8 @@ public class QuestData extends GameResource {
...
@@ -107,8 +107,8 @@ public class QuestData extends GameResource {
private
String
count
;
private
String
count
;
public
QuestCondition
(
QuestParam
param
)
{
public
QuestCondition
(
QuestParam
param
)
{
this
.
type
=
param
.
T
ype
;
this
.
type
=
param
.
_t
ype
;
this
.
param
=
param
.
P
aram
;
this
.
param
=
param
.
_p
aram
;
}
}
public
QuestTrigger
getType
()
{
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