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
01b190bc
Commit
01b190bc
authored
May 07, 2022
by
Magix
Committed by
GitHub
May 07, 2022
Browse files
UPGRADE TO 1.1.0 POG
Merge `development` into `stable`
parents
6b81b888
1beddf16
Changes
497
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/data/def/AvatarData.java
View file @
01b190bc
...
@@ -2,8 +2,8 @@ package emu.grasscutter.data.def;
...
@@ -2,8 +2,8 @@ package emu.grasscutter.data.def;
import
java.util.List
;
import
java.util.List
;
import
emu.grasscutter.data.G
enshin
Data
;
import
emu.grasscutter.data.G
ame
Data
;
import
emu.grasscutter.data.G
enshin
Resource
;
import
emu.grasscutter.data.G
ame
Resource
;
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.PropGrowCurve
;
import
emu.grasscutter.data.common.PropGrowCurve
;
...
@@ -15,7 +15,7 @@ import it.unimi.dsi.fastutil.ints.IntArrayList;
...
@@ -15,7 +15,7 @@ import it.unimi.dsi.fastutil.ints.IntArrayList;
import
it.unimi.dsi.fastutil.ints.IntList
;
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
G
enshin
Resource
{
public
class
AvatarData
extends
G
ame
Resource
{
private
String
name
;
private
String
name
;
private
String
IconName
;
private
String
IconName
;
...
@@ -57,6 +57,8 @@ public class AvatarData extends GenshinResource {
...
@@ -57,6 +57,8 @@ public class AvatarData extends GenshinResource {
private
IntList
abilities
;
private
IntList
abilities
;
private
List
<
Integer
>
fetters
;
private
List
<
Integer
>
fetters
;
private
int
nameCardRewardId
;
private
int
nameCardId
;
@Override
@Override
public
int
getId
(){
public
int
getId
(){
...
@@ -176,7 +178,7 @@ public class AvatarData extends GenshinResource {
...
@@ -176,7 +178,7 @@ public class AvatarData extends GenshinResource {
if
(
growCurve
==
null
)
{
if
(
growCurve
==
null
)
{
return
1
f
;
return
1
f
;
}
}
AvatarCurveData
curveData
=
G
enshin
Data
.
getAvatarCurveDataMap
().
get
(
level
);
AvatarCurveData
curveData
=
G
ame
Data
.
getAvatarCurveDataMap
().
get
(
level
);
if
(
curveData
==
null
)
{
if
(
curveData
==
null
)
{
return
1
f
;
return
1
f
;
}
}
...
@@ -199,18 +201,34 @@ public class AvatarData extends GenshinResource {
...
@@ -199,18 +201,34 @@ public class AvatarData extends GenshinResource {
return
fetters
;
return
fetters
;
}
}
public
int
getNameCardRewardId
()
{
return
nameCardRewardId
;
}
public
int
getNameCardId
()
{
return
nameCardId
;
}
@Override
@Override
public
void
onLoad
()
{
public
void
onLoad
()
{
this
.
skillDepot
=
GenshinData
.
getAvatarSkillDepotDataMap
().
get
(
this
.
SkillDepotId
);
this
.
skillDepot
=
GameData
.
getAvatarSkillDepotDataMap
().
get
(
this
.
SkillDepotId
);
// Get fetters from GameData
this
.
fetters
=
GameData
.
getFetterDataEntries
().
get
(
this
.
Id
);
if
(
GameData
.
getFetterCharacterCardDataMap
().
get
(
this
.
Id
)
!=
null
)
{
this
.
nameCardRewardId
=
GameData
.
getFetterCharacterCardDataMap
().
get
(
this
.
Id
).
getRewardId
();
}
// Get fetters from GenshinData
if
(
GameData
.
getRewardDataMap
().
get
(
this
.
nameCardRewardId
)
!=
null
)
{
this
.
fetters
=
GenshinData
.
getFetterDataEntries
().
get
(
this
.
Id
);
this
.
nameCardId
=
GameData
.
getRewardDataMap
().
get
(
this
.
nameCardRewardId
).
getRewardItemList
().
get
(
0
).
getItemId
();
}
int
size
=
G
enshin
Data
.
getAvatarCurveDataMap
().
size
();
int
size
=
G
ame
Data
.
getAvatarCurveDataMap
().
size
();
this
.
hpGrowthCurve
=
new
float
[
size
];
this
.
hpGrowthCurve
=
new
float
[
size
];
this
.
attackGrowthCurve
=
new
float
[
size
];
this
.
attackGrowthCurve
=
new
float
[
size
];
this
.
defenseGrowthCurve
=
new
float
[
size
];
this
.
defenseGrowthCurve
=
new
float
[
size
];
for
(
AvatarCurveData
curveData
:
G
enshin
Data
.
getAvatarCurveDataMap
().
values
())
{
for
(
AvatarCurveData
curveData
:
G
ame
Data
.
getAvatarCurveDataMap
().
values
())
{
int
level
=
curveData
.
getLevel
()
-
1
;
int
level
=
curveData
.
getLevel
()
-
1
;
for
(
PropGrowCurve
growCurve
:
this
.
PropGrowCurves
)
{
for
(
PropGrowCurve
growCurve
:
this
.
PropGrowCurves
)
{
FightProperty
prop
=
FightProperty
.
getPropByName
(
growCurve
.
getType
());
FightProperty
prop
=
FightProperty
.
getPropByName
(
growCurve
.
getType
());
...
@@ -242,7 +260,7 @@ public class AvatarData extends GenshinResource {
...
@@ -242,7 +260,7 @@ public class AvatarData extends GenshinResource {
if
(
split
.
length
>
0
)
{
if
(
split
.
length
>
0
)
{
this
.
name
=
split
[
split
.
length
-
1
];
this
.
name
=
split
[
split
.
length
-
1
];
AbilityEmbryoEntry
info
=
G
enshin
Data
.
getAbilityEmbryoInfo
().
get
(
this
.
name
);
AbilityEmbryoEntry
info
=
G
ame
Data
.
getAbilityEmbryoInfo
().
get
(
this
.
name
);
if
(
info
!=
null
)
{
if
(
info
!=
null
)
{
this
.
abilities
=
new
IntArrayList
(
info
.
getAbilities
().
length
);
this
.
abilities
=
new
IntArrayList
(
info
.
getAbilities
().
length
);
for
(
String
ability
:
info
.
getAbilities
())
{
for
(
String
ability
:
info
.
getAbilities
())
{
...
...
src/main/java/emu/grasscutter/data/def/AvatarFetterLevelData.java
0 → 100644
View file @
01b190bc
package
emu.grasscutter.data.def
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
@ResourceType
(
name
=
"AvatarFettersLevelExcelConfigData.json"
)
public
class
AvatarFetterLevelData
extends
GameResource
{
private
int
FetterLevel
;
private
int
NeedExp
;
@Override
public
int
getId
()
{
return
this
.
FetterLevel
;
}
public
int
getLevel
()
{
return
FetterLevel
;
}
public
int
getExp
()
{
return
NeedExp
;
}
}
src/main/java/emu/grasscutter/data/def/AvatarFlycloakData.java
View file @
01b190bc
package
emu.grasscutter.data.def
;
package
emu.grasscutter.data.def
;
import
emu.grasscutter.data.G
enshin
Resource
;
import
emu.grasscutter.data.G
ame
Resource
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType
;
@ResourceType
(
name
=
"AvatarFlycloakExcelConfigData.json"
)
@ResourceType
(
name
=
"AvatarFlycloakExcelConfigData.json"
)
public
class
AvatarFlycloakData
extends
G
enshin
Resource
{
public
class
AvatarFlycloakData
extends
G
ame
Resource
{
private
int
FlycloakId
;
private
int
FlycloakId
;
private
long
NameTextMapHash
;
private
long
NameTextMapHash
;
...
...
src/main/java/emu/grasscutter/data/def/AvatarLevelData.java
View file @
01b190bc
package
emu.grasscutter.data.def
;
package
emu.grasscutter.data.def
;
import
emu.grasscutter.data.G
enshin
Resource
;
import
emu.grasscutter.data.G
ame
Resource
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType
;
@ResourceType
(
name
=
"AvatarLevelExcelConfigData.json"
)
@ResourceType
(
name
=
"AvatarLevelExcelConfigData.json"
)
public
class
AvatarLevelData
extends
G
enshin
Resource
{
public
class
AvatarLevelData
extends
G
ame
Resource
{
private
int
Level
;
private
int
Level
;
private
int
Exp
;
private
int
Exp
;
...
...
src/main/java/emu/grasscutter/data/def/AvatarPromoteData.java
View file @
01b190bc
package
emu.grasscutter.data.def
;
package
emu.grasscutter.data.def
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
emu.grasscutter.data.G
enshin
Resource
;
import
emu.grasscutter.data.G
ame
Resource
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.common.FightPropData
;
import
emu.grasscutter.data.common.FightPropData
;
import
emu.grasscutter.data.common.ItemParamData
;
import
emu.grasscutter.data.common.ItemParamData
;
@ResourceType
(
name
=
"AvatarPromoteExcelConfigData.json"
)
@ResourceType
(
name
=
"AvatarPromoteExcelConfigData.json"
)
public
class
AvatarPromoteData
extends
G
enshin
Resource
{
public
class
AvatarPromoteData
extends
G
ame
Resource
{
private
int
AvatarPromoteId
;
private
int
AvatarPromoteId
;
private
int
PromoteLevel
;
private
int
PromoteLevel
;
...
...
src/main/java/emu/grasscutter/data/def/AvatarSkillData.java
View file @
01b190bc
...
@@ -2,12 +2,12 @@ package emu.grasscutter.data.def;
...
@@ -2,12 +2,12 @@ package emu.grasscutter.data.def;
import
java.util.List
;
import
java.util.List
;
import
emu.grasscutter.data.G
enshin
Resource
;
import
emu.grasscutter.data.G
ame
Resource
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType.LoadPriority
;
import
emu.grasscutter.data.ResourceType.LoadPriority
;
@ResourceType
(
name
=
"AvatarSkillExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
HIGHEST
)
@ResourceType
(
name
=
"AvatarSkillExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
HIGHEST
)
public
class
AvatarSkillData
extends
G
enshin
Resource
{
public
class
AvatarSkillData
extends
G
ame
Resource
{
private
int
Id
;
private
int
Id
;
private
float
CdTime
;
private
float
CdTime
;
private
int
CostElemVal
;
private
int
CostElemVal
;
...
...
src/main/java/emu/grasscutter/data/def/AvatarSkillDepotData.java
View file @
01b190bc
...
@@ -2,8 +2,8 @@ package emu.grasscutter.data.def;
...
@@ -2,8 +2,8 @@ package emu.grasscutter.data.def;
import
java.util.List
;
import
java.util.List
;
import
emu.grasscutter.data.G
enshin
Data
;
import
emu.grasscutter.data.G
ame
Data
;
import
emu.grasscutter.data.G
enshin
Resource
;
import
emu.grasscutter.data.G
ame
Resource
;
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.custom.AbilityEmbryoEntry
;
...
@@ -13,7 +13,7 @@ import it.unimi.dsi.fastutil.ints.IntArrayList;
...
@@ -13,7 +13,7 @@ import it.unimi.dsi.fastutil.ints.IntArrayList;
import
it.unimi.dsi.fastutil.ints.IntList
;
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
G
enshin
Resource
{
public
class
AvatarSkillDepotData
extends
G
ame
Resource
{
private
int
Id
;
private
int
Id
;
private
int
EnergySkill
;
private
int
EnergySkill
;
...
@@ -94,7 +94,7 @@ public class AvatarSkillDepotData extends GenshinResource {
...
@@ -94,7 +94,7 @@ public class AvatarSkillDepotData extends GenshinResource {
@Override
@Override
public
void
onLoad
()
{
public
void
onLoad
()
{
this
.
energySkillData
=
G
enshin
Data
.
getAvatarSkillDataMap
().
get
(
this
.
EnergySkill
);
this
.
energySkillData
=
G
ame
Data
.
getAvatarSkillDataMap
().
get
(
this
.
EnergySkill
);
if
(
getEnergySkillData
()
!=
null
)
{
if
(
getEnergySkillData
()
!=
null
)
{
this
.
elementType
=
ElementType
.
getTypeByName
(
getEnergySkillData
().
getCostElemType
());
this
.
elementType
=
ElementType
.
getTypeByName
(
getEnergySkillData
().
getCostElemType
());
}
else
{
}
else
{
...
...
src/main/java/emu/grasscutter/data/def/AvatarTalentData.java
View file @
01b190bc
package
emu.grasscutter.data.def
;
package
emu.grasscutter.data.def
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
emu.grasscutter.data.G
enshin
Resource
;
import
emu.grasscutter.data.G
ame
Resource
;
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.FightPropData
;
import
emu.grasscutter.data.common.FightPropData
;
@ResourceType
(
name
=
"AvatarTalentExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
HIGHEST
)
@ResourceType
(
name
=
"AvatarTalentExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
HIGHEST
)
public
class
AvatarTalentData
extends
G
enshin
Resource
{
public
class
AvatarTalentData
extends
G
ame
Resource
{
private
int
TalentId
;
private
int
TalentId
;
private
int
PrevTalent
;
private
int
PrevTalent
;
private
long
NameTextMapHash
;
private
long
NameTextMapHash
;
...
...
src/main/java/emu/grasscutter/data/def/CombineData.java
0 → 100644
View file @
01b190bc
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/DailyDungeonData.java
0 → 100644
View file @
01b190bc
package
emu.grasscutter.data.def
;
import
java.util.Calendar
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.game.props.SceneType
;
import
it.unimi.dsi.fastutil.ints.Int2ObjectMap
;
import
it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap
;
@ResourceType
(
name
=
"DailyDungeonConfigData.json"
)
public
class
DailyDungeonData
extends
GameResource
{
private
int
Id
;
private
int
[]
Monday
;
private
int
[]
Tuesday
;
private
int
[]
Wednesday
;
private
int
[]
Thursday
;
private
int
[]
Friday
;
private
int
[]
Saturday
;
private
int
[]
Sunday
;
private
static
final
int
[]
empty
=
new
int
[
0
];
private
final
Int2ObjectMap
<
int
[]>
map
;
public
DailyDungeonData
()
{
this
.
map
=
new
Int2ObjectOpenHashMap
<>();
}
@Override
public
int
getId
()
{
return
this
.
Id
;
}
public
int
[]
getDungeonsByDay
(
int
day
)
{
return
map
.
getOrDefault
(
day
,
empty
);
}
@Override
public
void
onLoad
()
{
map
.
put
(
Calendar
.
MONDAY
,
Monday
);
map
.
put
(
Calendar
.
TUESDAY
,
Tuesday
);
map
.
put
(
Calendar
.
WEDNESDAY
,
Wednesday
);
map
.
put
(
Calendar
.
THURSDAY
,
Thursday
);
map
.
put
(
Calendar
.
FRIDAY
,
Friday
);
map
.
put
(
Calendar
.
SATURDAY
,
Saturday
);
map
.
put
(
Calendar
.
SUNDAY
,
Sunday
);
}
}
src/main/java/emu/grasscutter/data/def/DungeonData.java
0 → 100644
View file @
01b190bc
package
emu.grasscutter.data.def
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.game.props.SceneType
;
@ResourceType
(
name
=
"DungeonExcelConfigData.json"
)
public
class
DungeonData
extends
GameResource
{
private
int
Id
;
private
int
SceneId
;
private
int
ShowLevel
;
private
int
PassRewardPreviewID
;
private
String
InvolveType
;
// TODO enum
private
RewardPreviewData
previewData
;
@Override
public
int
getId
()
{
return
this
.
Id
;
}
public
int
getSceneId
()
{
return
SceneId
;
}
public
int
getShowLevel
()
{
return
ShowLevel
;
}
public
RewardPreviewData
getRewardPreview
()
{
return
previewData
;
}
@Override
public
void
onLoad
()
{
if
(
this
.
PassRewardPreviewID
>
0
)
{
this
.
previewData
=
GameData
.
getRewardPreviewDataMap
().
get
(
this
.
PassRewardPreviewID
);
}
}
}
src/main/java/emu/grasscutter/data/def/EquipAffixData.java
View file @
01b190bc
package
emu.grasscutter.data.def
;
package
emu.grasscutter.data.def
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
emu.grasscutter.data.G
enshin
Resource
;
import
emu.grasscutter.data.G
ame
Resource
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.common.FightPropData
;
import
emu.grasscutter.data.common.FightPropData
;
@ResourceType
(
name
=
"EquipAffixExcelConfigData.json"
)
@ResourceType
(
name
=
"EquipAffixExcelConfigData.json"
)
public
class
EquipAffixData
extends
G
enshin
Resource
{
public
class
EquipAffixData
extends
G
ame
Resource
{
private
int
AffixId
;
private
int
AffixId
;
private
int
Id
;
private
int
Id
;
...
...
src/main/java/emu/grasscutter/data/def/FetterCharacterCardData.java
0 → 100644
View file @
01b190bc
package
emu.grasscutter.data.def
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType.LoadPriority
;
@ResourceType
(
name
=
"FetterCharacterCardExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
HIGHEST
)
public
class
FetterCharacterCardData
extends
GameResource
{
private
int
AvatarId
;
private
int
RewardId
;
@Override
public
int
getId
()
{
return
AvatarId
;
}
public
int
getRewardId
()
{
return
RewardId
;
}
@Override
public
void
onLoad
()
{
}
}
src/main/java/emu/grasscutter/data/def/FetterData.java
View file @
01b190bc
package
emu.grasscutter.data.def
;
package
emu.grasscutter.data.def
;
import
emu.grasscutter.data.GenshinResource
;
import
java.util.List
;
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
;
@ResourceType
(
name
=
{
"FetterInfoExcelConfigData.json"
,
"FettersExcelConfigData.json"
,
"FetterStoryExcelConfigData.json"
},
loadPriority
=
LoadPriority
.
HIGHEST
)
@ResourceType
(
name
=
{
"FetterInfoExcelConfigData.json"
,
"FettersExcelConfigData.json"
,
"FetterStoryExcelConfigData.json"
,
"PhotographExpressionExcelConfigData.json"
,
"PhotographPosenameExcelConfigData.json"
},
loadPriority
=
LoadPriority
.
HIGHEST
)
public
class
FetterData
extends
G
enshin
Resource
{
public
class
FetterData
extends
G
ame
Resource
{
private
int
AvatarId
;
private
int
AvatarId
;
private
int
FetterId
;
private
int
FetterId
;
private
List
<
OpenCondData
>
OpenCond
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
...
@@ -18,6 +22,10 @@ public class FetterData extends GenshinResource {
...
@@ -18,6 +22,10 @@ public class FetterData extends GenshinResource {
return
AvatarId
;
return
AvatarId
;
}
}
public
List
<
OpenCondData
>
getOpenConds
()
{
return
OpenCond
;
}
@Override
@Override
public
void
onLoad
()
{
public
void
onLoad
()
{
}
}
...
...
src/main/java/emu/grasscutter/data/def/GadgetData.java
View file @
01b190bc
package
emu.grasscutter.data.def
;
package
emu.grasscutter.data.def
;
import
emu.grasscutter.data.G
enshin
Resource
;
import
emu.grasscutter.data.G
ame
Resource
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.game.props.EntityType
;
@ResourceType
(
name
=
"GadgetExcelConfigData.json"
)
@ResourceType
(
name
=
"GadgetExcelConfigData.json"
)
public
class
GadgetData
extends
G
enshin
Resource
{
public
class
GadgetData
extends
G
ame
Resource
{
private
int
Id
;
private
int
Id
;
private
String
Type
;
private
EntityType
Type
;
private
String
JsonName
;
private
String
JsonName
;
private
boolean
IsInteractive
;
private
boolean
IsInteractive
;
private
String
[]
Tags
;
private
String
[]
Tags
;
private
String
ItemJsonName
;
private
String
ItemJsonName
;
private
String
InteeIconName
;
private
String
InteeIconName
;
private
long
NameTextMapHash
;
private
long
NameTextMapHash
;
private
int
CampID
;
private
int
CampID
;
private
String
LODPatternName
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
this
.
Id
;
return
this
.
Id
;
}
}
public
String
getType
()
{
public
EntityType
getType
()
{
return
Type
;
return
Type
;
}
}
...
@@ -53,6 +55,8 @@ public class GadgetData extends GenshinResource {
...
@@ -53,6 +55,8 @@ public class GadgetData extends GenshinResource {
return
CampID
;
return
CampID
;
}
}
public
String
getLODPatternName
()
{
return
LODPatternName
;
}
@Override
@Override
public
void
onLoad
()
{
public
void
onLoad
()
{
...
...
src/main/java/emu/grasscutter/data/def/ItemData.java
View file @
01b190bc
package
emu.grasscutter.data.def
;
package
emu.grasscutter.data.def
;
import
emu.grasscutter.data.G
enshin
Resource
;
import
emu.grasscutter.data.G
ame
Resource
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.game.props.FightProperty
;
import
emu.grasscutter.game.props.FightProperty
;
import
it.unimi.dsi.fastutil.ints.IntOpenHashSet
;
import
it.unimi.dsi.fastutil.ints.IntOpenHashSet
;
import
it.unimi.dsi.fastutil.ints.IntSet
;
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
G
enshin
Resource
{
public
class
ItemData
extends
G
ame
Resource
{
private
int
Id
;
private
int
Id
;
private
int
StackLimit
=
1
;
private
int
StackLimit
=
1
;
...
...
src/main/java/emu/grasscutter/data/def/MonsterCurveData.java
View file @
01b190bc
...
@@ -4,12 +4,12 @@ import java.util.HashMap;
...
@@ -4,12 +4,12 @@ import java.util.HashMap;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.stream.Stream
;
import
java.util.stream.Stream
;
import
emu.grasscutter.data.G
enshin
Resource
;
import
emu.grasscutter.data.G
ame
Resource
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.common.CurveInfo
;
import
emu.grasscutter.data.common.CurveInfo
;
@ResourceType
(
name
=
"MonsterCurveExcelConfigData.json"
)
@ResourceType
(
name
=
"MonsterCurveExcelConfigData.json"
)
public
class
MonsterCurveData
extends
G
enshin
Resource
{
public
class
MonsterCurveData
extends
G
ame
Resource
{
private
int
Level
;
private
int
Level
;
private
CurveInfo
[]
CurveInfos
;
private
CurveInfo
[]
CurveInfos
;
...
...
src/main/java/emu/grasscutter/data/def/MonsterData.java
View file @
01b190bc
...
@@ -2,14 +2,14 @@ package emu.grasscutter.data.def;
...
@@ -2,14 +2,14 @@ package emu.grasscutter.data.def;
import
java.util.List
;
import
java.util.List
;
import
emu.grasscutter.data.G
enshin
Data
;
import
emu.grasscutter.data.G
ame
Data
;
import
emu.grasscutter.data.G
enshin
Resource
;
import
emu.grasscutter.data.G
ame
Resource
;
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.PropGrowCurve
;
import
emu.grasscutter.data.common.PropGrowCurve
;
@ResourceType
(
name
=
"MonsterExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
LOW
)
@ResourceType
(
name
=
"MonsterExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
LOW
)
public
class
MonsterData
extends
G
enshin
Resource
{
public
class
MonsterData
extends
G
ame
Resource
{
private
int
Id
;
private
int
Id
;
private
String
MonsterName
;
private
String
MonsterName
;
...
@@ -168,13 +168,13 @@ public class MonsterData extends GenshinResource {
...
@@ -168,13 +168,13 @@ public class MonsterData extends GenshinResource {
@Override
@Override
public
void
onLoad
()
{
public
void
onLoad
()
{
this
.
describeData
=
G
enshin
Data
.
getMonsterDescribeDataMap
().
get
(
this
.
getDescribeId
());
this
.
describeData
=
G
ame
Data
.
getMonsterDescribeDataMap
().
get
(
this
.
getDescribeId
());
for
(
int
id
:
this
.
Equips
)
{
for
(
int
id
:
this
.
Equips
)
{
if
(
id
==
0
)
{
if
(
id
==
0
)
{
continue
;
continue
;
}
}
GadgetData
gadget
=
G
enshin
Data
.
getGadgetDataMap
().
get
(
id
);
GadgetData
gadget
=
G
ame
Data
.
getGadgetDataMap
().
get
(
id
);
if
(
gadget
==
null
)
{
if
(
gadget
==
null
)
{
continue
;
continue
;
}
}
...
...
src/main/java/emu/grasscutter/data/def/MonsterDescribeData.java
View file @
01b190bc
package
emu.grasscutter.data.def
;
package
emu.grasscutter.data.def
;
import
emu.grasscutter.data.G
enshin
Resource
;
import
emu.grasscutter.data.G
ame
Resource
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType.LoadPriority
;
import
emu.grasscutter.data.ResourceType.LoadPriority
;
@ResourceType
(
name
=
"MonsterDescribeExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
HIGH
)
@ResourceType
(
name
=
"MonsterDescribeExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
HIGH
)
public
class
MonsterDescribeData
extends
G
enshin
Resource
{
public
class
MonsterDescribeData
extends
G
ame
Resource
{
private
int
Id
;
private
int
Id
;
private
long
NameTextMapHash
;
private
long
NameTextMapHash
;
private
int
TitleID
;
private
int
TitleID
;
...
...
src/main/java/emu/grasscutter/data/def/NpcData.java
View file @
01b190bc
package
emu.grasscutter.data.def
;
package
emu.grasscutter.data.def
;
import
emu.grasscutter.data.G
enshin
Resource
;
import
emu.grasscutter.data.G
ame
Resource
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType
;
@ResourceType
(
name
=
"NpcExcelConfigData.json"
)
@ResourceType
(
name
=
"NpcExcelConfigData.json"
)
public
class
NpcData
extends
G
enshin
Resource
{
public
class
NpcData
extends
G
ame
Resource
{
private
int
Id
;
private
int
Id
;
private
String
JsonName
;
private
String
JsonName
;
...
...
Prev
1
2
3
4
5
6
7
8
9
…
25
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