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
a8293102
Commit
a8293102
authored
Jun 07, 2022
by
Melledy
Committed by
GitHub
Jun 07, 2022
Browse files
Merge branch 'development' into stable
parents
304b9cb8
ecf7a81a
Changes
410
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/data/common/ItemUseData.java
0 → 100644
View file @
a8293102
package
emu.grasscutter.data.common
;
import
java.util.List
;
public
class
ItemUseData
{
private
String
useOp
;
private
List
<
String
>
useParam
;
public
String
getUseOp
()
{
return
useOp
;
}
public
void
setUseOp
(
String
useOp
)
{
this
.
useOp
=
useOp
;
}
public
List
<
String
>
getUseParam
()
{
return
useParam
;
}
public
void
setUseParam
(
List
<
String
>
useParam
)
{
this
.
useParam
=
useParam
;
}
}
src/main/java/emu/grasscutter/data/common/OpenCondData.java
View file @
a8293102
...
@@ -3,22 +3,22 @@ package emu.grasscutter.data.common;
...
@@ -3,22 +3,22 @@ package emu.grasscutter.data.common;
import
java.util.List
;
import
java.util.List
;
public
class
OpenCondData
{
public
class
OpenCondData
{
private
String
C
ondType
;
private
String
c
ondType
;
private
List
<
Integer
>
P
aramList
;
private
List
<
Integer
>
p
aramList
;
public
String
getCondType
()
{
public
String
getCondType
()
{
return
C
ondType
;
return
c
ondType
;
}
}
public
void
setCondType
(
String
condType
)
{
public
void
setCondType
(
String
condType
)
{
C
ondType
=
condType
;
c
ondType
=
condType
;
}
}
public
List
<
Integer
>
getParamList
()
{
public
List
<
Integer
>
getParamList
()
{
return
P
aramList
;
return
p
aramList
;
}
}
public
void
setParamList
(
List
<
Integer
>
paramList
)
{
public
void
setParamList
(
List
<
Integer
>
paramList
)
{
P
aramList
=
paramList
;
p
aramList
=
paramList
;
}
}
}
}
src/main/java/emu/grasscutter/data/common/PointData.java
View file @
a8293102
package
emu.grasscutter.data.common
;
package
emu.grasscutter.data.common
;
import
com.google.gson.annotations.SerializedName
;
import
emu.grasscutter.Grasscutter
;
import
emu.grasscutter.Grasscutter
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.
def
.DailyDungeonData
;
import
emu.grasscutter.data.
excels
.DailyDungeonData
;
import
emu.grasscutter.utils.Position
;
import
emu.grasscutter.utils.Position
;
import
it.unimi.dsi.fastutil.ints.IntArrayList
;
import
it.unimi.dsi.fastutil.ints.IntArrayList
;
import
it.unimi.dsi.fastutil.ints.IntList
;
import
it.unimi.dsi.fastutil.ints.IntList
;
...
@@ -11,7 +13,11 @@ public class PointData {
...
@@ -11,7 +13,11 @@ public class PointData {
private
int
id
;
private
int
id
;
private
String
$type
;
private
String
$type
;
private
Position
tranPos
;
private
Position
tranPos
;
@SerializedName
(
value
=
"dungeonIds"
,
alternate
={
"JHHFPGJNMIN"
})
private
int
[]
dungeonIds
;
private
int
[]
dungeonIds
;
@SerializedName
(
value
=
"dungeonRandomList"
,
alternate
={
"OIBKFJNBLHO"
})
private
int
[]
dungeonRandomList
;
private
int
[]
dungeonRandomList
;
private
int
tranSceneId
;
private
int
tranSceneId
;
...
...
src/main/java/emu/grasscutter/data/common/PropGrowCurve.java
View file @
a8293102
package
emu.grasscutter.data.common
;
package
emu.grasscutter.data.common
;
public
class
PropGrowCurve
{
public
class
PropGrowCurve
{
private
String
T
ype
;
private
String
t
ype
;
private
String
G
rowCurve
;
private
String
g
rowCurve
;
public
String
getType
(){
public
String
getType
(){
return
this
.
T
ype
;
return
this
.
t
ype
;
}
}
public
String
getGrowCurve
(){
public
String
getGrowCurve
(){
return
this
.
G
rowCurve
;
return
this
.
g
rowCurve
;
}
}
}
}
src/main/java/emu/grasscutter/data/common/RewardItemData.java
deleted
100644 → 0
View file @
304b9cb8
package
emu.grasscutter.data.common
;
public
class
RewardItemData
{
private
int
ItemId
;
private
int
ItemCount
;
public
int
getItemId
()
{
return
ItemId
;
}
public
void
setItemId
(
int
itemId
)
{
ItemId
=
itemId
;
}
public
int
getItemCount
()
{
return
ItemCount
;
}
public
void
setItemCount
(
int
itemCount
)
{
ItemCount
=
itemCount
;
}
}
src/main/java/emu/grasscutter/data/def/CombineData.java
deleted
100644 → 0
View file @
304b9cb8
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 @
a8293102
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
;
...
@@ -6,21 +6,21 @@ import emu.grasscutter.data.ResourceType;
...
@@ -6,21 +6,21 @@ import emu.grasscutter.data.ResourceType;
@ResourceType
(
name
=
"AvatarCostumeExcelConfigData.json"
)
@ResourceType
(
name
=
"AvatarCostumeExcelConfigData.json"
)
public
class
AvatarCostumeData
extends
GameResource
{
public
class
AvatarCostumeData
extends
GameResource
{
private
int
C
ostumeId
;
private
int
c
ostumeId
;
private
int
I
temId
;
private
int
i
temId
;
private
int
A
vatarId
;
private
int
a
vatarId
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
this
.
C
ostumeId
;
return
this
.
c
ostumeId
;
}
}
public
int
getItemId
()
{
public
int
getItemId
()
{
return
this
.
I
temId
;
return
this
.
i
temId
;
}
}
public
int
getAvatarId
()
{
public
int
getAvatarId
()
{
return
A
vatarId
;
return
a
vatarId
;
}
}
@Override
@Override
...
...
src/main/java/emu/grasscutter/data/
def
/AvatarCurveData.java
→
src/main/java/emu/grasscutter/data/
excels
/AvatarCurveData.java
View file @
a8293102
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,27 +10,27 @@ import emu.grasscutter.data.common.CurveInfo;
...
@@ -10,27 +10,27 @@ import emu.grasscutter.data.common.CurveInfo;
@ResourceType
(
name
=
"AvatarCurveExcelConfigData.json"
)
@ResourceType
(
name
=
"AvatarCurveExcelConfigData.json"
)
public
class
AvatarCurveData
extends
GameResource
{
public
class
AvatarCurveData
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
this
.
L
evel
;
return
this
.
l
evel
;
}
}
public
int
getLevel
()
{
public
int
getLevel
()
{
return
L
evel
;
return
l
evel
;
}
}
public
Map
<
String
,
Float
>
getCurveInfos
()
{
public
Map
<
String
,
Float
>
getCurveInfos
()
{
return
curveInfo
s
;
return
curveInfo
Map
;
}
}
@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
/AvatarData.java
→
src/main/java/emu/grasscutter/data/
excels
/AvatarData.java
View file @
a8293102
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
java.util.List
;
import
java.util.List
;
...
@@ -6,9 +6,10 @@ import emu.grasscutter.data.GameData;
...
@@ -6,9 +6,10 @@ import emu.grasscutter.data.GameData;
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.binout.AbilityEmbryoEntry
;
import
emu.grasscutter.data.common.PropGrowCurve
;
import
emu.grasscutter.data.common.PropGrowCurve
;
import
emu.grasscutter.data.custom.AbilityEmbryoEntry
;
import
emu.grasscutter.game.props.FightProperty
;
import
emu.grasscutter.game.props.FightProperty
;
import
emu.grasscutter.game.props.WeaponType
;
import
emu.grasscutter.utils.Utils
;
import
emu.grasscutter.utils.Utils
;
import
it.unimi.dsi.fastutil.ints.Int2ObjectMap
;
import
it.unimi.dsi.fastutil.ints.Int2ObjectMap
;
import
it.unimi.dsi.fastutil.ints.IntArrayList
;
import
it.unimi.dsi.fastutil.ints.IntArrayList
;
...
@@ -17,38 +18,36 @@ import it.unimi.dsi.fastutil.ints.IntList;
...
@@ -17,38 +18,36 @@ import it.unimi.dsi.fastutil.ints.IntList;
@ResourceType
(
name
=
"AvatarExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
LOW
)
@ResourceType
(
name
=
"AvatarExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
LOW
)
public
class
AvatarData
extends
GameResource
{
public
class
AvatarData
extends
GameResource
{
private
String
name
;
private
String
iconName
;
private
String
IconName
;
private
String
bodyType
;
private
String
BodyType
;
private
String
qualityType
;
private
String
QualityType
;
private
int
chargeEfficiency
;
private
int
ChargeEfficiency
;
private
int
initialWeapon
;
private
int
InitialWeapon
;
private
WeaponType
weaponType
;
private
String
WeaponType
;
private
String
imageName
;
private
String
ImageName
;
private
int
avatarPromoteId
;
private
int
AvatarPromoteId
;
private
String
cutsceneShow
;
private
String
CutsceneShow
;
private
int
skillDepotId
;
private
int
SkillDepotId
;
private
int
staminaRecoverSpeed
;
private
int
StaminaRecoverSpeed
;
private
List
<
String
>
candSkillDepotIds
;
private
List
<
String
>
CandSkillDepotIds
;
private
String
avatarIdentityType
;
private
long
DescTextMapHash
;
private
List
<
Integer
>
avatarPromoteRewardLevelList
;
private
String
AvatarIdentityType
;
private
List
<
Integer
>
avatarPromoteRewardIdList
;
private
List
<
Integer
>
AvatarPromoteRewardLevelList
;
private
List
<
Integer
>
AvatarPromoteRewardIdList
;
private
long
nameTextMapHash
;
private
int
FeatureTagGroupID
;
private
long
NameTextMapHash
;
private
long
GachaImageNameHashSuffix
;
private
long
InfoDescTextMapHash
;
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
C
ritical
;
private
float
c
ritical
;
private
float
C
riticalHurt
;
private
float
c
riticalHurt
;
private
List
<
PropGrowCurve
>
P
ropGrowCurves
;
private
List
<
PropGrowCurve
>
p
ropGrowCurves
;
private
int
I
d
;
private
int
i
d
;
// Transient
private
String
name
;
private
Int2ObjectMap
<
String
>
growthCurveMap
;
private
Int2ObjectMap
<
String
>
growthCurveMap
;
private
float
[]
hpGrowthCurve
;
private
float
[]
hpGrowthCurve
;
private
float
[]
attackGrowthCurve
;
private
float
[]
attackGrowthCurve
;
...
@@ -58,11 +57,11 @@ public class AvatarData extends GameResource {
...
@@ -58,11 +57,11 @@ public class AvatarData extends GameResource {
private
List
<
Integer
>
fetters
;
private
List
<
Integer
>
fetters
;
private
int
nameCardRewardId
;
private
int
nameCardRewardId
;
private
int
nameCardId
;
private
int
nameCardId
;
@Override
@Override
public
int
getId
(){
public
int
getId
(){
return
this
.
I
d
;
return
this
.
i
d
;
}
}
public
String
getName
()
{
public
String
getName
()
{
...
@@ -70,107 +69,91 @@ public class AvatarData extends GameResource {
...
@@ -70,107 +69,91 @@ public class AvatarData extends GameResource {
}
}
public
String
getBodyType
(){
public
String
getBodyType
(){
return
this
.
B
odyType
;
return
this
.
b
odyType
;
}
}
public
String
getQualityType
(){
public
String
getQualityType
(){
return
this
.
Q
ualityType
;
return
this
.
q
ualityType
;
}
}
public
int
getChargeEfficiency
(){
public
int
getChargeEfficiency
(){
return
this
.
C
hargeEfficiency
;
return
this
.
c
hargeEfficiency
;
}
}
public
int
getInitialWeapon
(){
public
int
getInitialWeapon
(){
return
this
.
I
nitialWeapon
;
return
this
.
i
nitialWeapon
;
}
}
public
String
getWeaponType
(){
public
WeaponType
getWeaponType
(){
return
this
.
W
eaponType
;
return
this
.
w
eaponType
;
}
}
public
String
getImageName
(){
public
String
getImageName
(){
return
this
.
I
mageName
;
return
this
.
i
mageName
;
}
}
public
int
getAvatarPromoteId
(){
public
int
getAvatarPromoteId
(){
return
this
.
AvatarPromoteId
;
return
this
.
avatarPromoteId
;
}
public
long
getGachaImageNameHashSuffix
(){
return
this
.
GachaImageNameHashSuffix
;
}
}
public
String
getCutsceneShow
(){
public
String
getCutsceneShow
(){
return
this
.
C
utsceneShow
;
return
this
.
c
utsceneShow
;
}
}
public
int
getSkillDepotId
(){
public
int
getSkillDepotId
(){
return
this
.
S
killDepotId
;
return
this
.
s
killDepotId
;
}
}
public
int
getStaminaRecoverSpeed
(){
public
int
getStaminaRecoverSpeed
(){
return
this
.
S
taminaRecoverSpeed
;
return
this
.
s
taminaRecoverSpeed
;
}
}
public
List
<
String
>
getCandSkillDepotIds
(){
public
List
<
String
>
getCandSkillDepotIds
(){
return
this
.
C
andSkillDepotIds
;
return
this
.
c
andSkillDepotIds
;
}
}
public
long
getDescTextMapHash
(){
return
this
.
DescTextMapHash
;
}
public
String
getAvatarIdentityType
(){
public
String
getAvatarIdentityType
(){
return
this
.
A
vatarIdentityType
;
return
this
.
a
vatarIdentityType
;
}
}
public
List
<
Integer
>
getAvatarPromoteRewardLevelList
(){
public
List
<
Integer
>
getAvatarPromoteRewardLevelList
(){
return
this
.
A
vatarPromoteRewardLevelList
;
return
this
.
a
vatarPromoteRewardLevelList
;
}
}
public
List
<
Integer
>
getAvatarPromoteRewardIdList
(){
public
List
<
Integer
>
getAvatarPromoteRewardIdList
(){
return
this
.
A
vatarPromoteRewardIdList
;
return
this
.
a
vatarPromoteRewardIdList
;
}
}
public
int
getFeatureTagGroupID
(){
return
this
.
FeatureTagGroupID
;
}
public
long
getInfoDescTextMapHash
(){
return
this
.
InfoDescTextMapHash
;
}
public
float
getBaseHp
(
int
level
){
public
float
getBaseHp
(
int
level
){
try
{
try
{
return
this
.
H
pBase
*
this
.
hpGrowthCurve
[
level
-
1
];
return
this
.
h
pBase
*
this
.
hpGrowthCurve
[
level
-
1
];
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
return
this
.
H
pBase
;
return
this
.
h
pBase
;
}
}
}
}
public
float
getBaseAttack
(
int
level
){
public
float
getBaseAttack
(
int
level
){
try
{
try
{
return
this
.
A
ttackBase
*
this
.
attackGrowthCurve
[
level
-
1
];
return
this
.
a
ttackBase
*
this
.
attackGrowthCurve
[
level
-
1
];
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
return
this
.
A
ttackBase
;
return
this
.
a
ttackBase
;
}
}
}
}
public
float
getBaseDefense
(
int
level
){
public
float
getBaseDefense
(
int
level
){
try
{
try
{
return
this
.
D
efenseBase
*
this
.
defenseGrowthCurve
[
level
-
1
];
return
this
.
d
efenseBase
*
this
.
defenseGrowthCurve
[
level
-
1
];
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
return
this
.
D
efenseBase
;
return
this
.
d
efenseBase
;
}
}
}
}
public
float
getBaseCritical
(){
public
float
getBaseCritical
(){
return
this
.
C
ritical
;
return
this
.
c
ritical
;
}
}
public
float
getBaseCriticalHurt
(){
public
float
getBaseCriticalHurt
(){
return
this
.
C
riticalHurt
;
return
this
.
c
riticalHurt
;
}
}
public
float
getGrowthCurveById
(
int
level
,
FightProperty
prop
)
{
public
float
getGrowthCurveById
(
int
level
,
FightProperty
prop
)
{
...
@@ -186,7 +169,7 @@ public class AvatarData extends GameResource {
...
@@ -186,7 +169,7 @@ public class AvatarData extends GameResource {
}
}
public
long
getNameTextMapHash
(){
public
long
getNameTextMapHash
(){
return
this
.
N
ameTextMapHash
;
return
this
.
n
ameTextMapHash
;
}
}
public
AvatarSkillDepotData
getSkillDepot
()
{
public
AvatarSkillDepotData
getSkillDepot
()
{
...
@@ -211,13 +194,13 @@ public class AvatarData extends GameResource {
...
@@ -211,13 +194,13 @@ public class AvatarData extends GameResource {
@Override
@Override
public
void
onLoad
()
{
public
void
onLoad
()
{
this
.
skillDepot
=
GameData
.
getAvatarSkillDepotDataMap
().
get
(
this
.
S
killDepotId
);
this
.
skillDepot
=
GameData
.
getAvatarSkillDepotDataMap
().
get
(
this
.
s
killDepotId
);
// Get fetters from GameData
// 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
)
{
if
(
GameData
.
getFetterCharacterCardDataMap
().
get
(
this
.
i
d
)
!=
null
)
{
this
.
nameCardRewardId
=
GameData
.
getFetterCharacterCardDataMap
().
get
(
this
.
I
d
).
getRewardId
();
this
.
nameCardRewardId
=
GameData
.
getFetterCharacterCardDataMap
().
get
(
this
.
i
d
).
getRewardId
();
}
}
if
(
GameData
.
getRewardDataMap
().
get
(
this
.
nameCardRewardId
)
!=
null
)
{
if
(
GameData
.
getRewardDataMap
().
get
(
this
.
nameCardRewardId
)
!=
null
)
{
...
@@ -230,7 +213,7 @@ public class AvatarData extends GameResource {
...
@@ -230,7 +213,7 @@ public class AvatarData extends GameResource {
this
.
defenseGrowthCurve
=
new
float
[
size
];
this
.
defenseGrowthCurve
=
new
float
[
size
];
for
(
AvatarCurveData
curveData
:
GameData
.
getAvatarCurveDataMap
().
values
())
{
for
(
AvatarCurveData
curveData
:
GameData
.
getAvatarCurveDataMap
().
values
())
{
int
level
=
curveData
.
getLevel
()
-
1
;
int
level
=
curveData
.
getLevel
()
-
1
;
for
(
PropGrowCurve
growCurve
:
this
.
P
ropGrowCurves
)
{
for
(
PropGrowCurve
growCurve
:
this
.
p
ropGrowCurves
)
{
FightProperty
prop
=
FightProperty
.
getPropByName
(
growCurve
.
getType
());
FightProperty
prop
=
FightProperty
.
getPropByName
(
growCurve
.
getType
());
switch
(
prop
)
{
switch
(
prop
)
{
case
FIGHT_PROP_BASE_HP:
case
FIGHT_PROP_BASE_HP:
...
@@ -256,7 +239,7 @@ public class AvatarData extends GameResource {
...
@@ -256,7 +239,7 @@ public class AvatarData extends GameResource {
*/
*/
// Cache abilities
// Cache abilities
String
[]
split
=
this
.
I
conName
.
split
(
"_"
);
String
[]
split
=
this
.
i
conName
.
split
(
"_"
);
if
(
split
.
length
>
0
)
{
if
(
split
.
length
>
0
)
{
this
.
name
=
split
[
split
.
length
-
1
];
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 @
a8293102
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
=
"AvatarFettersLevelExcelConfigData.json"
)
@ResourceType
(
name
=
"AvatarFettersLevelExcelConfigData.json"
)
public
class
AvatarFetterLevelData
extends
GameResource
{
public
class
AvatarFetterLevelData
extends
GameResource
{
private
int
F
etterLevel
;
private
int
f
etterLevel
;
private
int
N
eedExp
;
private
int
n
eedExp
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
this
.
F
etterLevel
;
return
this
.
f
etterLevel
;
}
}
public
int
getLevel
()
{
public
int
getLevel
()
{
return
F
etterLevel
;
return
f
etterLevel
;
}
}
public
int
getExp
()
{
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 @
a8293102
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
=
"AvatarFlycloakExcelConfigData.json"
)
@ResourceType
(
name
=
"AvatarFlycloakExcelConfigData.json"
)
public
class
AvatarFlycloakData
extends
GameResource
{
public
class
AvatarFlycloakData
extends
GameResource
{
private
int
F
lycloakId
;
private
int
f
lycloakId
;
private
long
N
ameTextMapHash
;
private
long
n
ameTextMapHash
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
this
.
F
lycloakId
;
return
this
.
f
lycloakId
;
}
}
public
long
getNameTextMapHash
()
{
public
long
getNameTextMapHash
()
{
return
N
ameTextMapHash
;
return
n
ameTextMapHash
;
}
}
@Override
@Override
...
...
src/main/java/emu/grasscutter/data/
def
/AvatarLevelData.java
→
src/main/java/emu/grasscutter/data/
excels
/AvatarLevelData.java
View file @
a8293102
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
=
"AvatarLevelExcelConfigData.json"
)
@ResourceType
(
name
=
"AvatarLevelExcelConfigData.json"
)
public
class
AvatarLevelData
extends
GameResource
{
public
class
AvatarLevelData
extends
GameResource
{
private
int
L
evel
;
private
int
l
evel
;
private
int
E
xp
;
private
int
e
xp
;
@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
;
}
}
}
}
src/main/java/emu/grasscutter/data/
def
/AvatarPromoteData.java
→
src/main/java/emu/grasscutter/data/
excels
/AvatarPromoteData.java
View file @
a8293102
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
;
...
@@ -9,45 +9,45 @@ import emu.grasscutter.data.common.ItemParamData;
...
@@ -9,45 +9,45 @@ import emu.grasscutter.data.common.ItemParamData;
@ResourceType
(
name
=
"AvatarPromoteExcelConfigData.json"
)
@ResourceType
(
name
=
"AvatarPromoteExcelConfigData.json"
)
public
class
AvatarPromoteData
extends
GameResource
{
public
class
AvatarPromoteData
extends
GameResource
{
private
int
A
vatarPromoteId
;
private
int
a
vatarPromoteId
;
private
int
P
romoteLevel
;
private
int
p
romoteLevel
;
private
int
S
coinCost
;
private
int
s
coinCost
;
private
ItemParamData
[]
C
ostItems
;
private
ItemParamData
[]
c
ostItems
;
private
int
U
nlockMaxLevel
;
private
int
u
nlockMaxLevel
;
private
FightPropData
[]
A
ddProps
;
private
FightPropData
[]
a
ddProps
;
private
int
R
equiredPlayerLevel
;
private
int
r
equiredPlayerLevel
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
(
A
vatarPromoteId
<<
8
)
+
P
romoteLevel
;
return
(
a
vatarPromoteId
<<
8
)
+
p
romoteLevel
;
}
}
public
int
getAvatarPromoteId
()
{
public
int
getAvatarPromoteId
()
{
return
A
vatarPromoteId
;
return
a
vatarPromoteId
;
}
}
public
int
getPromoteLevel
()
{
public
int
getPromoteLevel
()
{
return
P
romoteLevel
;
return
p
romoteLevel
;
}
}
public
ItemParamData
[]
getCostItems
()
{
public
ItemParamData
[]
getCostItems
()
{
return
C
ostItems
;
return
c
ostItems
;
}
}
public
int
getCoinCost
()
{
public
int
getCoinCost
()
{
return
S
coinCost
;
return
s
coinCost
;
}
}
public
FightPropData
[]
getAddProps
()
{
public
FightPropData
[]
getAddProps
()
{
return
A
ddProps
;
return
a
ddProps
;
}
}
public
int
getUnlockMaxLevel
()
{
public
int
getUnlockMaxLevel
()
{
return
U
nlockMaxLevel
;
return
u
nlockMaxLevel
;
}
}
public
int
getRequiredPlayerLevel
()
{
public
int
getRequiredPlayerLevel
()
{
return
R
equiredPlayerLevel
;
return
r
equiredPlayerLevel
;
}
}
@Override
@Override
...
@@ -60,7 +60,7 @@ public class AvatarPromoteData extends GameResource {
...
@@ -60,7 +60,7 @@ public class AvatarPromoteData extends GameResource {
}
}
trim
.
add
(
itemParam
);
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)
// Trim fight prop data (just in case)
ArrayList
<
FightPropData
>
parsed
=
new
ArrayList
<>(
getAddProps
().
length
);
ArrayList
<
FightPropData
>
parsed
=
new
ArrayList
<>(
getAddProps
().
length
);
for
(
FightPropData
prop
:
getAddProps
())
{
for
(
FightPropData
prop
:
getAddProps
())
{
...
@@ -69,6 +69,6 @@ public class AvatarPromoteData extends GameResource {
...
@@ -69,6 +69,6 @@ public class AvatarPromoteData 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
/AvatarSkillData.java
→
src/main/java/emu/grasscutter/data/
excels
/AvatarSkillData.java
View file @
a8293102
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.game.props.ElementType
;
@ResourceType
(
name
=
"AvatarSkillExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
HIGHEST
)
@ResourceType
(
name
=
"AvatarSkillExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
HIGHEST
)
public
class
AvatarSkillData
extends
GameResource
{
public
class
AvatarSkillData
extends
GameResource
{
private
int
I
d
;
private
int
i
d
;
private
float
C
dTime
;
private
float
c
dTime
;
private
int
C
ostElemVal
;
private
int
c
ostElemVal
;
private
int
M
axChargeNum
;
private
int
m
axChargeNum
;
private
int
T
riggerID
;
private
int
t
riggerID
;
private
boolean
I
sAttackCameraLock
;
private
boolean
i
sAttackCameraLock
;
private
int
P
roudSkillGroupId
;
private
int
p
roudSkillGroupId
;
private
String
C
ostElemType
;
private
ElementType
c
ostElemType
;
private
List
<
Float
>
L
ockWeightParams
;
private
List
<
Float
>
l
ockWeightParams
;
private
long
N
ameTextMapHash
;
private
long
n
ameTextMapHash
;
private
String
A
bilityName
;
private
String
a
bilityName
;
private
String
L
ockShape
;
private
String
l
ockShape
;
private
String
G
lobalValueKey
;
private
String
g
lobalValueKey
;
@Override
@Override
public
int
getId
(){
public
int
getId
(){
return
this
.
I
d
;
return
this
.
i
d
;
}
}
public
float
getCdTime
()
{
public
float
getCdTime
()
{
return
C
dTime
;
return
c
dTime
;
}
}
public
int
getCostElemVal
()
{
public
int
getCostElemVal
()
{
return
C
ostElemVal
;
return
c
ostElemVal
;
}
}
public
int
getMaxChargeNum
()
{
public
int
getMaxChargeNum
()
{
return
M
axChargeNum
;
return
m
axChargeNum
;
}
}
public
int
getTriggerID
()
{
public
int
getTriggerID
()
{
return
T
riggerID
;
return
t
riggerID
;
}
}
public
boolean
isIsAttackCameraLock
()
{
public
boolean
isIsAttackCameraLock
()
{
return
I
sAttackCameraLock
;
return
i
sAttackCameraLock
;
}
}
public
int
getProudSkillGroupId
()
{
public
int
getProudSkillGroupId
()
{
return
P
roudSkillGroupId
;
return
p
roudSkillGroupId
;
}
}
public
String
getCostElemType
()
{
public
ElementType
getCostElemType
()
{
return
C
ostElemType
;
return
c
ostElemType
;
}
}
public
List
<
Float
>
getLockWeightParams
()
{
public
List
<
Float
>
getLockWeightParams
()
{
return
L
ockWeightParams
;
return
l
ockWeightParams
;
}
}
public
long
getNameTextMapHash
()
{
public
long
getNameTextMapHash
()
{
return
N
ameTextMapHash
;
return
n
ameTextMapHash
;
}
}
public
String
getAbilityName
()
{
public
String
getAbilityName
()
{
return
A
bilityName
;
return
a
bilityName
;
}
}
public
String
getLockShape
()
{
public
String
getLockShape
()
{
return
L
ockShape
;
return
l
ockShape
;
}
}
public
String
getGlobalValueKey
()
{
public
String
getGlobalValueKey
()
{
return
G
lobalValueKey
;
return
g
lobalValueKey
;
}
}
@Override
@Override
...
...
src/main/java/emu/grasscutter/data/
def
/AvatarSkillDepotData.java
→
src/main/java/emu/grasscutter/data/
excels
/AvatarSkillDepotData.java
View file @
a8293102
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
java.util.List
;
import
java.util.List
;
...
@@ -6,7 +6,7 @@ import emu.grasscutter.data.GameData;
...
@@ -6,7 +6,7 @@ import emu.grasscutter.data.GameData;
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.
custom
.AbilityEmbryoEntry
;
import
emu.grasscutter.data.
binout
.AbilityEmbryoEntry
;
import
emu.grasscutter.game.props.ElementType
;
import
emu.grasscutter.game.props.ElementType
;
import
emu.grasscutter.utils.Utils
;
import
emu.grasscutter.utils.Utils
;
import
it.unimi.dsi.fastutil.ints.IntArrayList
;
import
it.unimi.dsi.fastutil.ints.IntArrayList
;
...
@@ -15,62 +15,63 @@ import it.unimi.dsi.fastutil.ints.IntList;
...
@@ -15,62 +15,63 @@ import it.unimi.dsi.fastutil.ints.IntList;
@ResourceType
(
name
=
"AvatarSkillDepotExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
HIGH
)
@ResourceType
(
name
=
"AvatarSkillDepotExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
HIGH
)
public
class
AvatarSkillDepotData
extends
GameResource
{
public
class
AvatarSkillDepotData
extends
GameResource
{
private
int
I
d
;
private
int
i
d
;
private
int
E
nergySkill
;
private
int
e
nergySkill
;
private
int
A
ttackModeSkill
;
private
int
a
ttackModeSkill
;
private
List
<
Integer
>
S
kills
;
private
List
<
Integer
>
s
kills
;
private
List
<
Integer
>
S
ubSkills
;
private
List
<
Integer
>
s
ubSkills
;
private
List
<
String
>
E
xtraAbilities
;
private
List
<
String
>
e
xtraAbilities
;
private
List
<
Integer
>
T
alents
;
private
List
<
Integer
>
t
alents
;
private
List
<
InherentProudSkillOpens
>
I
nherentProudSkillOpens
;
private
List
<
InherentProudSkillOpens
>
i
nherentProudSkillOpens
;
private
String
T
alentStarName
;
private
String
t
alentStarName
;
private
String
S
killDepotAbilityGroup
;
private
String
s
killDepotAbilityGroup
;
// Transient
private
AvatarSkillData
energySkillData
;
private
AvatarSkillData
energySkillData
;
private
ElementType
elementType
;
private
ElementType
elementType
;
private
IntList
abilities
;
private
IntList
abilities
;
@Override
@Override
public
int
getId
(){
public
int
getId
(){
return
this
.
I
d
;
return
this
.
i
d
;
}
}
public
int
getEnergySkill
(){
public
int
getEnergySkill
(){
return
this
.
E
nergySkill
;
return
this
.
e
nergySkill
;
}
}
public
List
<
Integer
>
getSkills
(){
public
List
<
Integer
>
getSkills
(){
return
this
.
S
kills
;
return
this
.
s
kills
;
}
}
public
List
<
Integer
>
getSubSkills
(){
public
List
<
Integer
>
getSubSkills
(){
return
this
.
S
ubSkills
;
return
this
.
s
ubSkills
;
}
}
public
int
getAttackModeSkill
(){
public
int
getAttackModeSkill
(){
return
this
.
A
ttackModeSkill
;
return
this
.
a
ttackModeSkill
;
}
}
public
List
<
String
>
getExtraAbilities
(){
public
List
<
String
>
getExtraAbilities
(){
return
this
.
E
xtraAbilities
;
return
this
.
e
xtraAbilities
;
}
}
public
List
<
Integer
>
getTalents
(){
public
List
<
Integer
>
getTalents
(){
return
this
.
T
alents
;
return
this
.
t
alents
;
}
}
public
String
getTalentStarName
(){
public
String
getTalentStarName
(){
return
this
.
T
alentStarName
;
return
this
.
t
alentStarName
;
}
}
public
List
<
InherentProudSkillOpens
>
getInherentProudSkillOpens
(){
public
List
<
InherentProudSkillOpens
>
getInherentProudSkillOpens
(){
return
this
.
I
nherentProudSkillOpens
;
return
this
.
i
nherentProudSkillOpens
;
}
}
public
String
getSkillDepotAbilityGroup
(){
public
String
getSkillDepotAbilityGroup
(){
return
this
.
S
killDepotAbilityGroup
;
return
this
.
s
killDepotAbilityGroup
;
}
}
public
AvatarSkillData
getEnergySkillData
()
{
public
AvatarSkillData
getEnergySkillData
()
{
...
@@ -94,30 +95,24 @@ public class AvatarSkillDepotData extends GameResource {
...
@@ -94,30 +95,24 @@ public class AvatarSkillDepotData extends GameResource {
@Override
@Override
public
void
onLoad
()
{
public
void
onLoad
()
{
this
.
energySkillData
=
GameData
.
getAvatarSkillDataMap
().
get
(
this
.
E
nergySkill
);
this
.
energySkillData
=
GameData
.
getAvatarSkillDataMap
().
get
(
this
.
e
nergySkill
);
if
(
getEnergySkillData
()
!=
null
)
{
if
(
getEnergySkillData
()
!=
null
)
{
this
.
elementType
=
ElementType
.
getTypeByName
(
getEnergySkillData
().
getCostElemType
()
)
;
this
.
elementType
=
getEnergySkillData
().
getCostElemType
();
}
else
{
}
else
{
this
.
elementType
=
ElementType
.
None
;
this
.
elementType
=
ElementType
.
None
;
}
}
}
}
public
static
class
InherentProudSkillOpens
{
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
(){
public
int
getProudSkillGroupId
(){
return
this
.
ProudSkillGroupId
;
return
this
.
proudSkillGroupId
;
}
public
void
setNeedAvatarPromoteLevel
(
int
NeedAvatarPromoteLevel
){
this
.
NeedAvatarPromoteLevel
=
NeedAvatarPromoteLevel
;
}
}
public
int
getNeedAvatarPromoteLevel
(){
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 @
a8293102
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,51 +8,51 @@ import emu.grasscutter.data.common.FightPropData;
...
@@ -8,51 +8,51 @@ import emu.grasscutter.data.common.FightPropData;
@ResourceType
(
name
=
"AvatarTalentExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
HIGHEST
)
@ResourceType
(
name
=
"AvatarTalentExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
HIGHEST
)
public
class
AvatarTalentData
extends
GameResource
{
public
class
AvatarTalentData
extends
GameResource
{
private
int
T
alentId
;
private
int
t
alentId
;
private
int
P
revTalent
;
private
int
p
revTalent
;
private
long
N
ameTextMapHash
;
private
long
n
ameTextMapHash
;
private
String
I
con
;
private
String
i
con
;
private
int
M
ainCostItemId
;
private
int
m
ainCostItemId
;
private
int
M
ainCostItemCount
;
private
int
m
ainCostItemCount
;
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
this
.
T
alentId
;
return
this
.
t
alentId
;
}
}
public
int
PrevTalent
()
{
public
int
PrevTalent
()
{
return
P
revTalent
;
return
p
revTalent
;
}
}
public
long
getNameTextMapHash
()
{
public
long
getNameTextMapHash
()
{
return
N
ameTextMapHash
;
return
n
ameTextMapHash
;
}
}
public
String
getIcon
()
{
public
String
getIcon
()
{
return
I
con
;
return
i
con
;
}
}
public
int
getMainCostItemId
()
{
public
int
getMainCostItemId
()
{
return
M
ainCostItemId
;
return
m
ainCostItemId
;
}
}
public
int
getMainCostItemCount
()
{
public
int
getMainCostItemCount
()
{
return
M
ainCostItemCount
;
return
m
ainCostItemCount
;
}
}
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
...
@@ -64,6 +64,6 @@ public class AvatarTalentData extends GameResource {
...
@@ -64,6 +64,6 @@ public class AvatarTalentData 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/excels/CodexAnimalData.java
0 → 100644
View file @
a8293102
package
emu.grasscutter.data.excels
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
@ResourceType
(
name
=
{
"AnimalCodexExcelConfigData.json"
})
public
class
CodexAnimalData
extends
GameResource
{
private
int
Id
;
private
String
type
;
private
int
describeId
;
private
int
sortOrder
;
private
CodexAnimalUnlockCondition
OCCLHPBCDGL
;
@Override
public
int
getId
()
{
return
Id
;
}
public
String
getType
()
{
return
type
;
}
public
int
getDescribeId
()
{
return
describeId
;
}
public
int
getSortOrder
()
{
return
sortOrder
;
}
public
CodexAnimalUnlockCondition
getUnlockCondition
()
{
return
OCCLHPBCDGL
;
}
public
enum
CodexAnimalUnlockCondition
{
CODEX_COUNT_TYPE_KILL
,
CODEX_COUNT_TYPE_CAPTURE
}
}
src/main/java/emu/grasscutter/data/excels/CodexMaterialData.java
0 → 100644
View file @
a8293102
package
emu.grasscutter.data.excels
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
@ResourceType
(
name
=
{
"MaterialCodexExcelConfigData.json"
})
public
class
CodexMaterialData
extends
GameResource
{
private
int
Id
;
private
int
materialId
;
private
int
sortOrder
;
public
int
getSortOrder
()
{
return
sortOrder
;
}
public
int
getMaterialId
()
{
return
materialId
;
}
public
int
getId
()
{
return
Id
;
}
@Override
public
void
onLoad
()
{
GameData
.
getCodexMaterialDataIdMap
().
put
(
this
.
getMaterialId
(),
this
);
}
}
src/main/java/emu/grasscutter/data/excels/CodexQuestData.java
0 → 100644
View file @
a8293102
package
emu.grasscutter.data.excels
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
@ResourceType
(
name
=
{
"QuestCodexExcelConfigData.json"
})
public
class
CodexQuestData
extends
GameResource
{
private
int
Id
;
private
int
parentQuestId
;
private
int
chapterId
;
private
int
sortOrder
;
private
boolean
isDisuse
;
public
int
getParentQuestId
()
{
return
parentQuestId
;
}
public
int
getId
()
{
return
Id
;
}
public
int
getChapterId
()
{
return
chapterId
;
}
public
int
getSortOrder
()
{
return
sortOrder
;
}
public
boolean
getIsDisuse
()
{
return
isDisuse
;
}
@Override
public
void
onLoad
()
{
if
(!
this
.
getIsDisuse
())
{
GameData
.
getCodexQuestDataIdMap
().
put
(
this
.
getParentQuestId
(),
this
);
}
}
}
src/main/java/emu/grasscutter/data/excels/CodexReliquaryData.java
0 → 100644
View file @
a8293102
package
emu.grasscutter.data.excels
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
@ResourceType
(
name
=
{
"ReliquaryCodexExcelConfigData.json"
})
public
class
CodexReliquaryData
extends
GameResource
{
private
int
Id
;
private
int
suitId
;
private
int
level
;
private
int
cupId
;
private
int
leatherId
;
private
int
capId
;
private
int
flowerId
;
private
int
sandId
;
private
int
sortOrder
;
public
int
getSortOrder
()
{
return
sortOrder
;
}
public
int
getId
()
{
return
Id
;
}
public
int
getSuitId
()
{
return
suitId
;
}
public
int
getLevel
()
{
return
level
;
}
public
int
getCupId
()
{
return
cupId
;
}
public
int
getLeatherId
()
{
return
leatherId
;
}
public
int
getCapId
()
{
return
capId
;
}
public
int
getFlowerId
()
{
return
flowerId
;
}
public
int
getSandId
()
{
return
sandId
;
}
@Override
public
void
onLoad
()
{
GameData
.
getcodexReliquaryArrayList
().
add
(
this
);
GameData
.
getcodexReliquaryIdMap
().
put
(
getSuitId
(),
this
);
}
}
Prev
1
2
3
4
5
6
7
8
9
…
21
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