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
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/data/common/OpenCondData.java
View file @
a23b29b6
...
...
@@ -3,22 +3,22 @@ package emu.grasscutter.data.common;
import
java.util.List
;
public
class
OpenCondData
{
private
String
C
ondType
;
private
List
<
Integer
>
P
aramList
;
private
String
c
ondType
;
private
List
<
Integer
>
p
aramList
;
public
String
getCondType
()
{
return
C
ondType
;
return
c
ondType
;
}
public
void
setCondType
(
String
condType
)
{
C
ondType
=
condType
;
c
ondType
=
condType
;
}
public
List
<
Integer
>
getParamList
()
{
return
P
aramList
;
return
p
aramList
;
}
public
void
setParamList
(
List
<
Integer
>
paramList
)
{
P
aramList
=
paramList
;
p
aramList
=
paramList
;
}
}
src/main/java/emu/grasscutter/data/common/PointData.java
View file @
a23b29b6
...
...
@@ -2,7 +2,7 @@ package emu.grasscutter.data.common;
import
emu.grasscutter.Grasscutter
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.
def
.DailyDungeonData
;
import
emu.grasscutter.data.
excels
.DailyDungeonData
;
import
emu.grasscutter.utils.Position
;
import
it.unimi.dsi.fastutil.ints.IntArrayList
;
import
it.unimi.dsi.fastutil.ints.IntList
;
...
...
src/main/java/emu/grasscutter/data/common/PropGrowCurve.java
View file @
a23b29b6
package
emu.grasscutter.data.common
;
public
class
PropGrowCurve
{
private
String
T
ype
;
private
String
G
rowCurve
;
private
String
t
ype
;
private
String
g
rowCurve
;
public
String
getType
(){
return
this
.
T
ype
;
return
this
.
t
ype
;
}
public
String
getGrowCurve
(){
return
this
.
G
rowCurve
;
return
this
.
g
rowCurve
;
}
}
src/main/java/emu/grasscutter/data/def/CombineData.java
deleted
100644 → 0
View file @
f1398182
package
emu.grasscutter.data.def
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
import
java.util.List
;
import
java.util.stream.Collectors
;
@ResourceType
(
name
=
"CombineExcelConfigData.json"
)
public
class
CombineData
extends
GameResource
{
private
int
CombineId
;
private
int
PlayerLevel
;
private
boolean
IsDefaultShow
;
private
int
CombineType
;
private
int
SubCombineType
;
private
int
ResultItemId
;
private
int
ResultItemCount
;
private
int
ScoinCost
;
private
List
<
CombineItemPair
>
RandomItems
;
private
List
<
CombineItemPair
>
MaterialItems
;
private
long
EffectDescTextMapHash
;
private
String
RecipeType
;
@Override
public
int
getId
()
{
return
this
.
CombineId
;
}
@Override
public
void
onLoad
()
{
super
.
onLoad
();
// clean data
RandomItems
=
RandomItems
.
stream
().
filter
(
item
->
item
.
Id
>
0
).
collect
(
Collectors
.
toList
());
MaterialItems
=
MaterialItems
.
stream
().
filter
(
item
->
item
.
Id
>
0
).
collect
(
Collectors
.
toList
());
}
public
static
class
CombineItemPair
{
private
int
Id
;
private
int
Count
;
public
CombineItemPair
(
int
id
,
int
count
)
{
Id
=
id
;
Count
=
count
;
}
public
int
getId
()
{
return
Id
;
}
public
void
setId
(
int
id
)
{
Id
=
id
;
}
public
int
getCount
()
{
return
Count
;
}
public
void
setCount
(
int
count
)
{
Count
=
count
;
}
}
public
int
getCombineId
()
{
return
CombineId
;
}
public
void
setCombineId
(
int
combineId
)
{
CombineId
=
combineId
;
}
public
int
getPlayerLevel
()
{
return
PlayerLevel
;
}
public
void
setPlayerLevel
(
int
playerLevel
)
{
PlayerLevel
=
playerLevel
;
}
public
boolean
isDefaultShow
()
{
return
IsDefaultShow
;
}
public
void
setDefaultShow
(
boolean
defaultShow
)
{
IsDefaultShow
=
defaultShow
;
}
public
int
getCombineType
()
{
return
CombineType
;
}
public
void
setCombineType
(
int
combineType
)
{
CombineType
=
combineType
;
}
public
int
getSubCombineType
()
{
return
SubCombineType
;
}
public
void
setSubCombineType
(
int
subCombineType
)
{
SubCombineType
=
subCombineType
;
}
public
int
getResultItemId
()
{
return
ResultItemId
;
}
public
void
setResultItemId
(
int
resultItemId
)
{
ResultItemId
=
resultItemId
;
}
public
int
getResultItemCount
()
{
return
ResultItemCount
;
}
public
void
setResultItemCount
(
int
resultItemCount
)
{
ResultItemCount
=
resultItemCount
;
}
public
int
getScoinCost
()
{
return
ScoinCost
;
}
public
void
setScoinCost
(
int
scoinCost
)
{
ScoinCost
=
scoinCost
;
}
public
List
<
CombineItemPair
>
getRandomItems
()
{
return
RandomItems
;
}
public
void
setRandomItems
(
List
<
CombineItemPair
>
randomItems
)
{
RandomItems
=
randomItems
;
}
public
List
<
CombineItemPair
>
getMaterialItems
()
{
return
MaterialItems
;
}
public
void
setMaterialItems
(
List
<
CombineItemPair
>
materialItems
)
{
MaterialItems
=
materialItems
;
}
public
long
getEffectDescTextMapHash
()
{
return
EffectDescTextMapHash
;
}
public
void
setEffectDescTextMapHash
(
long
effectDescTextMapHash
)
{
EffectDescTextMapHash
=
effectDescTextMapHash
;
}
public
String
getRecipeType
()
{
return
RecipeType
;
}
public
void
setRecipeType
(
String
recipeType
)
{
RecipeType
=
recipeType
;
}
}
src/main/java/emu/grasscutter/data/
def
/AvatarCostumeData.java
→
src/main/java/emu/grasscutter/data/
excels
/AvatarCostumeData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.GameResource
;
...
...
@@ -6,21 +6,21 @@ import emu.grasscutter.data.ResourceType;
@ResourceType
(
name
=
"AvatarCostumeExcelConfigData.json"
)
public
class
AvatarCostumeData
extends
GameResource
{
private
int
C
ostumeId
;
private
int
I
temId
;
private
int
A
vatarId
;
private
int
c
ostumeId
;
private
int
i
temId
;
private
int
a
vatarId
;
@Override
public
int
getId
()
{
return
this
.
C
ostumeId
;
return
this
.
c
ostumeId
;
}
public
int
getItemId
()
{
return
this
.
I
temId
;
return
this
.
i
temId
;
}
public
int
getAvatarId
()
{
return
A
vatarId
;
return
a
vatarId
;
}
@Override
...
...
src/main/java/emu/grasscutter/data/
def
/AvatarCurveData.java
→
src/main/java/emu/grasscutter/data/
excels
/AvatarCurveData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
java.util.HashMap
;
import
java.util.Map
;
...
...
@@ -10,27 +10,27 @@ import emu.grasscutter.data.common.CurveInfo;
@ResourceType
(
name
=
"AvatarCurveExcelConfigData.json"
)
public
class
AvatarCurveData
extends
GameResource
{
private
int
L
evel
;
private
CurveInfo
[]
C
urveInfos
;
private
int
l
evel
;
private
CurveInfo
[]
c
urveInfos
;
private
Map
<
String
,
Float
>
curveInfo
s
;
private
Map
<
String
,
Float
>
curveInfo
Map
;
@Override
public
int
getId
()
{
return
this
.
L
evel
;
return
this
.
l
evel
;
}
public
int
getLevel
()
{
return
L
evel
;
return
l
evel
;
}
public
Map
<
String
,
Float
>
getCurveInfos
()
{
return
curveInfo
s
;
return
curveInfo
Map
;
}
@Override
public
void
onLoad
()
{
this
.
curveInfo
s
=
new
HashMap
<>();
Stream
.
of
(
this
.
C
urveInfos
).
forEach
(
info
->
this
.
curveInfo
s
.
put
(
info
.
getType
(),
info
.
getValue
()));
this
.
curveInfo
Map
=
new
HashMap
<>();
Stream
.
of
(
this
.
c
urveInfos
).
forEach
(
info
->
this
.
curveInfo
Map
.
put
(
info
.
getType
(),
info
.
getValue
()));
}
}
src/main/java/emu/grasscutter/data/
def
/AvatarData.java
→
src/main/java/emu/grasscutter/data/
excels
/AvatarData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
java.util.List
;
...
...
@@ -6,8 +6,8 @@ import emu.grasscutter.data.GameData;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType.LoadPriority
;
import
emu.grasscutter.data.binout.AbilityEmbryoEntry
;
import
emu.grasscutter.data.common.PropGrowCurve
;
import
emu.grasscutter.data.custom.AbilityEmbryoEntry
;
import
emu.grasscutter.game.props.FightProperty
;
import
emu.grasscutter.utils.Utils
;
import
it.unimi.dsi.fastutil.ints.Int2ObjectMap
;
...
...
@@ -17,37 +17,35 @@ import it.unimi.dsi.fastutil.ints.IntList;
@ResourceType
(
name
=
"AvatarExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
LOW
)
public
class
AvatarData
extends
GameResource
{
private
String
iconName
;
private
String
bodyType
;
private
String
qualityType
;
private
int
chargeEfficiency
;
private
int
initialWeapon
;
private
String
weaponType
;
private
String
imageName
;
private
int
avatarPromoteId
;
private
String
cutsceneShow
;
private
int
skillDepotId
;
private
int
staminaRecoverSpeed
;
private
List
<
String
>
candSkillDepotIds
;
private
String
avatarIdentityType
;
private
List
<
Integer
>
avatarPromoteRewardLevelList
;
private
List
<
Integer
>
avatarPromoteRewardIdList
;
private
long
nameTextMapHash
;
private
float
hpBase
;
private
float
attackBase
;
private
float
defenseBase
;
private
float
critical
;
private
float
criticalHurt
;
private
List
<
PropGrowCurve
>
propGrowCurves
;
private
int
id
;
// Transient
private
String
name
;
private
String
IconName
;
private
String
BodyType
;
private
String
QualityType
;
private
int
ChargeEfficiency
;
private
int
InitialWeapon
;
private
String
WeaponType
;
private
String
ImageName
;
private
int
AvatarPromoteId
;
private
String
CutsceneShow
;
private
int
SkillDepotId
;
private
int
StaminaRecoverSpeed
;
private
List
<
String
>
CandSkillDepotIds
;
private
long
DescTextMapHash
;
private
String
AvatarIdentityType
;
private
List
<
Integer
>
AvatarPromoteRewardLevelList
;
private
List
<
Integer
>
AvatarPromoteRewardIdList
;
private
int
FeatureTagGroupID
;
private
long
NameTextMapHash
;
private
long
GachaImageNameHashSuffix
;
private
long
InfoDescTextMapHash
;
private
float
HpBase
;
private
float
AttackBase
;
private
float
DefenseBase
;
private
float
Critical
;
private
float
CriticalHurt
;
private
List
<
PropGrowCurve
>
PropGrowCurves
;
private
int
Id
;
private
Int2ObjectMap
<
String
>
growthCurveMap
;
private
float
[]
hpGrowthCurve
;
...
...
@@ -62,7 +60,7 @@ public class AvatarData extends GameResource {
@Override
public
int
getId
(){
return
this
.
I
d
;
return
this
.
i
d
;
}
public
String
getName
()
{
...
...
@@ -70,107 +68,91 @@ public class AvatarData extends GameResource {
}
public
String
getBodyType
(){
return
this
.
B
odyType
;
return
this
.
b
odyType
;
}
public
String
getQualityType
(){
return
this
.
Q
ualityType
;
return
this
.
q
ualityType
;
}
public
int
getChargeEfficiency
(){
return
this
.
C
hargeEfficiency
;
return
this
.
c
hargeEfficiency
;
}
public
int
getInitialWeapon
(){
return
this
.
I
nitialWeapon
;
return
this
.
i
nitialWeapon
;
}
public
String
getWeaponType
(){
return
this
.
W
eaponType
;
return
this
.
w
eaponType
;
}
public
String
getImageName
(){
return
this
.
I
mageName
;
return
this
.
i
mageName
;
}
public
int
getAvatarPromoteId
(){
return
this
.
AvatarPromoteId
;
}
public
long
getGachaImageNameHashSuffix
(){
return
this
.
GachaImageNameHashSuffix
;
return
this
.
avatarPromoteId
;
}
public
String
getCutsceneShow
(){
return
this
.
C
utsceneShow
;
return
this
.
c
utsceneShow
;
}
public
int
getSkillDepotId
(){
return
this
.
S
killDepotId
;
return
this
.
s
killDepotId
;
}
public
int
getStaminaRecoverSpeed
(){
return
this
.
S
taminaRecoverSpeed
;
return
this
.
s
taminaRecoverSpeed
;
}
public
List
<
String
>
getCandSkillDepotIds
(){
return
this
.
CandSkillDepotIds
;
}
public
long
getDescTextMapHash
(){
return
this
.
DescTextMapHash
;
return
this
.
candSkillDepotIds
;
}
public
String
getAvatarIdentityType
(){
return
this
.
A
vatarIdentityType
;
return
this
.
a
vatarIdentityType
;
}
public
List
<
Integer
>
getAvatarPromoteRewardLevelList
(){
return
this
.
A
vatarPromoteRewardLevelList
;
return
this
.
a
vatarPromoteRewardLevelList
;
}
public
List
<
Integer
>
getAvatarPromoteRewardIdList
(){
return
this
.
AvatarPromoteRewardIdList
;
}
public
int
getFeatureTagGroupID
(){
return
this
.
FeatureTagGroupID
;
}
public
long
getInfoDescTextMapHash
(){
return
this
.
InfoDescTextMapHash
;
return
this
.
avatarPromoteRewardIdList
;
}
public
float
getBaseHp
(
int
level
){
try
{
return
this
.
H
pBase
*
this
.
hpGrowthCurve
[
level
-
1
];
return
this
.
h
pBase
*
this
.
hpGrowthCurve
[
level
-
1
];
}
catch
(
Exception
e
)
{
return
this
.
H
pBase
;
return
this
.
h
pBase
;
}
}
public
float
getBaseAttack
(
int
level
){
try
{
return
this
.
A
ttackBase
*
this
.
attackGrowthCurve
[
level
-
1
];
return
this
.
a
ttackBase
*
this
.
attackGrowthCurve
[
level
-
1
];
}
catch
(
Exception
e
)
{
return
this
.
A
ttackBase
;
return
this
.
a
ttackBase
;
}
}
public
float
getBaseDefense
(
int
level
){
try
{
return
this
.
D
efenseBase
*
this
.
defenseGrowthCurve
[
level
-
1
];
return
this
.
d
efenseBase
*
this
.
defenseGrowthCurve
[
level
-
1
];
}
catch
(
Exception
e
)
{
return
this
.
D
efenseBase
;
return
this
.
d
efenseBase
;
}
}
public
float
getBaseCritical
(){
return
this
.
C
ritical
;
return
this
.
c
ritical
;
}
public
float
getBaseCriticalHurt
(){
return
this
.
C
riticalHurt
;
return
this
.
c
riticalHurt
;
}
public
float
getGrowthCurveById
(
int
level
,
FightProperty
prop
)
{
...
...
@@ -186,7 +168,7 @@ public class AvatarData extends GameResource {
}
public
long
getNameTextMapHash
(){
return
this
.
N
ameTextMapHash
;
return
this
.
n
ameTextMapHash
;
}
public
AvatarSkillDepotData
getSkillDepot
()
{
...
...
@@ -211,13 +193,13 @@ public class AvatarData extends GameResource {
@Override
public
void
onLoad
()
{
this
.
skillDepot
=
GameData
.
getAvatarSkillDepotDataMap
().
get
(
this
.
S
killDepotId
);
this
.
skillDepot
=
GameData
.
getAvatarSkillDepotDataMap
().
get
(
this
.
s
killDepotId
);
// Get fetters from GameData
this
.
fetters
=
GameData
.
getFetterDataEntries
().
get
(
this
.
I
d
);
this
.
fetters
=
GameData
.
getFetterDataEntries
().
get
(
this
.
i
d
);
if
(
GameData
.
getFetterCharacterCardDataMap
().
get
(
this
.
I
d
)
!=
null
)
{
this
.
nameCardRewardId
=
GameData
.
getFetterCharacterCardDataMap
().
get
(
this
.
I
d
).
getRewardId
();
if
(
GameData
.
getFetterCharacterCardDataMap
().
get
(
this
.
i
d
)
!=
null
)
{
this
.
nameCardRewardId
=
GameData
.
getFetterCharacterCardDataMap
().
get
(
this
.
i
d
).
getRewardId
();
}
if
(
GameData
.
getRewardDataMap
().
get
(
this
.
nameCardRewardId
)
!=
null
)
{
...
...
@@ -230,7 +212,7 @@ public class AvatarData extends GameResource {
this
.
defenseGrowthCurve
=
new
float
[
size
];
for
(
AvatarCurveData
curveData
:
GameData
.
getAvatarCurveDataMap
().
values
())
{
int
level
=
curveData
.
getLevel
()
-
1
;
for
(
PropGrowCurve
growCurve
:
this
.
P
ropGrowCurves
)
{
for
(
PropGrowCurve
growCurve
:
this
.
p
ropGrowCurves
)
{
FightProperty
prop
=
FightProperty
.
getPropByName
(
growCurve
.
getType
());
switch
(
prop
)
{
case
FIGHT_PROP_BASE_HP:
...
...
@@ -256,7 +238,7 @@ public class AvatarData extends GameResource {
*/
// Cache abilities
String
[]
split
=
this
.
I
conName
.
split
(
"_"
);
String
[]
split
=
this
.
i
conName
.
split
(
"_"
);
if
(
split
.
length
>
0
)
{
this
.
name
=
split
[
split
.
length
-
1
];
...
...
src/main/java/emu/grasscutter/data/
def
/AvatarFetterLevelData.java
→
src/main/java/emu/grasscutter/data/
excels
/AvatarFetterLevelData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
@ResourceType
(
name
=
"AvatarFettersLevelExcelConfigData.json"
)
public
class
AvatarFetterLevelData
extends
GameResource
{
private
int
F
etterLevel
;
private
int
N
eedExp
;
private
int
f
etterLevel
;
private
int
n
eedExp
;
@Override
public
int
getId
()
{
return
this
.
F
etterLevel
;
return
this
.
f
etterLevel
;
}
public
int
getLevel
()
{
return
F
etterLevel
;
return
f
etterLevel
;
}
public
int
getExp
()
{
return
N
eedExp
;
return
n
eedExp
;
}
}
src/main/java/emu/grasscutter/data/
def
/AvatarFlycloakData.java
→
src/main/java/emu/grasscutter/data/
excels
/AvatarFlycloakData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
@ResourceType
(
name
=
"AvatarFlycloakExcelConfigData.json"
)
public
class
AvatarFlycloakData
extends
GameResource
{
private
int
F
lycloakId
;
private
long
N
ameTextMapHash
;
private
int
f
lycloakId
;
private
long
n
ameTextMapHash
;
@Override
public
int
getId
()
{
return
this
.
F
lycloakId
;
return
this
.
f
lycloakId
;
}
public
long
getNameTextMapHash
()
{
return
N
ameTextMapHash
;
return
n
ameTextMapHash
;
}
@Override
...
...
src/main/java/emu/grasscutter/data/
def
/AvatarLevelData.java
→
src/main/java/emu/grasscutter/data/
excels
/AvatarLevelData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
@ResourceType
(
name
=
"AvatarLevelExcelConfigData.json"
)
public
class
AvatarLevelData
extends
GameResource
{
private
int
L
evel
;
private
int
E
xp
;
private
int
l
evel
;
private
int
e
xp
;
@Override
public
int
getId
()
{
return
this
.
L
evel
;
return
this
.
l
evel
;
}
public
int
getLevel
()
{
return
L
evel
;
return
l
evel
;
}
public
int
getExp
()
{
return
E
xp
;
return
e
xp
;
}
}
src/main/java/emu/grasscutter/data/
def
/AvatarPromoteData.java
→
src/main/java/emu/grasscutter/data/
excels
/AvatarPromoteData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
java.util.ArrayList
;
import
emu.grasscutter.data.GameResource
;
...
...
@@ -9,45 +9,45 @@ import emu.grasscutter.data.common.ItemParamData;
@ResourceType
(
name
=
"AvatarPromoteExcelConfigData.json"
)
public
class
AvatarPromoteData
extends
GameResource
{
private
int
A
vatarPromoteId
;
private
int
P
romoteLevel
;
private
int
S
coinCost
;
private
ItemParamData
[]
C
ostItems
;
private
int
U
nlockMaxLevel
;
private
FightPropData
[]
A
ddProps
;
private
int
R
equiredPlayerLevel
;
private
int
a
vatarPromoteId
;
private
int
p
romoteLevel
;
private
int
s
coinCost
;
private
ItemParamData
[]
c
ostItems
;
private
int
u
nlockMaxLevel
;
private
FightPropData
[]
a
ddProps
;
private
int
r
equiredPlayerLevel
;
@Override
public
int
getId
()
{
return
(
A
vatarPromoteId
<<
8
)
+
P
romoteLevel
;
return
(
a
vatarPromoteId
<<
8
)
+
p
romoteLevel
;
}
public
int
getAvatarPromoteId
()
{
return
A
vatarPromoteId
;
return
a
vatarPromoteId
;
}
public
int
getPromoteLevel
()
{
return
P
romoteLevel
;
return
p
romoteLevel
;
}
public
ItemParamData
[]
getCostItems
()
{
return
C
ostItems
;
return
c
ostItems
;
}
public
int
getCoinCost
()
{
return
S
coinCost
;
return
s
coinCost
;
}
public
FightPropData
[]
getAddProps
()
{
return
A
ddProps
;
return
a
ddProps
;
}
public
int
getUnlockMaxLevel
()
{
return
U
nlockMaxLevel
;
return
u
nlockMaxLevel
;
}
public
int
getRequiredPlayerLevel
()
{
return
R
equiredPlayerLevel
;
return
r
equiredPlayerLevel
;
}
@Override
...
...
@@ -60,7 +60,7 @@ public class AvatarPromoteData extends GameResource {
}
trim
.
add
(
itemParam
);
}
this
.
C
ostItems
=
trim
.
toArray
(
new
ItemParamData
[
trim
.
size
()]);
this
.
c
ostItems
=
trim
.
toArray
(
new
ItemParamData
[
trim
.
size
()]);
// Trim fight prop data (just in case)
ArrayList
<
FightPropData
>
parsed
=
new
ArrayList
<>(
getAddProps
().
length
);
for
(
FightPropData
prop
:
getAddProps
())
{
...
...
@@ -69,6 +69,6 @@ public class AvatarPromoteData extends GameResource {
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
/AvatarSkillData.java
→
src/main/java/emu/grasscutter/data/
excels
/AvatarSkillData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
java.util.List
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType.LoadPriority
;
import
emu.grasscutter.game.props.ElementType
;
@ResourceType
(
name
=
"AvatarSkillExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
HIGHEST
)
public
class
AvatarSkillData
extends
GameResource
{
private
int
I
d
;
private
float
C
dTime
;
private
int
C
ostElemVal
;
private
int
M
axChargeNum
;
private
int
T
riggerID
;
private
boolean
I
sAttackCameraLock
;
private
int
P
roudSkillGroupId
;
private
String
C
ostElemType
;
private
List
<
Float
>
L
ockWeightParams
;
private
long
N
ameTextMapHash
;
private
String
A
bilityName
;
private
String
L
ockShape
;
private
String
G
lobalValueKey
;
private
int
i
d
;
private
float
c
dTime
;
private
int
c
ostElemVal
;
private
int
m
axChargeNum
;
private
int
t
riggerID
;
private
boolean
i
sAttackCameraLock
;
private
int
p
roudSkillGroupId
;
private
ElementType
c
ostElemType
;
private
List
<
Float
>
l
ockWeightParams
;
private
long
n
ameTextMapHash
;
private
String
a
bilityName
;
private
String
l
ockShape
;
private
String
g
lobalValueKey
;
@Override
public
int
getId
(){
return
this
.
I
d
;
return
this
.
i
d
;
}
public
float
getCdTime
()
{
return
C
dTime
;
return
c
dTime
;
}
public
int
getCostElemVal
()
{
return
C
ostElemVal
;
return
c
ostElemVal
;
}
public
int
getMaxChargeNum
()
{
return
M
axChargeNum
;
return
m
axChargeNum
;
}
public
int
getTriggerID
()
{
return
T
riggerID
;
return
t
riggerID
;
}
public
boolean
isIsAttackCameraLock
()
{
return
I
sAttackCameraLock
;
return
i
sAttackCameraLock
;
}
public
int
getProudSkillGroupId
()
{
return
P
roudSkillGroupId
;
return
p
roudSkillGroupId
;
}
public
String
getCostElemType
()
{
return
C
ostElemType
;
public
ElementType
getCostElemType
()
{
return
c
ostElemType
;
}
public
List
<
Float
>
getLockWeightParams
()
{
return
L
ockWeightParams
;
return
l
ockWeightParams
;
}
public
long
getNameTextMapHash
()
{
return
N
ameTextMapHash
;
return
n
ameTextMapHash
;
}
public
String
getAbilityName
()
{
return
A
bilityName
;
return
a
bilityName
;
}
public
String
getLockShape
()
{
return
L
ockShape
;
return
l
ockShape
;
}
public
String
getGlobalValueKey
()
{
return
G
lobalValueKey
;
return
g
lobalValueKey
;
}
@Override
...
...
src/main/java/emu/grasscutter/data/
def
/AvatarSkillDepotData.java
→
src/main/java/emu/grasscutter/data/
excels
/AvatarSkillDepotData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
java.util.List
;
...
...
@@ -6,7 +6,7 @@ import emu.grasscutter.data.GameData;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType.LoadPriority
;
import
emu.grasscutter.data.
custom
.AbilityEmbryoEntry
;
import
emu.grasscutter.data.
binout
.AbilityEmbryoEntry
;
import
emu.grasscutter.game.props.ElementType
;
import
emu.grasscutter.utils.Utils
;
import
it.unimi.dsi.fastutil.ints.IntArrayList
;
...
...
@@ -15,62 +15,63 @@ import it.unimi.dsi.fastutil.ints.IntList;
@ResourceType
(
name
=
"AvatarSkillDepotExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
HIGH
)
public
class
AvatarSkillDepotData
extends
GameResource
{
private
int
I
d
;
private
int
E
nergySkill
;
private
int
A
ttackModeSkill
;
private
int
i
d
;
private
int
e
nergySkill
;
private
int
a
ttackModeSkill
;
private
List
<
Integer
>
S
kills
;
private
List
<
Integer
>
S
ubSkills
;
private
List
<
String
>
E
xtraAbilities
;
private
List
<
Integer
>
T
alents
;
private
List
<
InherentProudSkillOpens
>
I
nherentProudSkillOpens
;
private
List
<
Integer
>
s
kills
;
private
List
<
Integer
>
s
ubSkills
;
private
List
<
String
>
e
xtraAbilities
;
private
List
<
Integer
>
t
alents
;
private
List
<
InherentProudSkillOpens
>
i
nherentProudSkillOpens
;
private
String
T
alentStarName
;
private
String
S
killDepotAbilityGroup
;
private
String
t
alentStarName
;
private
String
s
killDepotAbilityGroup
;
// Transient
private
AvatarSkillData
energySkillData
;
private
ElementType
elementType
;
private
IntList
abilities
;
@Override
public
int
getId
(){
return
this
.
I
d
;
return
this
.
i
d
;
}
public
int
getEnergySkill
(){
return
this
.
E
nergySkill
;
return
this
.
e
nergySkill
;
}
public
List
<
Integer
>
getSkills
(){
return
this
.
S
kills
;
return
this
.
s
kills
;
}
public
List
<
Integer
>
getSubSkills
(){
return
this
.
S
ubSkills
;
return
this
.
s
ubSkills
;
}
public
int
getAttackModeSkill
(){
return
this
.
A
ttackModeSkill
;
return
this
.
a
ttackModeSkill
;
}
public
List
<
String
>
getExtraAbilities
(){
return
this
.
E
xtraAbilities
;
return
this
.
e
xtraAbilities
;
}
public
List
<
Integer
>
getTalents
(){
return
this
.
T
alents
;
return
this
.
t
alents
;
}
public
String
getTalentStarName
(){
return
this
.
T
alentStarName
;
return
this
.
t
alentStarName
;
}
public
List
<
InherentProudSkillOpens
>
getInherentProudSkillOpens
(){
return
this
.
I
nherentProudSkillOpens
;
return
this
.
i
nherentProudSkillOpens
;
}
public
String
getSkillDepotAbilityGroup
(){
return
this
.
S
killDepotAbilityGroup
;
return
this
.
s
killDepotAbilityGroup
;
}
public
AvatarSkillData
getEnergySkillData
()
{
...
...
@@ -94,30 +95,24 @@ public class AvatarSkillDepotData extends GameResource {
@Override
public
void
onLoad
()
{
this
.
energySkillData
=
GameData
.
getAvatarSkillDataMap
().
get
(
this
.
E
nergySkill
);
this
.
energySkillData
=
GameData
.
getAvatarSkillDataMap
().
get
(
this
.
e
nergySkill
);
if
(
getEnergySkillData
()
!=
null
)
{
this
.
elementType
=
ElementType
.
getTypeByName
(
getEnergySkillData
().
getCostElemType
()
)
;
this
.
elementType
=
getEnergySkillData
().
getCostElemType
();
}
else
{
this
.
elementType
=
ElementType
.
None
;
}
}
public
static
class
InherentProudSkillOpens
{
private
int
ProudSkillGroupId
;
private
int
proudSkillGroupId
;
private
int
needAvatarPromoteLevel
;
private
int
NeedAvatarPromoteLevel
;
public
void
setProudSkillGroupId
(
int
ProudSkillGroupId
){
this
.
ProudSkillGroupId
=
ProudSkillGroupId
;
}
public
int
getProudSkillGroupId
(){
return
this
.
ProudSkillGroupId
;
}
public
void
setNeedAvatarPromoteLevel
(
int
NeedAvatarPromoteLevel
){
this
.
NeedAvatarPromoteLevel
=
NeedAvatarPromoteLevel
;
return
this
.
proudSkillGroupId
;
}
public
int
getNeedAvatarPromoteLevel
(){
return
this
.
N
eedAvatarPromoteLevel
;
return
this
.
n
eedAvatarPromoteLevel
;
}
}
}
src/main/java/emu/grasscutter/data/
def
/AvatarTalentData.java
→
src/main/java/emu/grasscutter/data/
excels
/AvatarTalentData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
java.util.ArrayList
;
import
emu.grasscutter.data.GameResource
;
...
...
@@ -8,51 +8,51 @@ import emu.grasscutter.data.common.FightPropData;
@ResourceType
(
name
=
"AvatarTalentExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
HIGHEST
)
public
class
AvatarTalentData
extends
GameResource
{
private
int
T
alentId
;
private
int
P
revTalent
;
private
long
N
ameTextMapHash
;
private
String
I
con
;
private
int
M
ainCostItemId
;
private
int
M
ainCostItemCount
;
private
String
O
penConfig
;
private
FightPropData
[]
A
ddProps
;
private
float
[]
P
aramList
;
private
int
t
alentId
;
private
int
p
revTalent
;
private
long
n
ameTextMapHash
;
private
String
i
con
;
private
int
m
ainCostItemId
;
private
int
m
ainCostItemCount
;
private
String
o
penConfig
;
private
FightPropData
[]
a
ddProps
;
private
float
[]
p
aramList
;
@Override
public
int
getId
(){
return
this
.
T
alentId
;
return
this
.
t
alentId
;
}
public
int
PrevTalent
()
{
return
P
revTalent
;
return
p
revTalent
;
}
public
long
getNameTextMapHash
()
{
return
N
ameTextMapHash
;
return
n
ameTextMapHash
;
}
public
String
getIcon
()
{
return
I
con
;
return
i
con
;
}
public
int
getMainCostItemId
()
{
return
M
ainCostItemId
;
return
m
ainCostItemId
;
}
public
int
getMainCostItemCount
()
{
return
M
ainCostItemCount
;
return
m
ainCostItemCount
;
}
public
String
getOpenConfig
()
{
return
O
penConfig
;
return
o
penConfig
;
}
public
FightPropData
[]
getAddProps
()
{
return
A
ddProps
;
return
a
ddProps
;
}
public
float
[]
getParamList
()
{
return
P
aramList
;
return
p
aramList
;
}
@Override
...
...
@@ -64,6 +64,6 @@ public class AvatarTalentData extends GameResource {
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
/CodexAnimalData.java
→
src/main/java/emu/grasscutter/data/
excels
/CodexAnimalData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
...
...
@@ -6,10 +6,10 @@ import emu.grasscutter.data.ResourceType;
@ResourceType
(
name
=
{
"AnimalCodexExcelConfigData.json"
})
public
class
CodexAnimalData
extends
GameResource
{
private
int
Id
;
private
String
T
ype
;
private
int
D
escribeId
;
private
int
S
ortOrder
;
private
CodexAnimalUnlockCondition
BAINKHIIMJE
;
private
String
t
ype
;
private
int
d
escribeId
;
private
int
s
ortOrder
;
private
CodexAnimalUnlockCondition
OCCLHPBCDGL
;
@Override
public
int
getId
()
{
...
...
@@ -17,19 +17,19 @@ public class CodexAnimalData extends GameResource {
}
public
String
getType
()
{
return
T
ype
;
return
t
ype
;
}
public
int
getDescribeId
()
{
return
D
escribeId
;
return
d
escribeId
;
}
public
int
getSortOrder
()
{
return
S
ortOrder
;
return
s
ortOrder
;
}
public
CodexAnimalUnlockCondition
getUnlockCondition
()
{
return
BAINKHIIMJE
;
return
OCCLHPBCDGL
;
}
public
enum
CodexAnimalUnlockCondition
{
...
...
src/main/java/emu/grasscutter/data/
def
/CodexMaterialData.java
→
src/main/java/emu/grasscutter/data/
excels
/CodexMaterialData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.GameResource
;
...
...
@@ -7,15 +7,15 @@ import emu.grasscutter.data.ResourceType;
@ResourceType
(
name
=
{
"MaterialCodexExcelConfigData.json"
})
public
class
CodexMaterialData
extends
GameResource
{
private
int
Id
;
private
int
M
aterialId
;
private
int
S
ortOrder
;
private
int
m
aterialId
;
private
int
s
ortOrder
;
public
int
getSortOrder
()
{
return
S
ortOrder
;
return
s
ortOrder
;
}
public
int
getMaterialId
()
{
return
M
aterialId
;
return
m
aterialId
;
}
public
int
getId
()
{
...
...
src/main/java/emu/grasscutter/data/
def
/CodexQuestData.java
→
src/main/java/emu/grasscutter/data/
excels
/CodexQuestData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.GameResource
;
...
...
@@ -7,13 +7,13 @@ import emu.grasscutter.data.ResourceType;
@ResourceType
(
name
=
{
"QuestCodexExcelConfigData.json"
})
public
class
CodexQuestData
extends
GameResource
{
private
int
Id
;
private
int
P
arentQuestId
;
private
int
C
hapterId
;
private
int
S
ortOrder
;
private
boolean
I
sDisuse
;
private
int
p
arentQuestId
;
private
int
c
hapterId
;
private
int
s
ortOrder
;
private
boolean
i
sDisuse
;
public
int
getParentQuestId
()
{
return
P
arentQuestId
;
return
p
arentQuestId
;
}
public
int
getId
()
{
...
...
@@ -21,15 +21,15 @@ public class CodexQuestData extends GameResource {
}
public
int
getChapterId
()
{
return
C
hapterId
;
return
c
hapterId
;
}
public
int
getSortOrder
()
{
return
S
ortOrder
;
return
s
ortOrder
;
}
public
boolean
getIsDisuse
()
{
return
I
sDisuse
;
return
i
sDisuse
;
}
@Override
...
...
src/main/java/emu/grasscutter/data/
def
/CodexReliquaryData.java
→
src/main/java/emu/grasscutter/data/
excels
/CodexReliquaryData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.GameResource
;
...
...
@@ -7,17 +7,17 @@ import emu.grasscutter.data.ResourceType;
@ResourceType
(
name
=
{
"ReliquaryCodexExcelConfigData.json"
})
public
class
CodexReliquaryData
extends
GameResource
{
private
int
Id
;
private
int
S
uitId
;
private
int
L
evel
;
private
int
C
upId
;
private
int
L
eatherId
;
private
int
C
apId
;
private
int
F
lowerId
;
private
int
S
andId
;
private
int
S
ortOrder
;
private
int
s
uitId
;
private
int
l
evel
;
private
int
c
upId
;
private
int
l
eatherId
;
private
int
c
apId
;
private
int
f
lowerId
;
private
int
s
andId
;
private
int
s
ortOrder
;
public
int
getSortOrder
()
{
return
S
ortOrder
;
return
s
ortOrder
;
}
public
int
getId
()
{
...
...
@@ -25,31 +25,31 @@ public class CodexReliquaryData extends GameResource {
}
public
int
getSuitId
()
{
return
S
uitId
;
return
s
uitId
;
}
public
int
getLevel
()
{
return
L
evel
;
return
l
evel
;
}
public
int
getCupId
()
{
return
C
upId
;
return
c
upId
;
}
public
int
getLeatherId
()
{
return
L
eatherId
;
return
l
eatherId
;
}
public
int
getCapId
()
{
return
C
apId
;
return
c
apId
;
}
public
int
getFlowerId
()
{
return
F
lowerId
;
return
f
lowerId
;
}
public
int
getSandId
()
{
return
S
andId
;
return
s
andId
;
}
@Override
...
...
src/main/java/emu/grasscutter/data/
def
/CodexWeaponData.java
→
src/main/java/emu/grasscutter/data/
excels
/CodexWeaponData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.GameResource
;
...
...
@@ -7,15 +7,15 @@ import emu.grasscutter.data.ResourceType;
@ResourceType
(
name
=
{
"WeaponCodexExcelConfigData.json"
})
public
class
CodexWeaponData
extends
GameResource
{
private
int
Id
;
private
int
W
eaponId
;
private
int
S
ortOrder
;
private
int
w
eaponId
;
private
int
s
ortOrder
;
public
int
getSortOrder
()
{
return
S
ortOrder
;
return
s
ortOrder
;
}
public
int
getWeaponId
()
{
return
W
eaponId
;
return
w
eaponId
;
}
public
int
getId
()
{
...
...
src/main/java/emu/grasscutter/data/excels/CombineData.java
0 → 100644
View file @
a23b29b6
package
emu.grasscutter.data.excels
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.common.ItemParamData
;
import
java.util.List
;
import
java.util.stream.Collectors
;
@ResourceType
(
name
=
"CombineExcelConfigData.json"
)
public
class
CombineData
extends
GameResource
{
private
int
combineId
;
private
int
playerLevel
;
private
boolean
isDefaultShow
;
private
int
combineType
;
private
int
subCombineType
;
private
int
resultItemId
;
private
int
resultItemCount
;
private
int
scoinCost
;
private
List
<
ItemParamData
>
randomItems
;
private
List
<
ItemParamData
>
materialItems
;
private
String
recipeType
;
@Override
public
int
getId
()
{
return
this
.
combineId
;
}
@Override
public
void
onLoad
()
{
super
.
onLoad
();
// clean data
randomItems
=
randomItems
.
stream
().
filter
(
item
->
item
.
getId
()
>
0
).
collect
(
Collectors
.
toList
());
materialItems
=
materialItems
.
stream
().
filter
(
item
->
item
.
getId
()
>
0
).
collect
(
Collectors
.
toList
());
}
public
int
getCombineId
()
{
return
combineId
;
}
public
int
getPlayerLevel
()
{
return
playerLevel
;
}
public
boolean
isDefaultShow
()
{
return
isDefaultShow
;
}
public
int
getCombineType
()
{
return
combineType
;
}
public
int
getSubCombineType
()
{
return
subCombineType
;
}
public
int
getResultItemId
()
{
return
resultItemId
;
}
public
int
getResultItemCount
()
{
return
resultItemCount
;
}
public
int
getScoinCost
()
{
return
scoinCost
;
}
public
List
<
ItemParamData
>
getRandomItems
()
{
return
randomItems
;
}
public
List
<
ItemParamData
>
getMaterialItems
()
{
return
materialItems
;
}
public
String
getRecipeType
()
{
return
recipeType
;
}
}
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