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
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/data/excels/CodexWeaponData.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
=
{
"WeaponCodexExcelConfigData.json"
})
public
class
CodexWeaponData
extends
GameResource
{
private
int
Id
;
private
int
weaponId
;
private
int
sortOrder
;
public
int
getSortOrder
()
{
return
sortOrder
;
}
public
int
getWeaponId
()
{
return
weaponId
;
}
public
int
getId
()
{
return
Id
;
}
@Override
public
void
onLoad
()
{
GameData
.
getCodexWeaponDataIdMap
().
put
(
this
.
getWeaponId
(),
this
);
}
}
src/main/java/emu/grasscutter/data/excels/CombineData.java
0 → 100644
View file @
a8293102
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
;
}
}
src/main/java/emu/grasscutter/data/
def
/DailyDungeonData.java
→
src/main/java/emu/grasscutter/data/
excels
/DailyDungeonData.java
View file @
a8293102
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
java.util.Calendar
;
...
...
@@ -12,14 +12,14 @@ import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
@ResourceType
(
name
=
"DailyDungeonConfigData.json"
)
public
class
DailyDungeonData
extends
GameResource
{
private
int
I
d
;
private
int
[]
M
onday
;
private
int
[]
T
uesday
;
private
int
[]
W
ednesday
;
private
int
[]
T
hursday
;
private
int
[]
F
riday
;
private
int
[]
S
aturday
;
private
int
[]
S
unday
;
private
int
i
d
;
private
int
[]
m
onday
;
private
int
[]
t
uesday
;
private
int
[]
w
ednesday
;
private
int
[]
t
hursday
;
private
int
[]
f
riday
;
private
int
[]
s
aturday
;
private
int
[]
s
unday
;
private
static
final
int
[]
empty
=
new
int
[
0
];
private
final
Int2ObjectMap
<
int
[]>
map
;
...
...
@@ -30,7 +30,7 @@ public class DailyDungeonData extends GameResource {
@Override
public
int
getId
()
{
return
this
.
I
d
;
return
this
.
i
d
;
}
public
int
[]
getDungeonsByDay
(
int
day
)
{
...
...
@@ -39,12 +39,12 @@ public class DailyDungeonData extends GameResource {
@Override
public
void
onLoad
()
{
map
.
put
(
Calendar
.
MONDAY
,
M
onday
);
map
.
put
(
Calendar
.
TUESDAY
,
T
uesday
);
map
.
put
(
Calendar
.
WEDNESDAY
,
W
ednesday
);
map
.
put
(
Calendar
.
THURSDAY
,
T
hursday
);
map
.
put
(
Calendar
.
FRIDAY
,
F
riday
);
map
.
put
(
Calendar
.
SATURDAY
,
S
aturday
);
map
.
put
(
Calendar
.
SUNDAY
,
S
unday
);
map
.
put
(
Calendar
.
MONDAY
,
m
onday
);
map
.
put
(
Calendar
.
TUESDAY
,
t
uesday
);
map
.
put
(
Calendar
.
WEDNESDAY
,
w
ednesday
);
map
.
put
(
Calendar
.
THURSDAY
,
t
hursday
);
map
.
put
(
Calendar
.
FRIDAY
,
f
riday
);
map
.
put
(
Calendar
.
SATURDAY
,
s
aturday
);
map
.
put
(
Calendar
.
SUNDAY
,
s
unday
);
}
}
src/main/java/emu/grasscutter/data/
def
/DungeonData.java
→
src/main/java/emu/grasscutter/data/
excels
/DungeonData.java
View file @
a8293102
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.GameResource
;
...
...
@@ -8,25 +8,25 @@ import emu.grasscutter.game.props.SceneType;
@ResourceType
(
name
=
"DungeonExcelConfigData.json"
)
public
class
DungeonData
extends
GameResource
{
private
int
I
d
;
private
int
S
ceneId
;
private
int
S
howLevel
;
private
int
P
assRewardPreviewID
;
private
String
I
nvolveType
;
// TODO enum
private
int
i
d
;
private
int
s
ceneId
;
private
int
s
howLevel
;
private
int
p
assRewardPreviewID
;
private
String
i
nvolveType
;
// TODO enum
private
RewardPreviewData
previewData
;
@Override
public
int
getId
()
{
return
this
.
I
d
;
return
this
.
i
d
;
}
public
int
getSceneId
()
{
return
S
ceneId
;
return
s
ceneId
;
}
public
int
getShowLevel
()
{
return
S
howLevel
;
return
s
howLevel
;
}
public
RewardPreviewData
getRewardPreview
()
{
...
...
@@ -35,8 +35,8 @@ public class DungeonData extends GameResource {
@Override
public
void
onLoad
()
{
if
(
this
.
P
assRewardPreviewID
>
0
)
{
this
.
previewData
=
GameData
.
getRewardPreviewDataMap
().
get
(
this
.
P
assRewardPreviewID
);
if
(
this
.
p
assRewardPreviewID
>
0
)
{
this
.
previewData
=
GameData
.
getRewardPreviewDataMap
().
get
(
this
.
p
assRewardPreviewID
);
}
}
}
src/main/java/emu/grasscutter/data/excels/EnvAnimalGatherConfigData.java
0 → 100644
View file @
a8293102
package
emu.grasscutter.data.excels
;
import
java.util.List
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
@ResourceType
(
name
=
"EnvAnimalGatherExcelConfigData.json"
,
loadPriority
=
ResourceType
.
LoadPriority
.
LOW
)
public
class
EnvAnimalGatherConfigData
extends
GameResource
{
private
int
animalId
;
private
String
entityType
;
private
List
<
GatherItem
>
gatherItemId
;
private
String
excludeWeathers
;
private
int
aliveTime
;
private
int
escapeTime
;
private
int
escapeRadius
;
@Override
public
int
getId
()
{
return
animalId
;
}
public
int
getAnimalId
(){
return
animalId
;
}
public
String
getEntityType
(){
return
entityType
;
}
public
GatherItem
gatherItem
(){
return
gatherItemId
.
get
(
0
);
}
public
static
class
GatherItem
{
private
int
id
;
private
int
count
;
public
int
getId
(){
return
id
;
}
public
int
getCount
(){
return
count
;
}
}
}
src/main/java/emu/grasscutter/data/
def
/EquipAffixData.java
→
src/main/java/emu/grasscutter/data/
excels
/EquipAffixData.java
View file @
a8293102
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
java.util.ArrayList
;
import
emu.grasscutter.data.GameResource
;
...
...
@@ -8,41 +8,41 @@ import emu.grasscutter.data.common.FightPropData;
@ResourceType
(
name
=
"EquipAffixExcelConfigData.json"
)
public
class
EquipAffixData
extends
GameResource
{
private
int
A
ffixId
;
private
int
I
d
;
private
int
L
evel
;
private
long
N
ameTextMapHash
;
private
String
O
penConfig
;
private
FightPropData
[]
A
ddProps
;
private
float
[]
P
aramList
;
private
int
a
ffixId
;
private
int
i
d
;
private
int
l
evel
;
private
long
n
ameTextMapHash
;
private
String
o
penConfig
;
private
FightPropData
[]
a
ddProps
;
private
float
[]
p
aramList
;
@Override
public
int
getId
()
{
return
A
ffixId
;
return
a
ffixId
;
}
public
int
getMainId
()
{
return
I
d
;
return
i
d
;
}
public
int
getLevel
()
{
return
L
evel
;
return
l
evel
;
}
public
long
getNameTextMapHash
()
{
return
N
ameTextMapHash
;
return
n
ameTextMapHash
;
}
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
...
...
@@ -54,6 +54,6 @@ public class EquipAffixData 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
/FetterCharacterCardData.java
→
src/main/java/emu/grasscutter/data/
excels
/FetterCharacterCardData.java
View file @
a8293102
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
...
...
@@ -6,16 +6,16 @@ import emu.grasscutter.data.ResourceType.LoadPriority;
@ResourceType
(
name
=
"FetterCharacterCardExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
HIGHEST
)
public
class
FetterCharacterCardData
extends
GameResource
{
private
int
A
vatarId
;
private
int
R
ewardId
;
private
int
a
vatarId
;
private
int
r
ewardId
;
@Override
public
int
getId
()
{
return
A
vatarId
;
return
a
vatarId
;
}
public
int
getRewardId
()
{
return
R
ewardId
;
return
r
ewardId
;
}
@Override
...
...
src/main/java/emu/grasscutter/data/
def
/FetterData.java
→
src/main/java/emu/grasscutter/data/
excels
/FetterData.java
View file @
a8293102
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
java.util.List
;
...
...
@@ -9,21 +9,21 @@ import emu.grasscutter.data.common.OpenCondData;
@ResourceType
(
name
=
{
"FetterInfoExcelConfigData.json"
,
"FettersExcelConfigData.json"
,
"FetterStoryExcelConfigData.json"
,
"PhotographExpressionExcelConfigData.json"
,
"PhotographPosenameExcelConfigData.json"
},
loadPriority
=
LoadPriority
.
HIGHEST
)
public
class
FetterData
extends
GameResource
{
private
int
A
vatarId
;
private
int
F
etterId
;
private
List
<
OpenCondData
>
O
penCond
;
private
int
a
vatarId
;
private
int
f
etterId
;
private
List
<
OpenCondData
>
o
penCond
;
@Override
public
int
getId
()
{
return
F
etterId
;
return
f
etterId
;
}
public
int
getAvatarId
()
{
return
A
vatarId
;
return
a
vatarId
;
}
public
List
<
OpenCondData
>
getOpenConds
()
{
return
O
penCond
;
return
o
penCond
;
}
@Override
...
...
src/main/java/emu/grasscutter/data/
def
/GadgetData.java
→
src/main/java/emu/grasscutter/data/
excels
/GadgetData.java
View file @
a8293102
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
...
...
@@ -6,53 +6,53 @@ import emu.grasscutter.game.props.EntityType;
@ResourceType
(
name
=
"GadgetExcelConfigData.json"
)
public
class
GadgetData
extends
GameResource
{
private
int
I
d
;
private
int
i
d
;
private
EntityType
T
ype
;
private
String
J
sonName
;
private
boolean
I
sInteractive
;
private
String
[]
T
ags
;
private
String
I
temJsonName
;
private
String
I
nteeIconName
;
private
long
N
ameTextMapHash
;
private
int
C
ampID
;
private
EntityType
t
ype
;
private
String
j
sonName
;
private
boolean
i
sInteractive
;
private
String
[]
t
ags
;
private
String
i
temJsonName
;
private
String
i
nteeIconName
;
private
long
n
ameTextMapHash
;
private
int
c
ampID
;
private
String
LODPatternName
;
@Override
public
int
getId
()
{
return
this
.
I
d
;
return
this
.
i
d
;
}
public
EntityType
getType
()
{
return
T
ype
;
return
t
ype
;
}
public
String
getJsonName
()
{
return
J
sonName
;
return
j
sonName
;
}
public
boolean
isInteractive
()
{
return
I
sInteractive
;
return
i
sInteractive
;
}
public
String
[]
getTags
()
{
return
T
ags
;
return
t
ags
;
}
public
String
getItemJsonName
()
{
return
I
temJsonName
;
return
i
temJsonName
;
}
public
String
getInteeIconName
()
{
return
I
nteeIconName
;
return
i
nteeIconName
;
}
public
long
getNameTextMapHash
()
{
return
N
ameTextMapHash
;
return
n
ameTextMapHash
;
}
public
int
getCampID
()
{
return
C
ampID
;
return
c
ampID
;
}
public
String
getLODPatternName
()
{
return
LODPatternName
;
}
...
...
src/main/java/emu/grasscutter/data/
def
/ItemData.java
→
src/main/java/emu/grasscutter/data/
excels
/ItemData.java
View file @
a8293102
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.common.ItemUseData
;
import
emu.grasscutter.game.props.FightProperty
;
import
it.unimi.dsi.fastutil.ints.IntOpenHashSet
;
import
it.unimi.dsi.fastutil.ints.IntSet
;
...
...
@@ -9,164 +12,170 @@ import it.unimi.dsi.fastutil.ints.IntSet;
@ResourceType
(
name
=
{
"MaterialExcelConfigData.json"
,
"WeaponExcelConfigData.json"
,
"ReliquaryExcelConfigData.json"
})
public
class
ItemData
extends
GameResource
{
private
int
Id
;
private
int
StackLimit
=
1
;
private
int
MaxUseCount
;
private
int
RankLevel
;
private
String
EffectName
;
private
int
[]
SatiationParams
;
private
int
Rank
;
private
int
Weight
;
private
int
GadgetId
;
private
int
id
;
private
int
stackLimit
=
1
;
private
int
maxUseCount
;
private
int
rankLevel
;
private
String
effectName
;
private
int
[]
satiationParams
;
private
int
rank
;
private
int
weight
;
private
int
gadgetId
;
private
int
[]
destroyReturnMaterial
;
private
int
[]
destroyReturnMaterialCount
;
private
int
[]
DestroyReturnMaterial
;
private
int
[]
DestroyReturnMaterialCount
;
private
List
<
ItemUseData
>
itemUse
;
// Food
private
String
F
oodQuality
;
private
String
U
seTarget
;
private
String
[]
U
seParam
;
private
String
f
oodQuality
;
private
String
u
seTarget
;
private
String
[]
i
seParam
;
// String enums
private
String
I
temType
;
private
String
M
aterialType
;
private
String
E
quipType
;
private
String
E
ffectType
;
private
String
D
estroyRule
;
private
String
i
temType
;
private
String
m
aterialType
;
private
String
e
quipType
;
private
String
e
ffectType
;
private
String
d
estroyRule
;
// Relic
private
int
M
ainPropDepotId
;
private
int
A
ppendPropDepotId
;
private
int
A
ppendPropNum
;
private
int
S
etId
;
private
int
[]
A
ddPropLevels
;
private
int
B
aseConvExp
;
private
int
M
axLevel
;
private
int
m
ainPropDepotId
;
private
int
a
ppendPropDepotId
;
private
int
a
ppendPropNum
;
private
int
s
etId
;
private
int
[]
a
ddPropLevels
;
private
int
b
aseConvExp
;
private
int
m
axLevel
;
// Weapon
private
int
W
eaponPromoteId
;
private
int
W
eaponBaseExp
;
private
int
S
toryId
;
private
int
A
vatarPromoteId
;
private
int
A
wakenMaterial
;
private
int
[]
A
wakenCosts
;
private
int
[]
S
killAffix
;
private
WeaponProperty
[]
W
eaponProp
;
private
int
w
eaponPromoteId
;
private
int
w
eaponBaseExp
;
private
int
s
toryId
;
private
int
a
vatarPromoteId
;
private
int
a
wakenMaterial
;
private
int
[]
a
wakenCosts
;
private
int
[]
s
killAffix
;
private
WeaponProperty
[]
w
eaponProp
;
// Hash
private
String
I
con
;
private
long
N
ameTextMapHash
;
private
String
i
con
;
private
long
n
ameTextMapHash
;
// Post load
private
transient
emu
.
grasscutter
.
game
.
inventory
.
MaterialType
materialType
;
private
transient
emu
.
grasscutter
.
game
.
inventory
.
ItemType
itemType
;
private
transient
emu
.
grasscutter
.
game
.
inventory
.
EquipType
equipType
;
private
transient
emu
.
grasscutter
.
game
.
inventory
.
MaterialType
material
Enum
Type
;
private
transient
emu
.
grasscutter
.
game
.
inventory
.
ItemType
item
Enum
Type
;
private
transient
emu
.
grasscutter
.
game
.
inventory
.
EquipType
equip
Enum
Type
;
private
IntSet
addPropLevelSet
;
@Override
public
int
getId
(){
return
this
.
I
d
;
return
this
.
i
d
;
}
public
String
getMaterialTypeString
(){
return
this
.
M
aterialType
;
return
this
.
m
aterialType
;
}
public
int
getStackLimit
(){
return
this
.
S
tackLimit
;
return
this
.
s
tackLimit
;
}
public
int
getMaxUseCount
(){
return
this
.
M
axUseCount
;
return
this
.
m
axUseCount
;
}
public
String
getUseTarget
(){
return
this
.
U
seTarget
;
return
this
.
u
seTarget
;
}
public
String
[]
getUseParam
(){
return
this
.
U
seParam
;
return
this
.
i
seParam
;
}
public
int
getRankLevel
(){
return
this
.
R
ankLevel
;
return
this
.
r
ankLevel
;
}
public
String
getFoodQuality
(){
return
this
.
F
oodQuality
;
return
this
.
f
oodQuality
;
}
public
String
getEffectName
(){
return
this
.
E
ffectName
;
return
this
.
e
ffectName
;
}
public
int
[]
getSatiationParams
(){
return
this
.
S
atiationParams
;
return
this
.
s
atiationParams
;
}
public
int
[]
getDestroyReturnMaterial
(){
return
this
.
D
estroyReturnMaterial
;
return
this
.
d
estroyReturnMaterial
;
}
public
int
[]
getDestroyReturnMaterialCount
(){
return
this
.
DestroyReturnMaterialCount
;
return
this
.
destroyReturnMaterialCount
;
}
public
List
<
ItemUseData
>
getItemUse
()
{
return
itemUse
;
}
public
long
getNameTextMapHash
(){
return
this
.
N
ameTextMapHash
;
return
this
.
n
ameTextMapHash
;
}
public
String
getIcon
(){
return
this
.
I
con
;
return
this
.
i
con
;
}
public
String
getItemTypeString
(){
return
this
.
I
temType
;
return
this
.
i
temType
;
}
public
int
getRank
(){
return
this
.
R
ank
;
return
this
.
r
ank
;
}
public
int
getGadgetId
()
{
return
G
adgetId
;
return
g
adgetId
;
}
public
int
getBaseConvExp
()
{
return
B
aseConvExp
;
return
b
aseConvExp
;
}
public
int
getMainPropDepotId
()
{
return
M
ainPropDepotId
;
return
m
ainPropDepotId
;
}
public
int
getAppendPropDepotId
()
{
return
A
ppendPropDepotId
;
return
a
ppendPropDepotId
;
}
public
int
getAppendPropNum
()
{
return
A
ppendPropNum
;
return
a
ppendPropNum
;
}
public
int
getSetId
()
{
return
S
etId
;
return
s
etId
;
}
public
int
getWeaponPromoteId
()
{
return
W
eaponPromoteId
;
return
w
eaponPromoteId
;
}
public
int
getWeaponBaseExp
()
{
return
W
eaponBaseExp
;
return
w
eaponBaseExp
;
}
public
int
getAwakenMaterial
()
{
return
A
wakenMaterial
;
return
a
wakenMaterial
;
}
public
int
[]
getAwakenCosts
()
{
return
A
wakenCosts
;
return
a
wakenCosts
;
}
public
IntSet
getAddPropLevelSet
()
{
...
...
@@ -174,27 +183,27 @@ public class ItemData extends GameResource {
}
public
int
[]
getSkillAffix
()
{
return
S
killAffix
;
return
s
killAffix
;
}
public
WeaponProperty
[]
getWeaponProperties
()
{
return
W
eaponProp
;
return
w
eaponProp
;
}
public
int
getMaxLevel
()
{
return
M
axLevel
;
return
m
axLevel
;
}
public
emu
.
grasscutter
.
game
.
inventory
.
ItemType
getItemType
()
{
return
this
.
itemType
;
return
this
.
item
Enum
Type
;
}
public
emu
.
grasscutter
.
game
.
inventory
.
MaterialType
getMaterialType
()
{
return
this
.
materialType
;
return
this
.
material
Enum
Type
;
}
public
emu
.
grasscutter
.
game
.
inventory
.
EquipType
getEquipType
()
{
return
this
.
equipType
;
return
this
.
equip
Enum
Type
;
}
public
boolean
canAddRelicProp
(
int
level
)
{
...
...
@@ -202,23 +211,23 @@ public class ItemData extends GameResource {
}
public
boolean
isEquip
()
{
return
this
.
itemType
==
emu
.
grasscutter
.
game
.
inventory
.
ItemType
.
ITEM_RELIQUARY
||
this
.
itemType
==
emu
.
grasscutter
.
game
.
inventory
.
ItemType
.
ITEM_WEAPON
;
return
this
.
item
Enum
Type
==
emu
.
grasscutter
.
game
.
inventory
.
ItemType
.
ITEM_RELIQUARY
||
this
.
item
Enum
Type
==
emu
.
grasscutter
.
game
.
inventory
.
ItemType
.
ITEM_WEAPON
;
}
@Override
public
void
onLoad
()
{
this
.
itemType
=
emu
.
grasscutter
.
game
.
inventory
.
ItemType
.
getTypeByName
(
getItemTypeString
());
this
.
materialType
=
emu
.
grasscutter
.
game
.
inventory
.
MaterialType
.
getTypeByName
(
getMaterialTypeString
());
this
.
item
Enum
Type
=
emu
.
grasscutter
.
game
.
inventory
.
ItemType
.
getTypeByName
(
getItemTypeString
());
this
.
material
Enum
Type
=
emu
.
grasscutter
.
game
.
inventory
.
MaterialType
.
getTypeByName
(
getMaterialTypeString
());
if
(
this
.
itemType
==
emu
.
grasscutter
.
game
.
inventory
.
ItemType
.
ITEM_RELIQUARY
)
{
this
.
equipType
=
emu
.
grasscutter
.
game
.
inventory
.
EquipType
.
getTypeByName
(
this
.
E
quipType
);
if
(
this
.
A
ddPropLevels
!=
null
&&
this
.
A
ddPropLevels
.
length
>
0
)
{
this
.
addPropLevelSet
=
new
IntOpenHashSet
(
this
.
A
ddPropLevels
);
if
(
this
.
item
Enum
Type
==
emu
.
grasscutter
.
game
.
inventory
.
ItemType
.
ITEM_RELIQUARY
)
{
this
.
equip
Enum
Type
=
emu
.
grasscutter
.
game
.
inventory
.
EquipType
.
getTypeByName
(
this
.
e
quipType
);
if
(
this
.
a
ddPropLevels
!=
null
&&
this
.
a
ddPropLevels
.
length
>
0
)
{
this
.
addPropLevelSet
=
new
IntOpenHashSet
(
this
.
a
ddPropLevels
);
}
}
else
if
(
this
.
itemType
==
emu
.
grasscutter
.
game
.
inventory
.
ItemType
.
ITEM_WEAPON
)
{
this
.
equipType
=
emu
.
grasscutter
.
game
.
inventory
.
EquipType
.
EQUIP_WEAPON
;
}
else
if
(
this
.
item
Enum
Type
==
emu
.
grasscutter
.
game
.
inventory
.
ItemType
.
ITEM_WEAPON
)
{
this
.
equip
Enum
Type
=
emu
.
grasscutter
.
game
.
inventory
.
EquipType
.
EQUIP_WEAPON
;
}
else
{
this
.
equipType
=
emu
.
grasscutter
.
game
.
inventory
.
EquipType
.
EQUIP_NONE
;
this
.
equip
Enum
Type
=
emu
.
grasscutter
.
game
.
inventory
.
EquipType
.
EQUIP_NONE
;
}
if
(
this
.
getWeaponProperties
()
!=
null
)
{
...
...
@@ -230,20 +239,20 @@ public class ItemData extends GameResource {
public
static
class
WeaponProperty
{
private
FightProperty
fightProp
;
private
String
P
ropType
;
private
float
I
nitValue
;
private
String
T
ype
;
private
String
p
ropType
;
private
float
i
nitValue
;
private
String
t
ype
;
public
String
getPropType
(){
return
this
.
P
ropType
;
return
this
.
p
ropType
;
}
public
float
getInitValue
(){
return
this
.
I
nitValue
;
return
this
.
i
nitValue
;
}
public
String
getType
(){
return
this
.
T
ype
;
return
this
.
t
ype
;
}
public
FightProperty
getFightProp
()
{
...
...
@@ -251,7 +260,7 @@ public class ItemData extends GameResource {
}
public
void
onLoad
()
{
this
.
fightProp
=
FightProperty
.
getPropByName
(
P
ropType
);
this
.
fightProp
=
FightProperty
.
getPropByName
(
p
ropType
);
}
}
...
...
src/main/java/emu/grasscutter/data/
def
/MonsterCurveData.java
→
src/main/java/emu/grasscutter/data/
excels
/MonsterCurveData.java
View file @
a8293102
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
java.util.HashMap
;
import
java.util.Map
;
...
...
@@ -10,23 +10,23 @@ import emu.grasscutter.data.common.CurveInfo;
@ResourceType
(
name
=
"MonsterCurveExcelConfigData.json"
)
public
class
MonsterCurveData
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
L
evel
;
return
l
evel
;
}
public
float
getMultByProp
(
String
fightProp
)
{
return
curveInfo
s
.
getOrDefault
(
fightProp
,
1
f
);
return
curveInfo
Map
.
getOrDefault
(
fightProp
,
1
f
);
}
@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
/MonsterData.java
→
src/main/java/emu/grasscutter/data/
excels
/MonsterData.java
View file @
a8293102
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
java.util.List
;
...
...
@@ -7,155 +7,157 @@ import emu.grasscutter.data.GameResource;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType.LoadPriority
;
import
emu.grasscutter.data.common.PropGrowCurve
;
import
emu.grasscutter.game.props.MonsterType
;
@ResourceType
(
name
=
"MonsterExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
LOW
)
public
class
MonsterData
extends
GameResource
{
private
int
Id
;
private
String
MonsterName
;
private
String
Type
;
private
String
ServerScript
;
private
List
<
Integer
>
Affix
;
private
String
Ai
;
private
int
[]
Equips
;
private
List
<
HpDrops
>
HpDrops
;
private
int
KillDropId
;
private
String
ExcludeWeathers
;
private
int
FeatureTagGroupID
;
private
int
MpPropID
;
private
String
Skin
;
private
int
DescribeId
;
private
int
CombatBGMLevel
;
private
int
EntityBudgetLevel
;
private
float
HpBase
;
private
float
AttackBase
;
private
float
DefenseBase
;
private
float
FireSubHurt
;
private
float
ElecSubHurt
;
private
float
GrassSubHurt
;
private
float
WaterSubHurt
;
private
float
WindSubHurt
;
private
float
RockSubHurt
;
private
float
IceSubHurt
;
private
float
PhysicalSubHurt
;
private
List
<
PropGrowCurve
>
PropGrowCurves
;
private
long
NameTextMapHash
;
private
int
CampID
;
private
int
id
;
private
String
monsterName
;
private
MonsterType
type
;
private
String
serverScript
;
private
List
<
Integer
>
affix
;
private
String
ai
;
private
int
[]
equips
;
private
List
<
HpDrops
>
hpDrops
;
private
int
killDropId
;
private
String
excludeWeathers
;
private
int
featureTagGroupID
;
private
int
mpPropID
;
private
String
skin
;
private
int
describeId
;
private
int
combatBGMLevel
;
private
int
entityBudgetLevel
;
private
float
hpBase
;
private
float
attackBase
;
private
float
defenseBase
;
private
float
fireSubHurt
;
private
float
elecSubHurt
;
private
float
grassSubHurt
;
private
float
waterSubHurt
;
private
float
windSubHurt
;
private
float
rockSubHurt
;
private
float
iceSubHurt
;
private
float
physicalSubHurt
;
private
List
<
PropGrowCurve
>
propGrowCurves
;
private
long
nameTextMapHash
;
private
int
campID
;
// Transient
private
int
weaponId
;
private
MonsterDescribeData
describeData
;
@Override
public
int
getId
()
{
return
this
.
I
d
;
return
this
.
i
d
;
}
public
String
getMonsterName
()
{
return
M
onsterName
;
return
m
onsterName
;
}
public
String
getType
()
{
return
T
ype
;
public
MonsterType
getType
()
{
return
t
ype
;
}
public
String
getServerScript
()
{
return
S
erverScript
;
return
s
erverScript
;
}
public
List
<
Integer
>
getAffix
()
{
return
A
ffix
;
return
a
ffix
;
}
public
String
getAi
()
{
return
A
i
;
return
a
i
;
}
public
int
[]
getEquips
()
{
return
E
quips
;
return
e
quips
;
}
public
List
<
HpDrops
>
getHpDrops
()
{
return
H
pDrops
;
return
h
pDrops
;
}
public
int
getKillDropId
()
{
return
K
illDropId
;
return
k
illDropId
;
}
public
String
getExcludeWeathers
()
{
return
E
xcludeWeathers
;
return
e
xcludeWeathers
;
}
public
int
getFeatureTagGroupID
()
{
return
F
eatureTagGroupID
;
return
f
eatureTagGroupID
;
}
public
int
getMpPropID
()
{
return
M
pPropID
;
return
m
pPropID
;
}
public
String
getSkin
()
{
return
S
kin
;
return
s
kin
;
}
public
int
getDescribeId
()
{
return
D
escribeId
;
return
d
escribeId
;
}
public
int
getCombatBGMLevel
()
{
return
C
ombatBGMLevel
;
return
c
ombatBGMLevel
;
}
public
int
getEntityBudgetLevel
()
{
return
E
ntityBudgetLevel
;
return
e
ntityBudgetLevel
;
}
public
float
getBaseHp
()
{
return
H
pBase
;
return
h
pBase
;
}
public
float
getBaseAttack
()
{
return
A
ttackBase
;
return
a
ttackBase
;
}
public
float
getBaseDefense
()
{
return
D
efenseBase
;
return
d
efenseBase
;
}
public
float
getElecSubHurt
()
{
return
E
lecSubHurt
;
return
e
lecSubHurt
;
}
public
float
getGrassSubHurt
()
{
return
G
rassSubHurt
;
return
g
rassSubHurt
;
}
public
float
getWaterSubHurt
()
{
return
W
aterSubHurt
;
return
w
aterSubHurt
;
}
public
float
getWindSubHurt
()
{
return
W
indSubHurt
;
return
w
indSubHurt
;
}
public
float
getIceSubHurt
()
{
return
I
ceSubHurt
;
return
i
ceSubHurt
;
}
public
float
getPhysicalSubHurt
()
{
return
P
hysicalSubHurt
;
return
p
hysicalSubHurt
;
}
public
List
<
PropGrowCurve
>
getPropGrowCurves
()
{
return
P
ropGrowCurves
;
return
p
ropGrowCurves
;
}
public
long
getNameTextMapHash
()
{
return
N
ameTextMapHash
;
return
n
ameTextMapHash
;
}
public
int
getCampID
()
{
return
C
ampID
;
return
c
ampID
;
}
public
MonsterDescribeData
getDescribeData
()
{
...
...
@@ -170,7 +172,7 @@ public class MonsterData extends GameResource {
public
void
onLoad
()
{
this
.
describeData
=
GameData
.
getMonsterDescribeDataMap
().
get
(
this
.
getDescribeId
());
for
(
int
id
:
this
.
E
quips
)
{
for
(
int
id
:
this
.
e
quips
)
{
if
(
id
==
0
)
{
continue
;
}
...
...
src/main/java/emu/grasscutter/data/
def
/MonsterDescribeData.java
→
src/main/java/emu/grasscutter/data/
excels
/MonsterDescribeData.java
View file @
a8293102
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
...
...
@@ -6,31 +6,31 @@ import emu.grasscutter.data.ResourceType.LoadPriority;
@ResourceType
(
name
=
"MonsterDescribeExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
HIGH
)
public
class
MonsterDescribeData
extends
GameResource
{
private
int
I
d
;
private
long
N
ameTextMapHash
;
private
int
T
itleID
;
private
int
S
pecialNameLabID
;
private
String
I
con
;
private
int
i
d
;
private
long
n
ameTextMapHash
;
private
int
t
itleID
;
private
int
s
pecialNameLabID
;
private
String
i
con
;
@Override
public
int
getId
()
{
return
I
d
;
return
i
d
;
}
public
long
getNameTextMapHash
()
{
return
N
ameTextMapHash
;
return
n
ameTextMapHash
;
}
public
int
getTitleID
()
{
return
T
itleID
;
return
t
itleID
;
}
public
int
getSpecialNameLabID
()
{
return
S
pecialNameLabID
;
return
s
pecialNameLabID
;
}
public
String
getIcon
()
{
return
I
con
;
return
i
con
;
}
@Override
...
...
src/main/java/emu/grasscutter/data/
def
/NpcData.java
→
src/main/java/emu/grasscutter/data/
excels
/NpcData.java
View file @
a8293102
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
@ResourceType
(
name
=
"NpcExcelConfigData.json"
)
public
class
NpcData
extends
GameResource
{
private
int
I
d
;
private
int
i
d
;
private
String
J
sonName
;
private
String
A
lias
;
private
String
S
criptDataPath
;
private
String
L
uaDataPath
;
private
String
j
sonName
;
private
String
a
lias
;
private
String
s
criptDataPath
;
private
String
l
uaDataPath
;
private
boolean
I
sInteractive
;
private
boolean
H
asMove
;
private
String
D
yePart
;
private
String
B
illboardIcon
;
private
boolean
i
sInteractive
;
private
boolean
h
asMove
;
private
String
d
yePart
;
private
String
b
illboardIcon
;
private
long
N
ameTextMapHash
;
private
int
C
ampID
;
private
long
n
ameTextMapHash
;
private
int
c
ampID
;
@Override
public
int
getId
()
{
return
this
.
I
d
;
return
this
.
i
d
;
}
public
String
getJsonName
()
{
return
J
sonName
;
return
j
sonName
;
}
public
String
getAlias
()
{
return
A
lias
;
return
a
lias
;
}
public
String
getScriptDataPath
()
{
return
S
criptDataPath
;
return
s
criptDataPath
;
}
public
String
getLuaDataPath
()
{
return
L
uaDataPath
;
return
l
uaDataPath
;
}
public
boolean
isIsInteractive
()
{
return
I
sInteractive
;
return
i
sInteractive
;
}
public
boolean
isHasMove
()
{
return
H
asMove
;
return
h
asMove
;
}
public
String
getDyePart
()
{
return
D
yePart
;
return
d
yePart
;
}
public
String
getBillboardIcon
()
{
return
B
illboardIcon
;
return
b
illboardIcon
;
}
public
long
getNameTextMapHash
()
{
return
N
ameTextMapHash
;
return
n
ameTextMapHash
;
}
public
int
getCampID
()
{
return
C
ampID
;
return
c
ampID
;
}
@Override
...
...
src/main/java/emu/grasscutter/data/
def
/PlayerLevelData.java
→
src/main/java/emu/grasscutter/data/
excels
/PlayerLevelData.java
View file @
a8293102
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
@ResourceType
(
name
=
"PlayerLevelExcelConfigData.json"
)
public
class
PlayerLevelData
extends
GameResource
{
private
int
L
evel
;
private
int
E
xp
;
private
int
R
ewardId
;
private
int
U
nlockWorldLevel
;
private
int
l
evel
;
private
int
e
xp
;
private
int
r
ewardId
;
private
int
u
nlockWorldLevel
;
@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
;
}
public
int
getRewardId
()
{
return
R
ewardId
;
return
r
ewardId
;
}
public
int
getUnlockWorldLevel
()
{
return
U
nlockWorldLevel
;
return
u
nlockWorldLevel
;
}
}
src/main/java/emu/grasscutter/data/
def
/ProudSkillData.java
→
src/main/java/emu/grasscutter/data/
excels
/ProudSkillData.java
View file @
a8293102
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
java.util.ArrayList
;
import
java.util.List
;
...
...
@@ -11,82 +11,82 @@ import emu.grasscutter.data.common.ItemParamData;
@ResourceType
(
name
=
"ProudSkillExcelConfigData.json"
)
public
class
ProudSkillData
extends
GameResource
{
private
int
P
roudSkillId
;
private
int
P
roudSkillGroupId
;
private
int
L
evel
;
private
int
C
oinCost
;
private
int
B
reakLevel
;
private
int
P
roudSkillType
;
private
String
O
penConfig
;
private
List
<
ItemParamData
>
C
ostItems
;
private
List
<
String
>
F
ilterConds
;
private
List
<
String
>
L
ifeEffectParams
;
private
FightPropData
[]
A
ddProps
;
private
float
[]
P
aramList
;
private
long
[]
P
aramDescList
;
private
long
N
ameTextMapHash
;
private
int
p
roudSkillId
;
private
int
p
roudSkillGroupId
;
private
int
l
evel
;
private
int
c
oinCost
;
private
int
b
reakLevel
;
private
int
p
roudSkillType
;
private
String
o
penConfig
;
private
List
<
ItemParamData
>
c
ostItems
;
private
List
<
String
>
f
ilterConds
;
private
List
<
String
>
l
ifeEffectParams
;
private
FightPropData
[]
a
ddProps
;
private
float
[]
p
aramList
;
private
long
[]
p
aramDescList
;
private
long
n
ameTextMapHash
;
@Override
public
int
getId
()
{
return
P
roudSkillId
;
return
p
roudSkillId
;
}
public
int
getProudSkillGroupId
()
{
return
P
roudSkillGroupId
;
return
p
roudSkillGroupId
;
}
public
int
getLevel
()
{
return
L
evel
;
return
l
evel
;
}
public
int
getCoinCost
()
{
return
C
oinCost
;
return
c
oinCost
;
}
public
int
getBreakLevel
()
{
return
B
reakLevel
;
return
b
reakLevel
;
}
public
int
getProudSkillType
()
{
return
P
roudSkillType
;
return
p
roudSkillType
;
}
public
String
getOpenConfig
()
{
return
O
penConfig
;
return
o
penConfig
;
}
public
List
<
ItemParamData
>
getCostItems
()
{
return
C
ostItems
;
return
c
ostItems
;
}
public
List
<
String
>
getFilterConds
()
{
return
F
ilterConds
;
return
f
ilterConds
;
}
public
List
<
String
>
getLifeEffectParams
()
{
return
L
ifeEffectParams
;
return
l
ifeEffectParams
;
}
public
FightPropData
[]
getAddProps
()
{
return
A
ddProps
;
return
a
ddProps
;
}
public
float
[]
getParamList
()
{
return
P
aramList
;
return
p
aramList
;
}
public
long
[]
getParamDescList
()
{
return
P
aramDescList
;
return
p
aramDescList
;
}
public
long
getNameTextMapHash
()
{
return
N
ameTextMapHash
;
return
n
ameTextMapHash
;
}
@Override
public
void
onLoad
()
{
if
(
this
.
getOpenConfig
()
!=
null
&
this
.
getOpenConfig
().
length
()
>
0
)
{
this
.
O
penConfig
=
"Avatar_"
+
this
.
getOpenConfig
();
this
.
o
penConfig
=
"Avatar_"
+
this
.
getOpenConfig
();
}
// Fight props
ArrayList
<
FightPropData
>
parsed
=
new
ArrayList
<
FightPropData
>(
getAddProps
().
length
);
...
...
@@ -96,6 +96,6 @@ public class ProudSkillData 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/excels/QuestData.java
0 → 100644
View file @
a8293102
package
emu.grasscutter.data.excels
;
import
java.util.Arrays
;
import
java.util.List
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.game.quest.enums.LogicType
;
import
emu.grasscutter.game.quest.enums.QuestTrigger
;
@ResourceType
(
name
=
"QuestExcelConfigData.json"
)
public
class
QuestData
extends
GameResource
{
private
int
subId
;
private
int
mainId
;
private
int
order
;
private
long
descTextMapHash
;
private
boolean
finishParent
;
private
boolean
isRewind
;
private
LogicType
acceptCondComb
;
private
QuestCondition
[]
acceptConditons
;
private
LogicType
finishCondComb
;
private
QuestCondition
[]
finishConditons
;
private
LogicType
failCondComb
;
private
QuestCondition
[]
failConditons
;
private
List
<
QuestParam
>
acceptCond
;
private
List
<
QuestParam
>
finishCond
;
private
List
<
QuestParam
>
failCond
;
private
List
<
QuestExecParam
>
beginExec
;
private
List
<
QuestExecParam
>
finishExec
;
private
List
<
QuestExecParam
>
failExec
;
public
int
getId
()
{
return
subId
;
}
public
int
getMainId
()
{
return
mainId
;
}
public
int
getOrder
()
{
return
order
;
}
public
long
getDescTextMapHash
()
{
return
descTextMapHash
;
}
public
boolean
finishParent
()
{
return
finishParent
;
}
public
boolean
isRewind
()
{
return
isRewind
;
}
public
LogicType
getAcceptCondComb
()
{
return
acceptCondComb
;
}
public
QuestCondition
[]
getAcceptCond
()
{
return
acceptConditons
;
}
public
LogicType
getFinishCondComb
()
{
return
finishCondComb
;
}
public
QuestCondition
[]
getFinishCond
()
{
return
finishConditons
;
}
public
LogicType
getFailCondComb
()
{
return
failCondComb
;
}
public
QuestCondition
[]
getFailCond
()
{
return
failConditons
;
}
public
void
onLoad
()
{
this
.
acceptConditons
=
acceptCond
.
stream
().
filter
(
p
->
p
.
_type
!=
null
).
map
(
QuestCondition:
:
new
).
toArray
(
QuestCondition
[]::
new
);
acceptCond
=
null
;
this
.
finishConditons
=
finishCond
.
stream
().
filter
(
p
->
p
.
_type
!=
null
).
map
(
QuestCondition:
:
new
).
toArray
(
QuestCondition
[]::
new
);
finishCond
=
null
;
this
.
failConditons
=
failCond
.
stream
().
filter
(
p
->
p
.
_type
!=
null
).
map
(
QuestCondition:
:
new
).
toArray
(
QuestCondition
[]::
new
);
failCond
=
null
;
}
public
class
QuestParam
{
QuestTrigger
_type
;
int
[]
_param
;
String
_count
;
}
public
class
QuestExecParam
{
QuestTrigger
_type
;
String
[]
_param
;
String
_count
;
}
public
static
class
QuestCondition
{
private
QuestTrigger
type
;
private
int
[]
param
;
private
String
count
;
public
QuestCondition
(
QuestParam
param
)
{
this
.
type
=
param
.
_type
;
this
.
param
=
param
.
_param
;
}
public
QuestTrigger
getType
()
{
return
type
;
}
public
int
[]
getParam
()
{
return
param
;
}
public
String
getCount
()
{
return
count
;
}
}
}
src/main/java/emu/grasscutter/data/
def
/ReliquaryAffixData.java
→
src/main/java/emu/grasscutter/data/
excels
/ReliquaryAffixData.java
View file @
a8293102
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
...
...
@@ -6,43 +6,41 @@ import emu.grasscutter.game.props.FightProperty;
@ResourceType
(
name
=
"ReliquaryAffixExcelConfigData.json"
)
public
class
ReliquaryAffixData
extends
GameResource
{
private
int
I
d
;
private
int
i
d
;
private
int
DepotId
;
private
int
GroupId
;
private
String
PropType
;
private
float
PropValue
;
private
int
Weight
;
private
int
UpgradeWeight
;
private
FightProperty
fightProp
;
private
int
depotId
;
private
int
groupId
;
private
FightProperty
propType
;
private
float
propValue
;
private
int
weight
;
private
int
upgradeWeight
;
@Override
public
int
getId
()
{
return
I
d
;
return
i
d
;
}
public
int
getDepotId
()
{
return
D
epotId
;
return
d
epotId
;
}
public
int
getGroupId
()
{
return
G
roupId
;
return
g
roupId
;
}
public
float
getPropValue
()
{
return
P
ropValue
;
return
p
ropValue
;
}
public
int
getWeight
()
{
return
W
eight
;
return
w
eight
;
}
public
int
getUpgradeWeight
()
{
return
U
pgradeWeight
;
return
u
pgradeWeight
;
}
public
FightProperty
getFightProp
()
{
return
fightProp
;
}
@Override
public
void
onLoad
()
{
this
.
fightProp
=
FightProperty
.
getPropByName
(
this
.
PropType
);
return
propType
;
}
}
src/main/java/emu/grasscutter/data/
def
/ReliquaryLevelData.java
→
src/main/java/emu/grasscutter/data/
excels
/ReliquaryLevelData.java
View file @
a8293102
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
java.util.List
;
...
...
@@ -13,10 +13,10 @@ public class ReliquaryLevelData extends GameResource {
private
int
id
;
private
Int2ObjectMap
<
Float
>
propMap
;
private
int
R
ank
;
private
int
L
evel
;
private
int
E
xp
;
private
List
<
RelicLevelProperty
>
A
ddProps
;
private
int
r
ank
;
private
int
l
evel
;
private
int
e
xp
;
private
List
<
RelicLevelProperty
>
a
ddProps
;
@Override
public
int
getId
()
{
...
...
@@ -24,15 +24,15 @@ public class ReliquaryLevelData extends GameResource {
}
public
int
getRank
()
{
return
R
ank
;
return
r
ank
;
}
public
int
getLevel
()
{
return
L
evel
;
return
l
evel
;
}
public
int
getExp
()
{
return
E
xp
;
return
e
xp
;
}
public
float
getPropValue
(
FightProperty
prop
)
{
...
...
@@ -45,23 +45,23 @@ public class ReliquaryLevelData extends GameResource {
@Override
public
void
onLoad
()
{
this
.
id
=
(
R
ank
<<
8
)
+
this
.
getLevel
();
this
.
id
=
(
r
ank
<<
8
)
+
this
.
getLevel
();
this
.
propMap
=
new
Int2ObjectOpenHashMap
<>();
for
(
RelicLevelProperty
p
:
A
ddProps
)
{
for
(
RelicLevelProperty
p
:
a
ddProps
)
{
this
.
propMap
.
put
(
FightProperty
.
getPropByName
(
p
.
getPropType
()).
getId
(),
(
Float
)
p
.
getValue
());
}
}
public
class
RelicLevelProperty
{
private
String
P
ropType
;
private
float
V
alue
;
private
String
p
ropType
;
private
float
v
alue
;
public
String
getPropType
()
{
return
P
ropType
;
return
p
ropType
;
}
public
float
getValue
()
{
return
V
alue
;
return
v
alue
;
}
}
}
src/main/java/emu/grasscutter/data/
def
/ReliquaryMainPropData.java
→
src/main/java/emu/grasscutter/data/
excels
/ReliquaryMainPropData.java
View file @
a8293102
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
...
...
@@ -6,32 +6,26 @@ import emu.grasscutter.game.props.FightProperty;
@ResourceType
(
name
=
"ReliquaryMainPropExcelConfigData.json"
)
public
class
ReliquaryMainPropData
extends
GameResource
{
private
int
I
d
;
private
int
i
d
;
private
int
PropDepotId
;
private
String
PropType
;
private
String
AffixName
;
private
int
Weight
;
private
FightProperty
fightProp
;
private
int
propDepotId
;
private
FightProperty
propType
;
private
int
weight
;
@Override
public
int
getId
()
{
return
I
d
;
return
i
d
;
}
public
int
getPropDepotId
()
{
return
P
ropDepotId
;
return
p
ropDepotId
;
}
public
int
getWeight
()
{
return
W
eight
;
return
w
eight
;
}
public
FightProperty
getFightProp
()
{
return
fightProp
;
}
@Override
public
void
onLoad
()
{
this
.
fightProp
=
FightProperty
.
getPropByName
(
this
.
PropType
);
return
propType
;
}
}
Prev
1
2
3
4
5
6
7
8
9
10
…
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