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
a23b29b6
Commit
a23b29b6
authored
May 28, 2022
by
Melledy
Browse files
Rename excel classes
parent
f1398182
Changes
119
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/data/
def
/DailyDungeonData.java
→
src/main/java/emu/grasscutter/data/
excels
/DailyDungeonData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
java.util.Calendar
;
import
java.util.Calendar
;
...
@@ -12,14 +12,14 @@ import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
...
@@ -12,14 +12,14 @@ import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
@ResourceType
(
name
=
"DailyDungeonConfigData.json"
)
@ResourceType
(
name
=
"DailyDungeonConfigData.json"
)
public
class
DailyDungeonData
extends
GameResource
{
public
class
DailyDungeonData
extends
GameResource
{
private
int
I
d
;
private
int
i
d
;
private
int
[]
M
onday
;
private
int
[]
m
onday
;
private
int
[]
T
uesday
;
private
int
[]
t
uesday
;
private
int
[]
W
ednesday
;
private
int
[]
w
ednesday
;
private
int
[]
T
hursday
;
private
int
[]
t
hursday
;
private
int
[]
F
riday
;
private
int
[]
f
riday
;
private
int
[]
S
aturday
;
private
int
[]
s
aturday
;
private
int
[]
S
unday
;
private
int
[]
s
unday
;
private
static
final
int
[]
empty
=
new
int
[
0
];
private
static
final
int
[]
empty
=
new
int
[
0
];
private
final
Int2ObjectMap
<
int
[]>
map
;
private
final
Int2ObjectMap
<
int
[]>
map
;
...
@@ -30,7 +30,7 @@ public class DailyDungeonData extends GameResource {
...
@@ -30,7 +30,7 @@ public class DailyDungeonData extends GameResource {
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
this
.
I
d
;
return
this
.
i
d
;
}
}
public
int
[]
getDungeonsByDay
(
int
day
)
{
public
int
[]
getDungeonsByDay
(
int
day
)
{
...
@@ -39,12 +39,12 @@ public class DailyDungeonData extends GameResource {
...
@@ -39,12 +39,12 @@ public class DailyDungeonData extends GameResource {
@Override
@Override
public
void
onLoad
()
{
public
void
onLoad
()
{
map
.
put
(
Calendar
.
MONDAY
,
M
onday
);
map
.
put
(
Calendar
.
MONDAY
,
m
onday
);
map
.
put
(
Calendar
.
TUESDAY
,
T
uesday
);
map
.
put
(
Calendar
.
TUESDAY
,
t
uesday
);
map
.
put
(
Calendar
.
WEDNESDAY
,
W
ednesday
);
map
.
put
(
Calendar
.
WEDNESDAY
,
w
ednesday
);
map
.
put
(
Calendar
.
THURSDAY
,
T
hursday
);
map
.
put
(
Calendar
.
THURSDAY
,
t
hursday
);
map
.
put
(
Calendar
.
FRIDAY
,
F
riday
);
map
.
put
(
Calendar
.
FRIDAY
,
f
riday
);
map
.
put
(
Calendar
.
SATURDAY
,
S
aturday
);
map
.
put
(
Calendar
.
SATURDAY
,
s
aturday
);
map
.
put
(
Calendar
.
SUNDAY
,
S
unday
);
map
.
put
(
Calendar
.
SUNDAY
,
s
unday
);
}
}
}
}
src/main/java/emu/grasscutter/data/
def
/DungeonData.java
→
src/main/java/emu/grasscutter/data/
excels
/DungeonData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.GameResource
;
...
@@ -8,25 +8,25 @@ import emu.grasscutter.game.props.SceneType;
...
@@ -8,25 +8,25 @@ import emu.grasscutter.game.props.SceneType;
@ResourceType
(
name
=
"DungeonExcelConfigData.json"
)
@ResourceType
(
name
=
"DungeonExcelConfigData.json"
)
public
class
DungeonData
extends
GameResource
{
public
class
DungeonData
extends
GameResource
{
private
int
I
d
;
private
int
i
d
;
private
int
S
ceneId
;
private
int
s
ceneId
;
private
int
S
howLevel
;
private
int
s
howLevel
;
private
int
P
assRewardPreviewID
;
private
int
p
assRewardPreviewID
;
private
String
I
nvolveType
;
// TODO enum
private
String
i
nvolveType
;
// TODO enum
private
RewardPreviewData
previewData
;
private
RewardPreviewData
previewData
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
this
.
I
d
;
return
this
.
i
d
;
}
}
public
int
getSceneId
()
{
public
int
getSceneId
()
{
return
S
ceneId
;
return
s
ceneId
;
}
}
public
int
getShowLevel
()
{
public
int
getShowLevel
()
{
return
S
howLevel
;
return
s
howLevel
;
}
}
public
RewardPreviewData
getRewardPreview
()
{
public
RewardPreviewData
getRewardPreview
()
{
...
@@ -35,8 +35,8 @@ public class DungeonData extends GameResource {
...
@@ -35,8 +35,8 @@ public class DungeonData extends GameResource {
@Override
@Override
public
void
onLoad
()
{
public
void
onLoad
()
{
if
(
this
.
P
assRewardPreviewID
>
0
)
{
if
(
this
.
p
assRewardPreviewID
>
0
)
{
this
.
previewData
=
GameData
.
getRewardPreviewDataMap
().
get
(
this
.
P
assRewardPreviewID
);
this
.
previewData
=
GameData
.
getRewardPreviewDataMap
().
get
(
this
.
p
assRewardPreviewID
);
}
}
}
}
}
}
src/main/java/emu/grasscutter/data/
def
/EquipAffixData.java
→
src/main/java/emu/grasscutter/data/
excels
/EquipAffixData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.GameResource
;
...
@@ -8,41 +8,41 @@ import emu.grasscutter.data.common.FightPropData;
...
@@ -8,41 +8,41 @@ import emu.grasscutter.data.common.FightPropData;
@ResourceType
(
name
=
"EquipAffixExcelConfigData.json"
)
@ResourceType
(
name
=
"EquipAffixExcelConfigData.json"
)
public
class
EquipAffixData
extends
GameResource
{
public
class
EquipAffixData
extends
GameResource
{
private
int
A
ffixId
;
private
int
a
ffixId
;
private
int
I
d
;
private
int
i
d
;
private
int
L
evel
;
private
int
l
evel
;
private
long
N
ameTextMapHash
;
private
long
n
ameTextMapHash
;
private
String
O
penConfig
;
private
String
o
penConfig
;
private
FightPropData
[]
A
ddProps
;
private
FightPropData
[]
a
ddProps
;
private
float
[]
P
aramList
;
private
float
[]
p
aramList
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
A
ffixId
;
return
a
ffixId
;
}
}
public
int
getMainId
()
{
public
int
getMainId
()
{
return
I
d
;
return
i
d
;
}
}
public
int
getLevel
()
{
public
int
getLevel
()
{
return
L
evel
;
return
l
evel
;
}
}
public
long
getNameTextMapHash
()
{
public
long
getNameTextMapHash
()
{
return
N
ameTextMapHash
;
return
n
ameTextMapHash
;
}
}
public
String
getOpenConfig
()
{
public
String
getOpenConfig
()
{
return
O
penConfig
;
return
o
penConfig
;
}
}
public
FightPropData
[]
getAddProps
()
{
public
FightPropData
[]
getAddProps
()
{
return
A
ddProps
;
return
a
ddProps
;
}
}
public
float
[]
getParamList
()
{
public
float
[]
getParamList
()
{
return
P
aramList
;
return
p
aramList
;
}
}
@Override
@Override
...
@@ -54,6 +54,6 @@ public class EquipAffixData extends GameResource {
...
@@ -54,6 +54,6 @@ public class EquipAffixData extends GameResource {
parsed
.
add
(
prop
);
parsed
.
add
(
prop
);
}
}
}
}
this
.
A
ddProps
=
parsed
.
toArray
(
new
FightPropData
[
parsed
.
size
()]);
this
.
a
ddProps
=
parsed
.
toArray
(
new
FightPropData
[
parsed
.
size
()]);
}
}
}
}
src/main/java/emu/grasscutter/data/
def
/FetterCharacterCardData.java
→
src/main/java/emu/grasscutter/data/
excels
/FetterCharacterCardData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType.LoadPriority
;
import
emu.grasscutter.data.ResourceType.LoadPriority
;
@ResourceType
(
name
=
"FetterCharacterCardExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
HIGHEST
)
@ResourceType
(
name
=
"FetterCharacterCardExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
HIGHEST
)
public
class
FetterCharacterCardData
extends
GameResource
{
public
class
FetterCharacterCardData
extends
GameResource
{
private
int
A
vatarId
;
private
int
a
vatarId
;
private
int
R
ewardId
;
private
int
r
ewardId
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
A
vatarId
;
return
a
vatarId
;
}
}
public
int
getRewardId
()
{
public
int
getRewardId
()
{
return
R
ewardId
;
return
r
ewardId
;
}
}
@Override
@Override
public
void
onLoad
()
{
public
void
onLoad
()
{
}
}
}
}
src/main/java/emu/grasscutter/data/
def
/FetterData.java
→
src/main/java/emu/grasscutter/data/
excels
/FetterData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
java.util.List
;
import
java.util.List
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType.LoadPriority
;
import
emu.grasscutter.data.ResourceType.LoadPriority
;
import
emu.grasscutter.data.common.OpenCondData
;
import
emu.grasscutter.data.common.OpenCondData
;
@ResourceType
(
name
=
{
"FetterInfoExcelConfigData.json"
,
"FettersExcelConfigData.json"
,
"FetterStoryExcelConfigData.json"
,
"PhotographExpressionExcelConfigData.json"
,
"PhotographPosenameExcelConfigData.json"
},
loadPriority
=
LoadPriority
.
HIGHEST
)
@ResourceType
(
name
=
{
"FetterInfoExcelConfigData.json"
,
"FettersExcelConfigData.json"
,
"FetterStoryExcelConfigData.json"
,
"PhotographExpressionExcelConfigData.json"
,
"PhotographPosenameExcelConfigData.json"
},
loadPriority
=
LoadPriority
.
HIGHEST
)
public
class
FetterData
extends
GameResource
{
public
class
FetterData
extends
GameResource
{
private
int
A
vatarId
;
private
int
a
vatarId
;
private
int
F
etterId
;
private
int
f
etterId
;
private
List
<
OpenCondData
>
O
penCond
;
private
List
<
OpenCondData
>
o
penCond
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
F
etterId
;
return
f
etterId
;
}
}
public
int
getAvatarId
()
{
public
int
getAvatarId
()
{
return
A
vatarId
;
return
a
vatarId
;
}
}
public
List
<
OpenCondData
>
getOpenConds
()
{
public
List
<
OpenCondData
>
getOpenConds
()
{
return
O
penCond
;
return
o
penCond
;
}
}
@Override
@Override
public
void
onLoad
()
{
public
void
onLoad
()
{
}
}
}
}
src/main/java/emu/grasscutter/data/
def
/GadgetData.java
→
src/main/java/emu/grasscutter/data/
excels
/GadgetData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType
;
...
@@ -6,53 +6,53 @@ import emu.grasscutter.game.props.EntityType;
...
@@ -6,53 +6,53 @@ import emu.grasscutter.game.props.EntityType;
@ResourceType
(
name
=
"GadgetExcelConfigData.json"
)
@ResourceType
(
name
=
"GadgetExcelConfigData.json"
)
public
class
GadgetData
extends
GameResource
{
public
class
GadgetData
extends
GameResource
{
private
int
I
d
;
private
int
i
d
;
private
EntityType
T
ype
;
private
EntityType
t
ype
;
private
String
J
sonName
;
private
String
j
sonName
;
private
boolean
I
sInteractive
;
private
boolean
i
sInteractive
;
private
String
[]
T
ags
;
private
String
[]
t
ags
;
private
String
I
temJsonName
;
private
String
i
temJsonName
;
private
String
I
nteeIconName
;
private
String
i
nteeIconName
;
private
long
N
ameTextMapHash
;
private
long
n
ameTextMapHash
;
private
int
C
ampID
;
private
int
c
ampID
;
private
String
LODPatternName
;
private
String
LODPatternName
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
this
.
I
d
;
return
this
.
i
d
;
}
}
public
EntityType
getType
()
{
public
EntityType
getType
()
{
return
T
ype
;
return
t
ype
;
}
}
public
String
getJsonName
()
{
public
String
getJsonName
()
{
return
J
sonName
;
return
j
sonName
;
}
}
public
boolean
isInteractive
()
{
public
boolean
isInteractive
()
{
return
I
sInteractive
;
return
i
sInteractive
;
}
}
public
String
[]
getTags
()
{
public
String
[]
getTags
()
{
return
T
ags
;
return
t
ags
;
}
}
public
String
getItemJsonName
()
{
public
String
getItemJsonName
()
{
return
I
temJsonName
;
return
i
temJsonName
;
}
}
public
String
getInteeIconName
()
{
public
String
getInteeIconName
()
{
return
I
nteeIconName
;
return
i
nteeIconName
;
}
}
public
long
getNameTextMapHash
()
{
public
long
getNameTextMapHash
()
{
return
N
ameTextMapHash
;
return
n
ameTextMapHash
;
}
}
public
int
getCampID
()
{
public
int
getCampID
()
{
return
C
ampID
;
return
c
ampID
;
}
}
public
String
getLODPatternName
()
{
return
LODPatternName
;
}
public
String
getLODPatternName
()
{
return
LODPatternName
;
}
...
...
src/main/java/emu/grasscutter/data/
def
/ItemData.java
→
src/main/java/emu/grasscutter/data/
excels
/ItemData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType
;
...
@@ -9,164 +9,164 @@ import it.unimi.dsi.fastutil.ints.IntSet;
...
@@ -9,164 +9,164 @@ import it.unimi.dsi.fastutil.ints.IntSet;
@ResourceType
(
name
=
{
"MaterialExcelConfigData.json"
,
"WeaponExcelConfigData.json"
,
"ReliquaryExcelConfigData.json"
})
@ResourceType
(
name
=
{
"MaterialExcelConfigData.json"
,
"WeaponExcelConfigData.json"
,
"ReliquaryExcelConfigData.json"
})
public
class
ItemData
extends
GameResource
{
public
class
ItemData
extends
GameResource
{
private
int
I
d
;
private
int
i
d
;
private
int
S
tackLimit
=
1
;
private
int
s
tackLimit
=
1
;
private
int
M
axUseCount
;
private
int
m
axUseCount
;
private
int
R
ankLevel
;
private
int
r
ankLevel
;
private
String
E
ffectName
;
private
String
e
ffectName
;
private
int
[]
S
atiationParams
;
private
int
[]
s
atiationParams
;
private
int
R
ank
;
private
int
r
ank
;
private
int
W
eight
;
private
int
w
eight
;
private
int
G
adgetId
;
private
int
g
adgetId
;
private
int
[]
D
estroyReturnMaterial
;
private
int
[]
d
estroyReturnMaterial
;
private
int
[]
D
estroyReturnMaterialCount
;
private
int
[]
d
estroyReturnMaterialCount
;
// Food
// Food
private
String
F
oodQuality
;
private
String
f
oodQuality
;
private
String
U
seTarget
;
private
String
u
seTarget
;
private
String
[]
U
seParam
;
private
String
[]
i
seParam
;
// String enums
// String enums
private
String
I
temType
;
private
String
i
temType
;
private
String
M
aterialType
;
private
String
m
aterialType
;
private
String
E
quipType
;
private
String
e
quipType
;
private
String
E
ffectType
;
private
String
e
ffectType
;
private
String
D
estroyRule
;
private
String
d
estroyRule
;
// Relic
// Relic
private
int
M
ainPropDepotId
;
private
int
m
ainPropDepotId
;
private
int
A
ppendPropDepotId
;
private
int
a
ppendPropDepotId
;
private
int
A
ppendPropNum
;
private
int
a
ppendPropNum
;
private
int
S
etId
;
private
int
s
etId
;
private
int
[]
A
ddPropLevels
;
private
int
[]
a
ddPropLevels
;
private
int
B
aseConvExp
;
private
int
b
aseConvExp
;
private
int
M
axLevel
;
private
int
m
axLevel
;
// Weapon
// Weapon
private
int
W
eaponPromoteId
;
private
int
w
eaponPromoteId
;
private
int
W
eaponBaseExp
;
private
int
w
eaponBaseExp
;
private
int
S
toryId
;
private
int
s
toryId
;
private
int
A
vatarPromoteId
;
private
int
a
vatarPromoteId
;
private
int
A
wakenMaterial
;
private
int
a
wakenMaterial
;
private
int
[]
A
wakenCosts
;
private
int
[]
a
wakenCosts
;
private
int
[]
S
killAffix
;
private
int
[]
s
killAffix
;
private
WeaponProperty
[]
W
eaponProp
;
private
WeaponProperty
[]
w
eaponProp
;
// Hash
// Hash
private
String
I
con
;
private
String
i
con
;
private
long
N
ameTextMapHash
;
private
long
n
ameTextMapHash
;
// Post load
// Post load
private
transient
emu
.
grasscutter
.
game
.
inventory
.
MaterialType
materialType
;
private
transient
emu
.
grasscutter
.
game
.
inventory
.
MaterialType
material
Enum
Type
;
private
transient
emu
.
grasscutter
.
game
.
inventory
.
ItemType
itemType
;
private
transient
emu
.
grasscutter
.
game
.
inventory
.
ItemType
item
Enum
Type
;
private
transient
emu
.
grasscutter
.
game
.
inventory
.
EquipType
equipType
;
private
transient
emu
.
grasscutter
.
game
.
inventory
.
EquipType
equip
Enum
Type
;
private
IntSet
addPropLevelSet
;
private
IntSet
addPropLevelSet
;
@Override
@Override
public
int
getId
(){
public
int
getId
(){
return
this
.
I
d
;
return
this
.
i
d
;
}
}
public
String
getMaterialTypeString
(){
public
String
getMaterialTypeString
(){
return
this
.
M
aterialType
;
return
this
.
m
aterialType
;
}
}
public
int
getStackLimit
(){
public
int
getStackLimit
(){
return
this
.
S
tackLimit
;
return
this
.
s
tackLimit
;
}
}
public
int
getMaxUseCount
(){
public
int
getMaxUseCount
(){
return
this
.
M
axUseCount
;
return
this
.
m
axUseCount
;
}
}
public
String
getUseTarget
(){
public
String
getUseTarget
(){
return
this
.
U
seTarget
;
return
this
.
u
seTarget
;
}
}
public
String
[]
getUseParam
(){
public
String
[]
getUseParam
(){
return
this
.
U
seParam
;
return
this
.
i
seParam
;
}
}
public
int
getRankLevel
(){
public
int
getRankLevel
(){
return
this
.
R
ankLevel
;
return
this
.
r
ankLevel
;
}
}
public
String
getFoodQuality
(){
public
String
getFoodQuality
(){
return
this
.
F
oodQuality
;
return
this
.
f
oodQuality
;
}
}
public
String
getEffectName
(){
public
String
getEffectName
(){
return
this
.
E
ffectName
;
return
this
.
e
ffectName
;
}
}
public
int
[]
getSatiationParams
(){
public
int
[]
getSatiationParams
(){
return
this
.
S
atiationParams
;
return
this
.
s
atiationParams
;
}
}
public
int
[]
getDestroyReturnMaterial
(){
public
int
[]
getDestroyReturnMaterial
(){
return
this
.
D
estroyReturnMaterial
;
return
this
.
d
estroyReturnMaterial
;
}
}
public
int
[]
getDestroyReturnMaterialCount
(){
public
int
[]
getDestroyReturnMaterialCount
(){
return
this
.
D
estroyReturnMaterialCount
;
return
this
.
d
estroyReturnMaterialCount
;
}
}
public
long
getNameTextMapHash
(){
public
long
getNameTextMapHash
(){
return
this
.
N
ameTextMapHash
;
return
this
.
n
ameTextMapHash
;
}
}
public
String
getIcon
(){
public
String
getIcon
(){
return
this
.
I
con
;
return
this
.
i
con
;
}
}
public
String
getItemTypeString
(){
public
String
getItemTypeString
(){
return
this
.
I
temType
;
return
this
.
i
temType
;
}
}
public
int
getRank
(){
public
int
getRank
(){
return
this
.
R
ank
;
return
this
.
r
ank
;
}
}
public
int
getGadgetId
()
{
public
int
getGadgetId
()
{
return
G
adgetId
;
return
g
adgetId
;
}
}
public
int
getBaseConvExp
()
{
public
int
getBaseConvExp
()
{
return
B
aseConvExp
;
return
b
aseConvExp
;
}
}
public
int
getMainPropDepotId
()
{
public
int
getMainPropDepotId
()
{
return
M
ainPropDepotId
;
return
m
ainPropDepotId
;
}
}
public
int
getAppendPropDepotId
()
{
public
int
getAppendPropDepotId
()
{
return
A
ppendPropDepotId
;
return
a
ppendPropDepotId
;
}
}
public
int
getAppendPropNum
()
{
public
int
getAppendPropNum
()
{
return
A
ppendPropNum
;
return
a
ppendPropNum
;
}
}
public
int
getSetId
()
{
public
int
getSetId
()
{
return
S
etId
;
return
s
etId
;
}
}
public
int
getWeaponPromoteId
()
{
public
int
getWeaponPromoteId
()
{
return
W
eaponPromoteId
;
return
w
eaponPromoteId
;
}
}
public
int
getWeaponBaseExp
()
{
public
int
getWeaponBaseExp
()
{
return
W
eaponBaseExp
;
return
w
eaponBaseExp
;
}
}
public
int
getAwakenMaterial
()
{
public
int
getAwakenMaterial
()
{
return
A
wakenMaterial
;
return
a
wakenMaterial
;
}
}
public
int
[]
getAwakenCosts
()
{
public
int
[]
getAwakenCosts
()
{
return
A
wakenCosts
;
return
a
wakenCosts
;
}
}
public
IntSet
getAddPropLevelSet
()
{
public
IntSet
getAddPropLevelSet
()
{
...
@@ -174,27 +174,27 @@ public class ItemData extends GameResource {
...
@@ -174,27 +174,27 @@ public class ItemData extends GameResource {
}
}
public
int
[]
getSkillAffix
()
{
public
int
[]
getSkillAffix
()
{
return
S
killAffix
;
return
s
killAffix
;
}
}
public
WeaponProperty
[]
getWeaponProperties
()
{
public
WeaponProperty
[]
getWeaponProperties
()
{
return
W
eaponProp
;
return
w
eaponProp
;
}
}
public
int
getMaxLevel
()
{
public
int
getMaxLevel
()
{
return
M
axLevel
;
return
m
axLevel
;
}
}
public
emu
.
grasscutter
.
game
.
inventory
.
ItemType
getItemType
()
{
public
emu
.
grasscutter
.
game
.
inventory
.
ItemType
getItemType
()
{
return
this
.
itemType
;
return
this
.
item
Enum
Type
;
}
}
public
emu
.
grasscutter
.
game
.
inventory
.
MaterialType
getMaterialType
()
{
public
emu
.
grasscutter
.
game
.
inventory
.
MaterialType
getMaterialType
()
{
return
this
.
materialType
;
return
this
.
material
Enum
Type
;
}
}
public
emu
.
grasscutter
.
game
.
inventory
.
EquipType
getEquipType
()
{
public
emu
.
grasscutter
.
game
.
inventory
.
EquipType
getEquipType
()
{
return
this
.
equipType
;
return
this
.
equip
Enum
Type
;
}
}
public
boolean
canAddRelicProp
(
int
level
)
{
public
boolean
canAddRelicProp
(
int
level
)
{
...
@@ -202,23 +202,23 @@ public class ItemData extends GameResource {
...
@@ -202,23 +202,23 @@ public class ItemData extends GameResource {
}
}
public
boolean
isEquip
()
{
public
boolean
isEquip
()
{
return
this
.
itemType
==
emu
.
grasscutter
.
game
.
inventory
.
ItemType
.
ITEM_RELIQUARY
||
this
.
itemType
==
emu
.
grasscutter
.
game
.
inventory
.
ItemType
.
ITEM_WEAPON
;
return
this
.
item
Enum
Type
==
emu
.
grasscutter
.
game
.
inventory
.
ItemType
.
ITEM_RELIQUARY
||
this
.
item
Enum
Type
==
emu
.
grasscutter
.
game
.
inventory
.
ItemType
.
ITEM_WEAPON
;
}
}
@Override
@Override
public
void
onLoad
()
{
public
void
onLoad
()
{
this
.
itemType
=
emu
.
grasscutter
.
game
.
inventory
.
ItemType
.
getTypeByName
(
getItemTypeString
());
this
.
item
Enum
Type
=
emu
.
grasscutter
.
game
.
inventory
.
ItemType
.
getTypeByName
(
getItemTypeString
());
this
.
materialType
=
emu
.
grasscutter
.
game
.
inventory
.
MaterialType
.
getTypeByName
(
getMaterialTypeString
());
this
.
material
Enum
Type
=
emu
.
grasscutter
.
game
.
inventory
.
MaterialType
.
getTypeByName
(
getMaterialTypeString
());
if
(
this
.
itemType
==
emu
.
grasscutter
.
game
.
inventory
.
ItemType
.
ITEM_RELIQUARY
)
{
if
(
this
.
item
Enum
Type
==
emu
.
grasscutter
.
game
.
inventory
.
ItemType
.
ITEM_RELIQUARY
)
{
this
.
equipType
=
emu
.
grasscutter
.
game
.
inventory
.
EquipType
.
getTypeByName
(
this
.
E
quipType
);
this
.
equip
Enum
Type
=
emu
.
grasscutter
.
game
.
inventory
.
EquipType
.
getTypeByName
(
this
.
e
quipType
);
if
(
this
.
A
ddPropLevels
!=
null
&&
this
.
A
ddPropLevels
.
length
>
0
)
{
if
(
this
.
a
ddPropLevels
!=
null
&&
this
.
a
ddPropLevels
.
length
>
0
)
{
this
.
addPropLevelSet
=
new
IntOpenHashSet
(
this
.
A
ddPropLevels
);
this
.
addPropLevelSet
=
new
IntOpenHashSet
(
this
.
a
ddPropLevels
);
}
}
}
else
if
(
this
.
itemType
==
emu
.
grasscutter
.
game
.
inventory
.
ItemType
.
ITEM_WEAPON
)
{
}
else
if
(
this
.
item
Enum
Type
==
emu
.
grasscutter
.
game
.
inventory
.
ItemType
.
ITEM_WEAPON
)
{
this
.
equipType
=
emu
.
grasscutter
.
game
.
inventory
.
EquipType
.
EQUIP_WEAPON
;
this
.
equip
Enum
Type
=
emu
.
grasscutter
.
game
.
inventory
.
EquipType
.
EQUIP_WEAPON
;
}
else
{
}
else
{
this
.
equipType
=
emu
.
grasscutter
.
game
.
inventory
.
EquipType
.
EQUIP_NONE
;
this
.
equip
Enum
Type
=
emu
.
grasscutter
.
game
.
inventory
.
EquipType
.
EQUIP_NONE
;
}
}
if
(
this
.
getWeaponProperties
()
!=
null
)
{
if
(
this
.
getWeaponProperties
()
!=
null
)
{
...
...
src/main/java/emu/grasscutter/data/
def
/MonsterCurveData.java
→
src/main/java/emu/grasscutter/data/
excels
/MonsterCurveData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -10,23 +10,23 @@ import emu.grasscutter.data.common.CurveInfo;
...
@@ -10,23 +10,23 @@ import emu.grasscutter.data.common.CurveInfo;
@ResourceType
(
name
=
"MonsterCurveExcelConfigData.json"
)
@ResourceType
(
name
=
"MonsterCurveExcelConfigData.json"
)
public
class
MonsterCurveData
extends
GameResource
{
public
class
MonsterCurveData
extends
GameResource
{
private
int
L
evel
;
private
int
l
evel
;
private
CurveInfo
[]
C
urveInfos
;
private
CurveInfo
[]
c
urveInfos
;
private
Map
<
String
,
Float
>
curveInfo
s
;
private
Map
<
String
,
Float
>
curveInfo
Map
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
L
evel
;
return
l
evel
;
}
}
public
float
getMultByProp
(
String
fightProp
)
{
public
float
getMultByProp
(
String
fightProp
)
{
return
curveInfo
s
.
getOrDefault
(
fightProp
,
1
f
);
return
curveInfo
Map
.
getOrDefault
(
fightProp
,
1
f
);
}
}
@Override
@Override
public
void
onLoad
()
{
public
void
onLoad
()
{
this
.
curveInfo
s
=
new
HashMap
<>();
this
.
curveInfo
Map
=
new
HashMap
<>();
Stream
.
of
(
this
.
C
urveInfos
).
forEach
(
info
->
this
.
curveInfo
s
.
put
(
info
.
getType
(),
info
.
getValue
()));
Stream
.
of
(
this
.
c
urveInfos
).
forEach
(
info
->
this
.
curveInfo
Map
.
put
(
info
.
getType
(),
info
.
getValue
()));
}
}
}
}
src/main/java/emu/grasscutter/data/
def
/MonsterData.java
→
src/main/java/emu/grasscutter/data/
excels
/MonsterData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
java.util.List
;
import
java.util.List
;
...
@@ -10,152 +10,153 @@ import emu.grasscutter.data.common.PropGrowCurve;
...
@@ -10,152 +10,153 @@ import emu.grasscutter.data.common.PropGrowCurve;
@ResourceType
(
name
=
"MonsterExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
LOW
)
@ResourceType
(
name
=
"MonsterExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
LOW
)
public
class
MonsterData
extends
GameResource
{
public
class
MonsterData
extends
GameResource
{
private
int
I
d
;
private
int
i
d
;
private
String
M
onsterName
;
private
String
m
onsterName
;
private
String
T
ype
;
private
String
t
ype
;
private
String
S
erverScript
;
private
String
s
erverScript
;
private
List
<
Integer
>
A
ffix
;
private
List
<
Integer
>
a
ffix
;
private
String
A
i
;
private
String
a
i
;
private
int
[]
E
quips
;
private
int
[]
e
quips
;
private
List
<
HpDrops
>
H
pDrops
;
private
List
<
HpDrops
>
h
pDrops
;
private
int
K
illDropId
;
private
int
k
illDropId
;
private
String
E
xcludeWeathers
;
private
String
e
xcludeWeathers
;
private
int
F
eatureTagGroupID
;
private
int
f
eatureTagGroupID
;
private
int
M
pPropID
;
private
int
m
pPropID
;
private
String
S
kin
;
private
String
s
kin
;
private
int
D
escribeId
;
private
int
d
escribeId
;
private
int
C
ombatBGMLevel
;
private
int
c
ombatBGMLevel
;
private
int
E
ntityBudgetLevel
;
private
int
e
ntityBudgetLevel
;
private
float
H
pBase
;
private
float
h
pBase
;
private
float
A
ttackBase
;
private
float
a
ttackBase
;
private
float
D
efenseBase
;
private
float
d
efenseBase
;
private
float
F
ireSubHurt
;
private
float
f
ireSubHurt
;
private
float
E
lecSubHurt
;
private
float
e
lecSubHurt
;
private
float
G
rassSubHurt
;
private
float
g
rassSubHurt
;
private
float
W
aterSubHurt
;
private
float
w
aterSubHurt
;
private
float
W
indSubHurt
;
private
float
w
indSubHurt
;
private
float
R
ockSubHurt
;
private
float
r
ockSubHurt
;
private
float
I
ceSubHurt
;
private
float
i
ceSubHurt
;
private
float
P
hysicalSubHurt
;
private
float
p
hysicalSubHurt
;
private
List
<
PropGrowCurve
>
P
ropGrowCurves
;
private
List
<
PropGrowCurve
>
p
ropGrowCurves
;
private
long
N
ameTextMapHash
;
private
long
n
ameTextMapHash
;
private
int
C
ampID
;
private
int
c
ampID
;
// Transient
private
int
weaponId
;
private
int
weaponId
;
private
MonsterDescribeData
describeData
;
private
MonsterDescribeData
describeData
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
this
.
I
d
;
return
this
.
i
d
;
}
}
public
String
getMonsterName
()
{
public
String
getMonsterName
()
{
return
M
onsterName
;
return
m
onsterName
;
}
}
public
String
getType
()
{
public
String
getType
()
{
return
T
ype
;
return
t
ype
;
}
}
public
String
getServerScript
()
{
public
String
getServerScript
()
{
return
S
erverScript
;
return
s
erverScript
;
}
}
public
List
<
Integer
>
getAffix
()
{
public
List
<
Integer
>
getAffix
()
{
return
A
ffix
;
return
a
ffix
;
}
}
public
String
getAi
()
{
public
String
getAi
()
{
return
A
i
;
return
a
i
;
}
}
public
int
[]
getEquips
()
{
public
int
[]
getEquips
()
{
return
E
quips
;
return
e
quips
;
}
}
public
List
<
HpDrops
>
getHpDrops
()
{
public
List
<
HpDrops
>
getHpDrops
()
{
return
H
pDrops
;
return
h
pDrops
;
}
}
public
int
getKillDropId
()
{
public
int
getKillDropId
()
{
return
K
illDropId
;
return
k
illDropId
;
}
}
public
String
getExcludeWeathers
()
{
public
String
getExcludeWeathers
()
{
return
E
xcludeWeathers
;
return
e
xcludeWeathers
;
}
}
public
int
getFeatureTagGroupID
()
{
public
int
getFeatureTagGroupID
()
{
return
F
eatureTagGroupID
;
return
f
eatureTagGroupID
;
}
}
public
int
getMpPropID
()
{
public
int
getMpPropID
()
{
return
M
pPropID
;
return
m
pPropID
;
}
}
public
String
getSkin
()
{
public
String
getSkin
()
{
return
S
kin
;
return
s
kin
;
}
}
public
int
getDescribeId
()
{
public
int
getDescribeId
()
{
return
D
escribeId
;
return
d
escribeId
;
}
}
public
int
getCombatBGMLevel
()
{
public
int
getCombatBGMLevel
()
{
return
C
ombatBGMLevel
;
return
c
ombatBGMLevel
;
}
}
public
int
getEntityBudgetLevel
()
{
public
int
getEntityBudgetLevel
()
{
return
E
ntityBudgetLevel
;
return
e
ntityBudgetLevel
;
}
}
public
float
getBaseHp
()
{
public
float
getBaseHp
()
{
return
H
pBase
;
return
h
pBase
;
}
}
public
float
getBaseAttack
()
{
public
float
getBaseAttack
()
{
return
A
ttackBase
;
return
a
ttackBase
;
}
}
public
float
getBaseDefense
()
{
public
float
getBaseDefense
()
{
return
D
efenseBase
;
return
d
efenseBase
;
}
}
public
float
getElecSubHurt
()
{
public
float
getElecSubHurt
()
{
return
E
lecSubHurt
;
return
e
lecSubHurt
;
}
}
public
float
getGrassSubHurt
()
{
public
float
getGrassSubHurt
()
{
return
G
rassSubHurt
;
return
g
rassSubHurt
;
}
}
public
float
getWaterSubHurt
()
{
public
float
getWaterSubHurt
()
{
return
W
aterSubHurt
;
return
w
aterSubHurt
;
}
}
public
float
getWindSubHurt
()
{
public
float
getWindSubHurt
()
{
return
W
indSubHurt
;
return
w
indSubHurt
;
}
}
public
float
getIceSubHurt
()
{
public
float
getIceSubHurt
()
{
return
I
ceSubHurt
;
return
i
ceSubHurt
;
}
}
public
float
getPhysicalSubHurt
()
{
public
float
getPhysicalSubHurt
()
{
return
P
hysicalSubHurt
;
return
p
hysicalSubHurt
;
}
}
public
List
<
PropGrowCurve
>
getPropGrowCurves
()
{
public
List
<
PropGrowCurve
>
getPropGrowCurves
()
{
return
P
ropGrowCurves
;
return
p
ropGrowCurves
;
}
}
public
long
getNameTextMapHash
()
{
public
long
getNameTextMapHash
()
{
return
N
ameTextMapHash
;
return
n
ameTextMapHash
;
}
}
public
int
getCampID
()
{
public
int
getCampID
()
{
return
C
ampID
;
return
c
ampID
;
}
}
public
MonsterDescribeData
getDescribeData
()
{
public
MonsterDescribeData
getDescribeData
()
{
...
@@ -170,7 +171,7 @@ public class MonsterData extends GameResource {
...
@@ -170,7 +171,7 @@ public class MonsterData extends GameResource {
public
void
onLoad
()
{
public
void
onLoad
()
{
this
.
describeData
=
GameData
.
getMonsterDescribeDataMap
().
get
(
this
.
getDescribeId
());
this
.
describeData
=
GameData
.
getMonsterDescribeDataMap
().
get
(
this
.
getDescribeId
());
for
(
int
id
:
this
.
E
quips
)
{
for
(
int
id
:
this
.
e
quips
)
{
if
(
id
==
0
)
{
if
(
id
==
0
)
{
continue
;
continue
;
}
}
...
...
src/main/java/emu/grasscutter/data/
def
/MonsterDescribeData.java
→
src/main/java/emu/grasscutter/data/
excels
/MonsterDescribeData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType
;
...
@@ -6,31 +6,31 @@ import emu.grasscutter.data.ResourceType.LoadPriority;
...
@@ -6,31 +6,31 @@ import emu.grasscutter.data.ResourceType.LoadPriority;
@ResourceType
(
name
=
"MonsterDescribeExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
HIGH
)
@ResourceType
(
name
=
"MonsterDescribeExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
HIGH
)
public
class
MonsterDescribeData
extends
GameResource
{
public
class
MonsterDescribeData
extends
GameResource
{
private
int
I
d
;
private
int
i
d
;
private
long
N
ameTextMapHash
;
private
long
n
ameTextMapHash
;
private
int
T
itleID
;
private
int
t
itleID
;
private
int
S
pecialNameLabID
;
private
int
s
pecialNameLabID
;
private
String
I
con
;
private
String
i
con
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
I
d
;
return
i
d
;
}
}
public
long
getNameTextMapHash
()
{
public
long
getNameTextMapHash
()
{
return
N
ameTextMapHash
;
return
n
ameTextMapHash
;
}
}
public
int
getTitleID
()
{
public
int
getTitleID
()
{
return
T
itleID
;
return
t
itleID
;
}
}
public
int
getSpecialNameLabID
()
{
public
int
getSpecialNameLabID
()
{
return
S
pecialNameLabID
;
return
s
pecialNameLabID
;
}
}
public
String
getIcon
()
{
public
String
getIcon
()
{
return
I
con
;
return
i
con
;
}
}
@Override
@Override
...
...
src/main/java/emu/grasscutter/data/
def
/NpcData.java
→
src/main/java/emu/grasscutter/data/
excels
/NpcData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType
;
@ResourceType
(
name
=
"NpcExcelConfigData.json"
)
@ResourceType
(
name
=
"NpcExcelConfigData.json"
)
public
class
NpcData
extends
GameResource
{
public
class
NpcData
extends
GameResource
{
private
int
I
d
;
private
int
i
d
;
private
String
J
sonName
;
private
String
j
sonName
;
private
String
A
lias
;
private
String
a
lias
;
private
String
S
criptDataPath
;
private
String
s
criptDataPath
;
private
String
L
uaDataPath
;
private
String
l
uaDataPath
;
private
boolean
I
sInteractive
;
private
boolean
i
sInteractive
;
private
boolean
H
asMove
;
private
boolean
h
asMove
;
private
String
D
yePart
;
private
String
d
yePart
;
private
String
B
illboardIcon
;
private
String
b
illboardIcon
;
private
long
N
ameTextMapHash
;
private
long
n
ameTextMapHash
;
private
int
C
ampID
;
private
int
c
ampID
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
this
.
I
d
;
return
this
.
i
d
;
}
}
public
String
getJsonName
()
{
public
String
getJsonName
()
{
return
J
sonName
;
return
j
sonName
;
}
}
public
String
getAlias
()
{
public
String
getAlias
()
{
return
A
lias
;
return
a
lias
;
}
}
public
String
getScriptDataPath
()
{
public
String
getScriptDataPath
()
{
return
S
criptDataPath
;
return
s
criptDataPath
;
}
}
public
String
getLuaDataPath
()
{
public
String
getLuaDataPath
()
{
return
L
uaDataPath
;
return
l
uaDataPath
;
}
}
public
boolean
isIsInteractive
()
{
public
boolean
isIsInteractive
()
{
return
I
sInteractive
;
return
i
sInteractive
;
}
}
public
boolean
isHasMove
()
{
public
boolean
isHasMove
()
{
return
H
asMove
;
return
h
asMove
;
}
}
public
String
getDyePart
()
{
public
String
getDyePart
()
{
return
D
yePart
;
return
d
yePart
;
}
}
public
String
getBillboardIcon
()
{
public
String
getBillboardIcon
()
{
return
B
illboardIcon
;
return
b
illboardIcon
;
}
}
public
long
getNameTextMapHash
()
{
public
long
getNameTextMapHash
()
{
return
N
ameTextMapHash
;
return
n
ameTextMapHash
;
}
}
public
int
getCampID
()
{
public
int
getCampID
()
{
return
C
ampID
;
return
c
ampID
;
}
}
@Override
@Override
...
...
src/main/java/emu/grasscutter/data/
def
/PlayerLevelData.java
→
src/main/java/emu/grasscutter/data/
excels
/PlayerLevelData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType
;
@ResourceType
(
name
=
"PlayerLevelExcelConfigData.json"
)
@ResourceType
(
name
=
"PlayerLevelExcelConfigData.json"
)
public
class
PlayerLevelData
extends
GameResource
{
public
class
PlayerLevelData
extends
GameResource
{
private
int
L
evel
;
private
int
l
evel
;
private
int
E
xp
;
private
int
e
xp
;
private
int
R
ewardId
;
private
int
r
ewardId
;
private
int
U
nlockWorldLevel
;
private
int
u
nlockWorldLevel
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
this
.
L
evel
;
return
this
.
l
evel
;
}
}
public
int
getLevel
()
{
public
int
getLevel
()
{
return
L
evel
;
return
l
evel
;
}
}
public
int
getExp
()
{
public
int
getExp
()
{
return
E
xp
;
return
e
xp
;
}
}
public
int
getRewardId
()
{
public
int
getRewardId
()
{
return
R
ewardId
;
return
r
ewardId
;
}
}
public
int
getUnlockWorldLevel
()
{
public
int
getUnlockWorldLevel
()
{
return
U
nlockWorldLevel
;
return
u
nlockWorldLevel
;
}
}
}
}
src/main/java/emu/grasscutter/data/
def
/ProudSkillData.java
→
src/main/java/emu/grasscutter/data/
excels
/ProudSkillData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
...
@@ -11,82 +11,82 @@ import emu.grasscutter.data.common.ItemParamData;
...
@@ -11,82 +11,82 @@ import emu.grasscutter.data.common.ItemParamData;
@ResourceType
(
name
=
"ProudSkillExcelConfigData.json"
)
@ResourceType
(
name
=
"ProudSkillExcelConfigData.json"
)
public
class
ProudSkillData
extends
GameResource
{
public
class
ProudSkillData
extends
GameResource
{
private
int
P
roudSkillId
;
private
int
p
roudSkillId
;
private
int
P
roudSkillGroupId
;
private
int
p
roudSkillGroupId
;
private
int
L
evel
;
private
int
l
evel
;
private
int
C
oinCost
;
private
int
c
oinCost
;
private
int
B
reakLevel
;
private
int
b
reakLevel
;
private
int
P
roudSkillType
;
private
int
p
roudSkillType
;
private
String
O
penConfig
;
private
String
o
penConfig
;
private
List
<
ItemParamData
>
C
ostItems
;
private
List
<
ItemParamData
>
c
ostItems
;
private
List
<
String
>
F
ilterConds
;
private
List
<
String
>
f
ilterConds
;
private
List
<
String
>
L
ifeEffectParams
;
private
List
<
String
>
l
ifeEffectParams
;
private
FightPropData
[]
A
ddProps
;
private
FightPropData
[]
a
ddProps
;
private
float
[]
P
aramList
;
private
float
[]
p
aramList
;
private
long
[]
P
aramDescList
;
private
long
[]
p
aramDescList
;
private
long
N
ameTextMapHash
;
private
long
n
ameTextMapHash
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
P
roudSkillId
;
return
p
roudSkillId
;
}
}
public
int
getProudSkillGroupId
()
{
public
int
getProudSkillGroupId
()
{
return
P
roudSkillGroupId
;
return
p
roudSkillGroupId
;
}
}
public
int
getLevel
()
{
public
int
getLevel
()
{
return
L
evel
;
return
l
evel
;
}
}
public
int
getCoinCost
()
{
public
int
getCoinCost
()
{
return
C
oinCost
;
return
c
oinCost
;
}
}
public
int
getBreakLevel
()
{
public
int
getBreakLevel
()
{
return
B
reakLevel
;
return
b
reakLevel
;
}
}
public
int
getProudSkillType
()
{
public
int
getProudSkillType
()
{
return
P
roudSkillType
;
return
p
roudSkillType
;
}
}
public
String
getOpenConfig
()
{
public
String
getOpenConfig
()
{
return
O
penConfig
;
return
o
penConfig
;
}
}
public
List
<
ItemParamData
>
getCostItems
()
{
public
List
<
ItemParamData
>
getCostItems
()
{
return
C
ostItems
;
return
c
ostItems
;
}
}
public
List
<
String
>
getFilterConds
()
{
public
List
<
String
>
getFilterConds
()
{
return
F
ilterConds
;
return
f
ilterConds
;
}
}
public
List
<
String
>
getLifeEffectParams
()
{
public
List
<
String
>
getLifeEffectParams
()
{
return
L
ifeEffectParams
;
return
l
ifeEffectParams
;
}
}
public
FightPropData
[]
getAddProps
()
{
public
FightPropData
[]
getAddProps
()
{
return
A
ddProps
;
return
a
ddProps
;
}
}
public
float
[]
getParamList
()
{
public
float
[]
getParamList
()
{
return
P
aramList
;
return
p
aramList
;
}
}
public
long
[]
getParamDescList
()
{
public
long
[]
getParamDescList
()
{
return
P
aramDescList
;
return
p
aramDescList
;
}
}
public
long
getNameTextMapHash
()
{
public
long
getNameTextMapHash
()
{
return
N
ameTextMapHash
;
return
n
ameTextMapHash
;
}
}
@Override
@Override
public
void
onLoad
()
{
public
void
onLoad
()
{
if
(
this
.
getOpenConfig
()
!=
null
&
this
.
getOpenConfig
().
length
()
>
0
)
{
if
(
this
.
getOpenConfig
()
!=
null
&
this
.
getOpenConfig
().
length
()
>
0
)
{
this
.
O
penConfig
=
"Avatar_"
+
this
.
getOpenConfig
();
this
.
o
penConfig
=
"Avatar_"
+
this
.
getOpenConfig
();
}
}
// Fight props
// Fight props
ArrayList
<
FightPropData
>
parsed
=
new
ArrayList
<
FightPropData
>(
getAddProps
().
length
);
ArrayList
<
FightPropData
>
parsed
=
new
ArrayList
<
FightPropData
>(
getAddProps
().
length
);
...
@@ -96,6 +96,6 @@ public class ProudSkillData extends GameResource {
...
@@ -96,6 +96,6 @@ public class ProudSkillData extends GameResource {
parsed
.
add
(
prop
);
parsed
.
add
(
prop
);
}
}
}
}
this
.
A
ddProps
=
parsed
.
toArray
(
new
FightPropData
[
parsed
.
size
()]);
this
.
a
ddProps
=
parsed
.
toArray
(
new
FightPropData
[
parsed
.
size
()]);
}
}
}
}
src/main/java/emu/grasscutter/data/
def
/QuestData.java
→
src/main/java/emu/grasscutter/data/
excels
/QuestData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.List
;
...
@@ -10,54 +10,54 @@ import emu.grasscutter.game.quest.enums.QuestTrigger;
...
@@ -10,54 +10,54 @@ import emu.grasscutter.game.quest.enums.QuestTrigger;
@ResourceType
(
name
=
"QuestExcelConfigData.json"
)
@ResourceType
(
name
=
"QuestExcelConfigData.json"
)
public
class
QuestData
extends
GameResource
{
public
class
QuestData
extends
GameResource
{
private
int
S
ubId
;
private
int
s
ubId
;
private
int
M
ainId
;
private
int
m
ainId
;
private
int
O
rder
;
private
int
o
rder
;
private
long
D
escTextMapHash
;
private
long
d
escTextMapHash
;
private
boolean
F
inishParent
;
private
boolean
f
inishParent
;
private
boolean
I
sRewind
;
private
boolean
i
sRewind
;
private
LogicType
A
cceptCondComb
;
private
LogicType
a
cceptCondComb
;
private
QuestCondition
[]
acceptConditons
;
private
QuestCondition
[]
acceptConditons
;
private
LogicType
F
inishCondComb
;
private
LogicType
f
inishCondComb
;
private
QuestCondition
[]
finishConditons
;
private
QuestCondition
[]
finishConditons
;
private
LogicType
F
ailCondComb
;
private
LogicType
f
ailCondComb
;
private
QuestCondition
[]
failConditons
;
private
QuestCondition
[]
failConditons
;
private
List
<
QuestParam
>
A
cceptCond
;
private
List
<
QuestParam
>
a
cceptCond
;
private
List
<
QuestParam
>
F
inishCond
;
private
List
<
QuestParam
>
f
inishCond
;
private
List
<
QuestParam
>
F
ailCond
;
private
List
<
QuestParam
>
f
ailCond
;
private
List
<
QuestExecParam
>
B
eginExec
;
private
List
<
QuestExecParam
>
b
eginExec
;
private
List
<
QuestExecParam
>
F
inishExec
;
private
List
<
QuestExecParam
>
f
inishExec
;
private
List
<
QuestExecParam
>
F
ailExec
;
private
List
<
QuestExecParam
>
f
ailExec
;
public
int
getId
()
{
public
int
getId
()
{
return
S
ubId
;
return
s
ubId
;
}
}
public
int
getMainId
()
{
public
int
getMainId
()
{
return
M
ainId
;
return
m
ainId
;
}
}
public
int
getOrder
()
{
public
int
getOrder
()
{
return
O
rder
;
return
o
rder
;
}
}
public
long
getDescTextMapHash
()
{
public
long
getDescTextMapHash
()
{
return
D
escTextMapHash
;
return
d
escTextMapHash
;
}
}
public
boolean
finishParent
()
{
public
boolean
finishParent
()
{
return
F
inishParent
;
return
f
inishParent
;
}
}
public
boolean
isRewind
()
{
public
boolean
isRewind
()
{
return
I
sRewind
;
return
i
sRewind
;
}
}
public
LogicType
getAcceptCondComb
()
{
public
LogicType
getAcceptCondComb
()
{
return
A
cceptCondComb
;
return
a
cceptCondComb
;
}
}
public
QuestCondition
[]
getAcceptCond
()
{
public
QuestCondition
[]
getAcceptCond
()
{
...
@@ -65,7 +65,7 @@ public class QuestData extends GameResource {
...
@@ -65,7 +65,7 @@ public class QuestData extends GameResource {
}
}
public
LogicType
getFinishCondComb
()
{
public
LogicType
getFinishCondComb
()
{
return
F
inishCondComb
;
return
f
inishCondComb
;
}
}
public
QuestCondition
[]
getFinishCond
()
{
public
QuestCondition
[]
getFinishCond
()
{
...
@@ -73,7 +73,7 @@ public class QuestData extends GameResource {
...
@@ -73,7 +73,7 @@ public class QuestData extends GameResource {
}
}
public
LogicType
getFailCondComb
()
{
public
LogicType
getFailCondComb
()
{
return
F
ailCondComb
;
return
f
ailCondComb
;
}
}
public
QuestCondition
[]
getFailCond
()
{
public
QuestCondition
[]
getFailCond
()
{
...
@@ -81,12 +81,12 @@ public class QuestData extends GameResource {
...
@@ -81,12 +81,12 @@ public class QuestData extends GameResource {
}
}
public
void
onLoad
()
{
public
void
onLoad
()
{
this
.
acceptConditons
=
A
cceptCond
.
stream
().
filter
(
p
->
p
.
Type
!=
null
).
map
(
QuestCondition:
:
new
).
toArray
(
QuestCondition
[]::
new
);
this
.
acceptConditons
=
a
cceptCond
.
stream
().
filter
(
p
->
p
.
Type
!=
null
).
map
(
QuestCondition:
:
new
).
toArray
(
QuestCondition
[]::
new
);
A
cceptCond
=
null
;
a
cceptCond
=
null
;
this
.
finishConditons
=
F
inishCond
.
stream
().
filter
(
p
->
p
.
Type
!=
null
).
map
(
QuestCondition:
:
new
).
toArray
(
QuestCondition
[]::
new
);
this
.
finishConditons
=
f
inishCond
.
stream
().
filter
(
p
->
p
.
Type
!=
null
).
map
(
QuestCondition:
:
new
).
toArray
(
QuestCondition
[]::
new
);
F
inishCond
=
null
;
f
inishCond
=
null
;
this
.
failConditons
=
F
ailCond
.
stream
().
filter
(
p
->
p
.
Type
!=
null
).
map
(
QuestCondition:
:
new
).
toArray
(
QuestCondition
[]::
new
);
this
.
failConditons
=
f
ailCond
.
stream
().
filter
(
p
->
p
.
Type
!=
null
).
map
(
QuestCondition:
:
new
).
toArray
(
QuestCondition
[]::
new
);
F
ailCond
=
null
;
f
ailCond
=
null
;
}
}
public
class
QuestParam
{
public
class
QuestParam
{
...
...
src/main/java/emu/grasscutter/data/
def
/ReliquaryAffixData.java
→
src/main/java/emu/grasscutter/data/
excels
/ReliquaryAffixData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType
;
...
@@ -10,39 +10,37 @@ public class ReliquaryAffixData extends GameResource {
...
@@ -10,39 +10,37 @@ public class ReliquaryAffixData extends GameResource {
private
int
DepotId
;
private
int
DepotId
;
private
int
GroupId
;
private
int
GroupId
;
private
String
PropType
;
private
FightProperty
PropType
;
private
float
PropValue
;
private
float
PropValue
;
private
int
Weight
;
private
int
Weight
;
private
int
UpgradeWeight
;
private
int
UpgradeWeight
;
private
FightProperty
fightProp
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
Id
;
return
Id
;
}
}
public
int
getDepotId
()
{
public
int
getDepotId
()
{
return
DepotId
;
return
DepotId
;
}
}
public
int
getGroupId
()
{
public
int
getGroupId
()
{
return
GroupId
;
return
GroupId
;
}
}
public
float
getPropValue
()
{
public
float
getPropValue
()
{
return
PropValue
;
return
PropValue
;
}
}
public
int
getWeight
()
{
public
int
getWeight
()
{
return
Weight
;
return
Weight
;
}
}
public
int
getUpgradeWeight
()
{
public
int
getUpgradeWeight
()
{
return
UpgradeWeight
;
return
UpgradeWeight
;
}
}
public
FightProperty
getFightProp
()
{
public
FightProperty
getFightProp
()
{
return
fightProp
;
return
PropType
;
}
@Override
public
void
onLoad
()
{
this
.
fightProp
=
FightProperty
.
getPropByName
(
this
.
PropType
);
}
}
}
}
src/main/java/emu/grasscutter/data/
def
/ReliquaryLevelData.java
→
src/main/java/emu/grasscutter/data/
excels
/ReliquaryLevelData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
java.util.List
;
import
java.util.List
;
...
@@ -13,10 +13,10 @@ public class ReliquaryLevelData extends GameResource {
...
@@ -13,10 +13,10 @@ public class ReliquaryLevelData extends GameResource {
private
int
id
;
private
int
id
;
private
Int2ObjectMap
<
Float
>
propMap
;
private
Int2ObjectMap
<
Float
>
propMap
;
private
int
R
ank
;
private
int
r
ank
;
private
int
L
evel
;
private
int
l
evel
;
private
int
E
xp
;
private
int
e
xp
;
private
List
<
RelicLevelProperty
>
A
ddProps
;
private
List
<
RelicLevelProperty
>
a
ddProps
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
...
@@ -24,15 +24,15 @@ public class ReliquaryLevelData extends GameResource {
...
@@ -24,15 +24,15 @@ public class ReliquaryLevelData extends GameResource {
}
}
public
int
getRank
()
{
public
int
getRank
()
{
return
R
ank
;
return
r
ank
;
}
}
public
int
getLevel
()
{
public
int
getLevel
()
{
return
L
evel
;
return
l
evel
;
}
}
public
int
getExp
()
{
public
int
getExp
()
{
return
E
xp
;
return
e
xp
;
}
}
public
float
getPropValue
(
FightProperty
prop
)
{
public
float
getPropValue
(
FightProperty
prop
)
{
...
@@ -45,23 +45,23 @@ public class ReliquaryLevelData extends GameResource {
...
@@ -45,23 +45,23 @@ public class ReliquaryLevelData extends GameResource {
@Override
@Override
public
void
onLoad
()
{
public
void
onLoad
()
{
this
.
id
=
(
R
ank
<<
8
)
+
this
.
getLevel
();
this
.
id
=
(
r
ank
<<
8
)
+
this
.
getLevel
();
this
.
propMap
=
new
Int2ObjectOpenHashMap
<>();
this
.
propMap
=
new
Int2ObjectOpenHashMap
<>();
for
(
RelicLevelProperty
p
:
A
ddProps
)
{
for
(
RelicLevelProperty
p
:
a
ddProps
)
{
this
.
propMap
.
put
(
FightProperty
.
getPropByName
(
p
.
getPropType
()).
getId
(),
(
Float
)
p
.
getValue
());
this
.
propMap
.
put
(
FightProperty
.
getPropByName
(
p
.
getPropType
()).
getId
(),
(
Float
)
p
.
getValue
());
}
}
}
}
public
class
RelicLevelProperty
{
public
class
RelicLevelProperty
{
private
String
P
ropType
;
private
String
p
ropType
;
private
float
V
alue
;
private
float
v
alue
;
public
String
getPropType
()
{
public
String
getPropType
()
{
return
P
ropType
;
return
p
ropType
;
}
}
public
float
getValue
()
{
public
float
getValue
()
{
return
V
alue
;
return
v
alue
;
}
}
}
}
}
}
src/main/java/emu/grasscutter/data/
def
/ReliquaryMainPropData.java
→
src/main/java/emu/grasscutter/data/
excels
/ReliquaryMainPropData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType
;
...
@@ -6,32 +6,26 @@ import emu.grasscutter.game.props.FightProperty;
...
@@ -6,32 +6,26 @@ import emu.grasscutter.game.props.FightProperty;
@ResourceType
(
name
=
"ReliquaryMainPropExcelConfigData.json"
)
@ResourceType
(
name
=
"ReliquaryMainPropExcelConfigData.json"
)
public
class
ReliquaryMainPropData
extends
GameResource
{
public
class
ReliquaryMainPropData
extends
GameResource
{
private
int
I
d
;
private
int
i
d
;
private
int
PropDepotId
;
private
int
propDepotId
;
private
String
PropType
;
private
FightProperty
propType
;
private
String
AffixName
;
private
int
weight
;
private
int
Weight
;
private
FightProperty
fightProp
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
I
d
;
return
i
d
;
}
}
public
int
getPropDepotId
()
{
public
int
getPropDepotId
()
{
return
P
ropDepotId
;
return
p
ropDepotId
;
}
}
public
int
getWeight
()
{
public
int
getWeight
()
{
return
W
eight
;
return
w
eight
;
}
}
public
FightProperty
getFightProp
()
{
public
FightProperty
getFightProp
()
{
return
fightProp
;
return
propType
;
}
@Override
public
void
onLoad
()
{
this
.
fightProp
=
FightProperty
.
getPropByName
(
this
.
PropType
);
}
}
}
}
src/main/java/emu/grasscutter/data/
def
/ReliquarySetData.java
→
src/main/java/emu/grasscutter/data/
excels
/ReliquarySetData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType
;
@ResourceType
(
name
=
"ReliquarySetExcelConfigData.json"
)
@ResourceType
(
name
=
"ReliquarySetExcelConfigData.json"
)
public
class
ReliquarySetData
extends
GameResource
{
public
class
ReliquarySetData
extends
GameResource
{
private
int
S
etId
;
private
int
s
etId
;
private
int
[]
S
etNeedNum
;
private
int
[]
s
etNeedNum
;
private
int
EquipAffixId
;
private
int
EquipAffixId
;
private
int
D
isableFilter
;
private
int
d
isableFilter
;
private
int
[]
C
ontainsList
;
private
int
[]
c
ontainsList
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
S
etId
;
return
s
etId
;
}
}
public
int
[]
getSetNeedNum
()
{
public
int
[]
getSetNeedNum
()
{
return
S
etNeedNum
;
return
s
etNeedNum
;
}
}
public
int
getEquipAffixId
()
{
public
int
getEquipAffixId
()
{
...
@@ -25,11 +25,11 @@ public class ReliquarySetData extends GameResource {
...
@@ -25,11 +25,11 @@ public class ReliquarySetData extends GameResource {
}
}
public
int
getDisableFilter
()
{
public
int
getDisableFilter
()
{
return
D
isableFilter
;
return
d
isableFilter
;
}
}
public
int
[]
getContainsList
()
{
public
int
[]
getContainsList
()
{
return
C
ontainsList
;
return
c
ontainsList
;
}
}
@Override
@Override
...
...
src/main/java/emu/grasscutter/data/
def
/RewardData.java
→
src/main/java/emu/grasscutter/data/
excels
/RewardData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
java.util.List
;
import
java.util.List
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.common.ItemParamData
;
import
emu.grasscutter.data.common.ItemParamData
;
@ResourceType
(
name
=
"RewardExcelConfigData.json"
)
@ResourceType
(
name
=
"RewardExcelConfigData.json"
)
public
class
RewardData
extends
GameResource
{
public
class
RewardData
extends
GameResource
{
public
int
R
ewardId
;
public
int
r
ewardId
;
public
List
<
ItemParamData
>
R
ewardItemList
;
public
List
<
ItemParamData
>
r
ewardItemList
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
R
ewardId
;
return
r
ewardId
;
}
}
public
List
<
ItemParamData
>
getRewardItemList
()
{
public
List
<
ItemParamData
>
getRewardItemList
()
{
return
R
ewardItemList
;
return
r
ewardItemList
;
}
}
@Override
@Override
public
void
onLoad
()
{
public
void
onLoad
()
{
R
ewardItemList
=
R
ewardItemList
.
stream
().
filter
(
i
->
i
.
getId
()
>
0
).
toList
();
r
ewardItemList
=
r
ewardItemList
.
stream
().
filter
(
i
->
i
.
getId
()
>
0
).
toList
();
}
}
}
}
src/main/java/emu/grasscutter/data/
def
/RewardPreviewData.java
→
src/main/java/emu/grasscutter/data/
excels
/RewardPreviewData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.List
;
...
@@ -16,28 +16,28 @@ import emu.grasscutter.data.common.ItemParamStringData;
...
@@ -16,28 +16,28 @@ import emu.grasscutter.data.common.ItemParamStringData;
@ResourceType
(
name
=
"RewardPreviewExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
HIGH
)
@ResourceType
(
name
=
"RewardPreviewExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
HIGH
)
public
class
RewardPreviewData
extends
GameResource
{
public
class
RewardPreviewData
extends
GameResource
{
private
int
I
d
;
private
int
i
d
;
private
ItemParamStringData
[]
P
reviewItems
;
private
ItemParamStringData
[]
p
reviewItems
;
private
ItemParamData
[]
P
reviewItemsArray
;
private
ItemParamData
[]
p
reviewItemsArray
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
this
.
I
d
;
return
this
.
i
d
;
}
}
public
ItemParamData
[]
getPreviewItems
()
{
public
ItemParamData
[]
getPreviewItems
()
{
return
P
reviewItemsArray
;
return
p
reviewItemsArray
;
}
}
@Override
@Override
public
void
onLoad
()
{
public
void
onLoad
()
{
if
(
this
.
P
reviewItems
!=
null
&&
this
.
P
reviewItems
.
length
>
0
)
{
if
(
this
.
p
reviewItems
!=
null
&&
this
.
p
reviewItems
.
length
>
0
)
{
this
.
P
reviewItemsArray
=
Arrays
.
stream
(
this
.
P
reviewItems
)
this
.
p
reviewItemsArray
=
Arrays
.
stream
(
this
.
p
reviewItems
)
.
filter
(
d
->
d
.
getId
()
>
0
&&
d
.
getCount
()
!=
null
&&
!
d
.
getCount
().
isEmpty
())
.
filter
(
d
->
d
.
getId
()
>
0
&&
d
.
getCount
()
!=
null
&&
!
d
.
getCount
().
isEmpty
())
.
map
(
ItemParamStringData:
:
toItemParamData
)
.
map
(
ItemParamStringData:
:
toItemParamData
)
.
toArray
(
size
->
new
ItemParamData
[
size
]);
.
toArray
(
size
->
new
ItemParamData
[
size
]);
}
else
{
}
else
{
this
.
P
reviewItemsArray
=
new
ItemParamData
[
0
];
this
.
p
reviewItemsArray
=
new
ItemParamData
[
0
];
}
}
}
}
}
}
Prev
1
2
3
4
5
6
Next
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