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/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
;
import
java.util.Calendar
;
...
@@ -12,14 +12,14 @@ import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
...
@@ -12,14 +12,14 @@ import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
@ResourceType
(
name
=
"DailyDungeonConfigData.json"
)
@ResourceType
(
name
=
"DailyDungeonConfigData.json"
)
public
class
DailyDungeonData
extends
GameResource
{
public
class
DailyDungeonData
extends
GameResource
{
private
int
I
d
;
private
int
i
d
;
private
int
[]
M
onday
;
private
int
[]
m
onday
;
private
int
[]
T
uesday
;
private
int
[]
t
uesday
;
private
int
[]
W
ednesday
;
private
int
[]
w
ednesday
;
private
int
[]
T
hursday
;
private
int
[]
t
hursday
;
private
int
[]
F
riday
;
private
int
[]
f
riday
;
private
int
[]
S
aturday
;
private
int
[]
s
aturday
;
private
int
[]
S
unday
;
private
int
[]
s
unday
;
private
static
final
int
[]
empty
=
new
int
[
0
];
private
static
final
int
[]
empty
=
new
int
[
0
];
private
final
Int2ObjectMap
<
int
[]>
map
;
private
final
Int2ObjectMap
<
int
[]>
map
;
...
@@ -30,7 +30,7 @@ public class DailyDungeonData extends GameResource {
...
@@ -30,7 +30,7 @@ public class DailyDungeonData extends GameResource {
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
this
.
I
d
;
return
this
.
i
d
;
}
}
public
int
[]
getDungeonsByDay
(
int
day
)
{
public
int
[]
getDungeonsByDay
(
int
day
)
{
...
@@ -39,12 +39,12 @@ public class DailyDungeonData extends GameResource {
...
@@ -39,12 +39,12 @@ public class DailyDungeonData extends GameResource {
@Override
@Override
public
void
onLoad
()
{
public
void
onLoad
()
{
map
.
put
(
Calendar
.
MONDAY
,
M
onday
);
map
.
put
(
Calendar
.
MONDAY
,
m
onday
);
map
.
put
(
Calendar
.
TUESDAY
,
T
uesday
);
map
.
put
(
Calendar
.
TUESDAY
,
t
uesday
);
map
.
put
(
Calendar
.
WEDNESDAY
,
W
ednesday
);
map
.
put
(
Calendar
.
WEDNESDAY
,
w
ednesday
);
map
.
put
(
Calendar
.
THURSDAY
,
T
hursday
);
map
.
put
(
Calendar
.
THURSDAY
,
t
hursday
);
map
.
put
(
Calendar
.
FRIDAY
,
F
riday
);
map
.
put
(
Calendar
.
FRIDAY
,
f
riday
);
map
.
put
(
Calendar
.
SATURDAY
,
S
aturday
);
map
.
put
(
Calendar
.
SATURDAY
,
s
aturday
);
map
.
put
(
Calendar
.
SUNDAY
,
S
unday
);
map
.
put
(
Calendar
.
SUNDAY
,
s
unday
);
}
}
}
}
src/main/java/emu/grasscutter/data/
def
/DungeonData.java
→
src/main/java/emu/grasscutter/data/
excels
/DungeonData.java
View file @
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
;
...
@@ -8,25 +8,25 @@ import emu.grasscutter.game.props.SceneType;
...
@@ -8,25 +8,25 @@ import emu.grasscutter.game.props.SceneType;
@ResourceType
(
name
=
"DungeonExcelConfigData.json"
)
@ResourceType
(
name
=
"DungeonExcelConfigData.json"
)
public
class
DungeonData
extends
GameResource
{
public
class
DungeonData
extends
GameResource
{
private
int
I
d
;
private
int
i
d
;
private
int
S
ceneId
;
private
int
s
ceneId
;
private
int
S
howLevel
;
private
int
s
howLevel
;
private
int
P
assRewardPreviewID
;
private
int
p
assRewardPreviewID
;
private
String
I
nvolveType
;
// TODO enum
private
String
i
nvolveType
;
// TODO enum
private
RewardPreviewData
previewData
;
private
RewardPreviewData
previewData
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
this
.
I
d
;
return
this
.
i
d
;
}
}
public
int
getSceneId
()
{
public
int
getSceneId
()
{
return
S
ceneId
;
return
s
ceneId
;
}
}
public
int
getShowLevel
()
{
public
int
getShowLevel
()
{
return
S
howLevel
;
return
s
howLevel
;
}
}
public
RewardPreviewData
getRewardPreview
()
{
public
RewardPreviewData
getRewardPreview
()
{
...
@@ -35,8 +35,8 @@ public class DungeonData extends GameResource {
...
@@ -35,8 +35,8 @@ public class DungeonData extends GameResource {
@Override
@Override
public
void
onLoad
()
{
public
void
onLoad
()
{
if
(
this
.
P
assRewardPreviewID
>
0
)
{
if
(
this
.
p
assRewardPreviewID
>
0
)
{
this
.
previewData
=
GameData
.
getRewardPreviewDataMap
().
get
(
this
.
P
assRewardPreviewID
);
this
.
previewData
=
GameData
.
getRewardPreviewDataMap
().
get
(
this
.
p
assRewardPreviewID
);
}
}
}
}
}
}
src/main/java/emu/grasscutter/data/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
java.util.ArrayList
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.GameResource
;
...
@@ -8,41 +8,41 @@ import emu.grasscutter.data.common.FightPropData;
...
@@ -8,41 +8,41 @@ import emu.grasscutter.data.common.FightPropData;
@ResourceType
(
name
=
"EquipAffixExcelConfigData.json"
)
@ResourceType
(
name
=
"EquipAffixExcelConfigData.json"
)
public
class
EquipAffixData
extends
GameResource
{
public
class
EquipAffixData
extends
GameResource
{
private
int
A
ffixId
;
private
int
a
ffixId
;
private
int
I
d
;
private
int
i
d
;
private
int
L
evel
;
private
int
l
evel
;
private
long
N
ameTextMapHash
;
private
long
n
ameTextMapHash
;
private
String
O
penConfig
;
private
String
o
penConfig
;
private
FightPropData
[]
A
ddProps
;
private
FightPropData
[]
a
ddProps
;
private
float
[]
P
aramList
;
private
float
[]
p
aramList
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
A
ffixId
;
return
a
ffixId
;
}
}
public
int
getMainId
()
{
public
int
getMainId
()
{
return
I
d
;
return
i
d
;
}
}
public
int
getLevel
()
{
public
int
getLevel
()
{
return
L
evel
;
return
l
evel
;
}
}
public
long
getNameTextMapHash
()
{
public
long
getNameTextMapHash
()
{
return
N
ameTextMapHash
;
return
n
ameTextMapHash
;
}
}
public
String
getOpenConfig
()
{
public
String
getOpenConfig
()
{
return
O
penConfig
;
return
o
penConfig
;
}
}
public
FightPropData
[]
getAddProps
()
{
public
FightPropData
[]
getAddProps
()
{
return
A
ddProps
;
return
a
ddProps
;
}
}
public
float
[]
getParamList
()
{
public
float
[]
getParamList
()
{
return
P
aramList
;
return
p
aramList
;
}
}
@Override
@Override
...
@@ -54,6 +54,6 @@ public class EquipAffixData extends GameResource {
...
@@ -54,6 +54,6 @@ public class EquipAffixData extends GameResource {
parsed
.
add
(
prop
);
parsed
.
add
(
prop
);
}
}
}
}
this
.
A
ddProps
=
parsed
.
toArray
(
new
FightPropData
[
parsed
.
size
()]);
this
.
a
ddProps
=
parsed
.
toArray
(
new
FightPropData
[
parsed
.
size
()]);
}
}
}
}
src/main/java/emu/grasscutter/data/
def
/FetterCharacterCardData.java
→
src/main/java/emu/grasscutter/data/
excels
/FetterCharacterCardData.java
View file @
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
;
import
emu.grasscutter.data.ResourceType.LoadPriority
;
import
emu.grasscutter.data.ResourceType.LoadPriority
;
@ResourceType
(
name
=
"FetterCharacterCardExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
HIGHEST
)
@ResourceType
(
name
=
"FetterCharacterCardExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
HIGHEST
)
public
class
FetterCharacterCardData
extends
GameResource
{
public
class
FetterCharacterCardData
extends
GameResource
{
private
int
A
vatarId
;
private
int
a
vatarId
;
private
int
R
ewardId
;
private
int
r
ewardId
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
A
vatarId
;
return
a
vatarId
;
}
}
public
int
getRewardId
()
{
public
int
getRewardId
()
{
return
R
ewardId
;
return
r
ewardId
;
}
}
@Override
@Override
public
void
onLoad
()
{
public
void
onLoad
()
{
}
}
}
}
src/main/java/emu/grasscutter/data/
def
/FetterData.java
→
src/main/java/emu/grasscutter/data/
excels
/FetterData.java
View file @
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.data.common.OpenCondData
;
import
emu.grasscutter.data.common.OpenCondData
;
@ResourceType
(
name
=
{
"FetterInfoExcelConfigData.json"
,
"FettersExcelConfigData.json"
,
"FetterStoryExcelConfigData.json"
,
"PhotographExpressionExcelConfigData.json"
,
"PhotographPosenameExcelConfigData.json"
},
loadPriority
=
LoadPriority
.
HIGHEST
)
@ResourceType
(
name
=
{
"FetterInfoExcelConfigData.json"
,
"FettersExcelConfigData.json"
,
"FetterStoryExcelConfigData.json"
,
"PhotographExpressionExcelConfigData.json"
,
"PhotographPosenameExcelConfigData.json"
},
loadPriority
=
LoadPriority
.
HIGHEST
)
public
class
FetterData
extends
GameResource
{
public
class
FetterData
extends
GameResource
{
private
int
A
vatarId
;
private
int
a
vatarId
;
private
int
F
etterId
;
private
int
f
etterId
;
private
List
<
OpenCondData
>
O
penCond
;
private
List
<
OpenCondData
>
o
penCond
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
F
etterId
;
return
f
etterId
;
}
}
public
int
getAvatarId
()
{
public
int
getAvatarId
()
{
return
A
vatarId
;
return
a
vatarId
;
}
}
public
List
<
OpenCondData
>
getOpenConds
()
{
public
List
<
OpenCondData
>
getOpenConds
()
{
return
O
penCond
;
return
o
penCond
;
}
}
@Override
@Override
public
void
onLoad
()
{
public
void
onLoad
()
{
}
}
}
}
src/main/java/emu/grasscutter/data/
def
/GadgetData.java
→
src/main/java/emu/grasscutter/data/
excels
/GadgetData.java
View file @
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
;
...
@@ -6,53 +6,53 @@ import emu.grasscutter.game.props.EntityType;
...
@@ -6,53 +6,53 @@ import emu.grasscutter.game.props.EntityType;
@ResourceType
(
name
=
"GadgetExcelConfigData.json"
)
@ResourceType
(
name
=
"GadgetExcelConfigData.json"
)
public
class
GadgetData
extends
GameResource
{
public
class
GadgetData
extends
GameResource
{
private
int
I
d
;
private
int
i
d
;
private
EntityType
T
ype
;
private
EntityType
t
ype
;
private
String
J
sonName
;
private
String
j
sonName
;
private
boolean
I
sInteractive
;
private
boolean
i
sInteractive
;
private
String
[]
T
ags
;
private
String
[]
t
ags
;
private
String
I
temJsonName
;
private
String
i
temJsonName
;
private
String
I
nteeIconName
;
private
String
i
nteeIconName
;
private
long
N
ameTextMapHash
;
private
long
n
ameTextMapHash
;
private
int
C
ampID
;
private
int
c
ampID
;
private
String
LODPatternName
;
private
String
LODPatternName
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
this
.
I
d
;
return
this
.
i
d
;
}
}
public
EntityType
getType
()
{
public
EntityType
getType
()
{
return
T
ype
;
return
t
ype
;
}
}
public
String
getJsonName
()
{
public
String
getJsonName
()
{
return
J
sonName
;
return
j
sonName
;
}
}
public
boolean
isInteractive
()
{
public
boolean
isInteractive
()
{
return
I
sInteractive
;
return
i
sInteractive
;
}
}
public
String
[]
getTags
()
{
public
String
[]
getTags
()
{
return
T
ags
;
return
t
ags
;
}
}
public
String
getItemJsonName
()
{
public
String
getItemJsonName
()
{
return
I
temJsonName
;
return
i
temJsonName
;
}
}
public
String
getInteeIconName
()
{
public
String
getInteeIconName
()
{
return
I
nteeIconName
;
return
i
nteeIconName
;
}
}
public
long
getNameTextMapHash
()
{
public
long
getNameTextMapHash
()
{
return
N
ameTextMapHash
;
return
n
ameTextMapHash
;
}
}
public
int
getCampID
()
{
public
int
getCampID
()
{
return
C
ampID
;
return
c
ampID
;
}
}
public
String
getLODPatternName
()
{
return
LODPatternName
;
}
public
String
getLODPatternName
()
{
return
LODPatternName
;
}
...
...
src/main/java/emu/grasscutter/data/
def
/ItemData.java
→
src/main/java/emu/grasscutter/data/
excels
/ItemData.java
View file @
a8293102
package
emu.grasscutter.data.def
;
package
emu.grasscutter.data.excels
;
import
java.util.List
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.common.ItemUseData
;
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
;
...
@@ -9,164 +12,170 @@ 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"
})
@ResourceType
(
name
=
{
"MaterialExcelConfigData.json"
,
"WeaponExcelConfigData.json"
,
"ReliquaryExcelConfigData.json"
})
public
class
ItemData
extends
GameResource
{
public
class
ItemData
extends
GameResource
{
private
int
Id
;
private
int
id
;
private
int
StackLimit
=
1
;
private
int
stackLimit
=
1
;
private
int
MaxUseCount
;
private
int
maxUseCount
;
private
int
RankLevel
;
private
int
rankLevel
;
private
String
EffectName
;
private
String
effectName
;
private
int
[]
SatiationParams
;
private
int
[]
satiationParams
;
private
int
Rank
;
private
int
rank
;
private
int
Weight
;
private
int
weight
;
private
int
GadgetId
;
private
int
gadgetId
;
private
int
[]
DestroyReturnMaterial
;
private
int
[]
destroyReturnMaterial
;
private
int
[]
DestroyReturnMaterialCount
;
private
int
[]
destroyReturnMaterialCount
;
private
List
<
ItemUseData
>
itemUse
;
// Food
// Food
private
String
F
oodQuality
;
private
String
f
oodQuality
;
private
String
U
seTarget
;
private
String
u
seTarget
;
private
String
[]
U
seParam
;
private
String
[]
i
seParam
;
// String enums
// String enums
private
String
I
temType
;
private
String
i
temType
;
private
String
M
aterialType
;
private
String
m
aterialType
;
private
String
E
quipType
;
private
String
e
quipType
;
private
String
E
ffectType
;
private
String
e
ffectType
;
private
String
D
estroyRule
;
private
String
d
estroyRule
;
// Relic
// Relic
private
int
M
ainPropDepotId
;
private
int
m
ainPropDepotId
;
private
int
A
ppendPropDepotId
;
private
int
a
ppendPropDepotId
;
private
int
A
ppendPropNum
;
private
int
a
ppendPropNum
;
private
int
S
etId
;
private
int
s
etId
;
private
int
[]
A
ddPropLevels
;
private
int
[]
a
ddPropLevels
;
private
int
B
aseConvExp
;
private
int
b
aseConvExp
;
private
int
M
axLevel
;
private
int
m
axLevel
;
// Weapon
// Weapon
private
int
W
eaponPromoteId
;
private
int
w
eaponPromoteId
;
private
int
W
eaponBaseExp
;
private
int
w
eaponBaseExp
;
private
int
S
toryId
;
private
int
s
toryId
;
private
int
A
vatarPromoteId
;
private
int
a
vatarPromoteId
;
private
int
A
wakenMaterial
;
private
int
a
wakenMaterial
;
private
int
[]
A
wakenCosts
;
private
int
[]
a
wakenCosts
;
private
int
[]
S
killAffix
;
private
int
[]
s
killAffix
;
private
WeaponProperty
[]
W
eaponProp
;
private
WeaponProperty
[]
w
eaponProp
;
// Hash
// Hash
private
String
I
con
;
private
String
i
con
;
private
long
N
ameTextMapHash
;
private
long
n
ameTextMapHash
;
// Post load
// Post load
private
transient
emu
.
grasscutter
.
game
.
inventory
.
MaterialType
materialType
;
private
transient
emu
.
grasscutter
.
game
.
inventory
.
MaterialType
material
Enum
Type
;
private
transient
emu
.
grasscutter
.
game
.
inventory
.
ItemType
itemType
;
private
transient
emu
.
grasscutter
.
game
.
inventory
.
ItemType
item
Enum
Type
;
private
transient
emu
.
grasscutter
.
game
.
inventory
.
EquipType
equipType
;
private
transient
emu
.
grasscutter
.
game
.
inventory
.
EquipType
equip
Enum
Type
;
private
IntSet
addPropLevelSet
;
private
IntSet
addPropLevelSet
;
@Override
@Override
public
int
getId
(){
public
int
getId
(){
return
this
.
I
d
;
return
this
.
i
d
;
}
}
public
String
getMaterialTypeString
(){
public
String
getMaterialTypeString
(){
return
this
.
M
aterialType
;
return
this
.
m
aterialType
;
}
}
public
int
getStackLimit
(){
public
int
getStackLimit
(){
return
this
.
S
tackLimit
;
return
this
.
s
tackLimit
;
}
}
public
int
getMaxUseCount
(){
public
int
getMaxUseCount
(){
return
this
.
M
axUseCount
;
return
this
.
m
axUseCount
;
}
}
public
String
getUseTarget
(){
public
String
getUseTarget
(){
return
this
.
U
seTarget
;
return
this
.
u
seTarget
;
}
}
public
String
[]
getUseParam
(){
public
String
[]
getUseParam
(){
return
this
.
U
seParam
;
return
this
.
i
seParam
;
}
}
public
int
getRankLevel
(){
public
int
getRankLevel
(){
return
this
.
R
ankLevel
;
return
this
.
r
ankLevel
;
}
}
public
String
getFoodQuality
(){
public
String
getFoodQuality
(){
return
this
.
F
oodQuality
;
return
this
.
f
oodQuality
;
}
}
public
String
getEffectName
(){
public
String
getEffectName
(){
return
this
.
E
ffectName
;
return
this
.
e
ffectName
;
}
}
public
int
[]
getSatiationParams
(){
public
int
[]
getSatiationParams
(){
return
this
.
S
atiationParams
;
return
this
.
s
atiationParams
;
}
}
public
int
[]
getDestroyReturnMaterial
(){
public
int
[]
getDestroyReturnMaterial
(){
return
this
.
D
estroyReturnMaterial
;
return
this
.
d
estroyReturnMaterial
;
}
}
public
int
[]
getDestroyReturnMaterialCount
(){
public
int
[]
getDestroyReturnMaterialCount
(){
return
this
.
D
estroyReturnMaterialCount
;
return
this
.
d
estroyReturnMaterialCount
;
}
}
public
List
<
ItemUseData
>
getItemUse
()
{
return
itemUse
;
}
public
long
getNameTextMapHash
(){
public
long
getNameTextMapHash
(){
return
this
.
N
ameTextMapHash
;
return
this
.
n
ameTextMapHash
;
}
}
public
String
getIcon
(){
public
String
getIcon
(){
return
this
.
I
con
;
return
this
.
i
con
;
}
}
public
String
getItemTypeString
(){
public
String
getItemTypeString
(){
return
this
.
I
temType
;
return
this
.
i
temType
;
}
}
public
int
getRank
(){
public
int
getRank
(){
return
this
.
R
ank
;
return
this
.
r
ank
;
}
}
public
int
getGadgetId
()
{
public
int
getGadgetId
()
{
return
G
adgetId
;
return
g
adgetId
;
}
}
public
int
getBaseConvExp
()
{
public
int
getBaseConvExp
()
{
return
B
aseConvExp
;
return
b
aseConvExp
;
}
}
public
int
getMainPropDepotId
()
{
public
int
getMainPropDepotId
()
{
return
M
ainPropDepotId
;
return
m
ainPropDepotId
;
}
}
public
int
getAppendPropDepotId
()
{
public
int
getAppendPropDepotId
()
{
return
A
ppendPropDepotId
;
return
a
ppendPropDepotId
;
}
}
public
int
getAppendPropNum
()
{
public
int
getAppendPropNum
()
{
return
A
ppendPropNum
;
return
a
ppendPropNum
;
}
}
public
int
getSetId
()
{
public
int
getSetId
()
{
return
S
etId
;
return
s
etId
;
}
}
public
int
getWeaponPromoteId
()
{
public
int
getWeaponPromoteId
()
{
return
W
eaponPromoteId
;
return
w
eaponPromoteId
;
}
}
public
int
getWeaponBaseExp
()
{
public
int
getWeaponBaseExp
()
{
return
W
eaponBaseExp
;
return
w
eaponBaseExp
;
}
}
public
int
getAwakenMaterial
()
{
public
int
getAwakenMaterial
()
{
return
A
wakenMaterial
;
return
a
wakenMaterial
;
}
}
public
int
[]
getAwakenCosts
()
{
public
int
[]
getAwakenCosts
()
{
return
A
wakenCosts
;
return
a
wakenCosts
;
}
}
public
IntSet
getAddPropLevelSet
()
{
public
IntSet
getAddPropLevelSet
()
{
...
@@ -174,27 +183,27 @@ public class ItemData extends GameResource {
...
@@ -174,27 +183,27 @@ public class ItemData extends GameResource {
}
}
public
int
[]
getSkillAffix
()
{
public
int
[]
getSkillAffix
()
{
return
S
killAffix
;
return
s
killAffix
;
}
}
public
WeaponProperty
[]
getWeaponProperties
()
{
public
WeaponProperty
[]
getWeaponProperties
()
{
return
W
eaponProp
;
return
w
eaponProp
;
}
}
public
int
getMaxLevel
()
{
public
int
getMaxLevel
()
{
return
M
axLevel
;
return
m
axLevel
;
}
}
public
emu
.
grasscutter
.
game
.
inventory
.
ItemType
getItemType
()
{
public
emu
.
grasscutter
.
game
.
inventory
.
ItemType
getItemType
()
{
return
this
.
itemType
;
return
this
.
item
Enum
Type
;
}
}
public
emu
.
grasscutter
.
game
.
inventory
.
MaterialType
getMaterialType
()
{
public
emu
.
grasscutter
.
game
.
inventory
.
MaterialType
getMaterialType
()
{
return
this
.
materialType
;
return
this
.
material
Enum
Type
;
}
}
public
emu
.
grasscutter
.
game
.
inventory
.
EquipType
getEquipType
()
{
public
emu
.
grasscutter
.
game
.
inventory
.
EquipType
getEquipType
()
{
return
this
.
equipType
;
return
this
.
equip
Enum
Type
;
}
}
public
boolean
canAddRelicProp
(
int
level
)
{
public
boolean
canAddRelicProp
(
int
level
)
{
...
@@ -202,23 +211,23 @@ public class ItemData extends GameResource {
...
@@ -202,23 +211,23 @@ public class ItemData extends GameResource {
}
}
public
boolean
isEquip
()
{
public
boolean
isEquip
()
{
return
this
.
itemType
==
emu
.
grasscutter
.
game
.
inventory
.
ItemType
.
ITEM_RELIQUARY
||
this
.
itemType
==
emu
.
grasscutter
.
game
.
inventory
.
ItemType
.
ITEM_WEAPON
;
return
this
.
item
Enum
Type
==
emu
.
grasscutter
.
game
.
inventory
.
ItemType
.
ITEM_RELIQUARY
||
this
.
item
Enum
Type
==
emu
.
grasscutter
.
game
.
inventory
.
ItemType
.
ITEM_WEAPON
;
}
}
@Override
@Override
public
void
onLoad
()
{
public
void
onLoad
()
{
this
.
itemType
=
emu
.
grasscutter
.
game
.
inventory
.
ItemType
.
getTypeByName
(
getItemTypeString
());
this
.
item
Enum
Type
=
emu
.
grasscutter
.
game
.
inventory
.
ItemType
.
getTypeByName
(
getItemTypeString
());
this
.
materialType
=
emu
.
grasscutter
.
game
.
inventory
.
MaterialType
.
getTypeByName
(
getMaterialTypeString
());
this
.
material
Enum
Type
=
emu
.
grasscutter
.
game
.
inventory
.
MaterialType
.
getTypeByName
(
getMaterialTypeString
());
if
(
this
.
itemType
==
emu
.
grasscutter
.
game
.
inventory
.
ItemType
.
ITEM_RELIQUARY
)
{
if
(
this
.
item
Enum
Type
==
emu
.
grasscutter
.
game
.
inventory
.
ItemType
.
ITEM_RELIQUARY
)
{
this
.
equipType
=
emu
.
grasscutter
.
game
.
inventory
.
EquipType
.
getTypeByName
(
this
.
E
quipType
);
this
.
equip
Enum
Type
=
emu
.
grasscutter
.
game
.
inventory
.
EquipType
.
getTypeByName
(
this
.
e
quipType
);
if
(
this
.
A
ddPropLevels
!=
null
&&
this
.
A
ddPropLevels
.
length
>
0
)
{
if
(
this
.
a
ddPropLevels
!=
null
&&
this
.
a
ddPropLevels
.
length
>
0
)
{
this
.
addPropLevelSet
=
new
IntOpenHashSet
(
this
.
A
ddPropLevels
);
this
.
addPropLevelSet
=
new
IntOpenHashSet
(
this
.
a
ddPropLevels
);
}
}
}
else
if
(
this
.
itemType
==
emu
.
grasscutter
.
game
.
inventory
.
ItemType
.
ITEM_WEAPON
)
{
}
else
if
(
this
.
item
Enum
Type
==
emu
.
grasscutter
.
game
.
inventory
.
ItemType
.
ITEM_WEAPON
)
{
this
.
equipType
=
emu
.
grasscutter
.
game
.
inventory
.
EquipType
.
EQUIP_WEAPON
;
this
.
equip
Enum
Type
=
emu
.
grasscutter
.
game
.
inventory
.
EquipType
.
EQUIP_WEAPON
;
}
else
{
}
else
{
this
.
equipType
=
emu
.
grasscutter
.
game
.
inventory
.
EquipType
.
EQUIP_NONE
;
this
.
equip
Enum
Type
=
emu
.
grasscutter
.
game
.
inventory
.
EquipType
.
EQUIP_NONE
;
}
}
if
(
this
.
getWeaponProperties
()
!=
null
)
{
if
(
this
.
getWeaponProperties
()
!=
null
)
{
...
@@ -230,20 +239,20 @@ public class ItemData extends GameResource {
...
@@ -230,20 +239,20 @@ public class ItemData extends GameResource {
public
static
class
WeaponProperty
{
public
static
class
WeaponProperty
{
private
FightProperty
fightProp
;
private
FightProperty
fightProp
;
private
String
P
ropType
;
private
String
p
ropType
;
private
float
I
nitValue
;
private
float
i
nitValue
;
private
String
T
ype
;
private
String
t
ype
;
public
String
getPropType
(){
public
String
getPropType
(){
return
this
.
P
ropType
;
return
this
.
p
ropType
;
}
}
public
float
getInitValue
(){
public
float
getInitValue
(){
return
this
.
I
nitValue
;
return
this
.
i
nitValue
;
}
}
public
String
getType
(){
public
String
getType
(){
return
this
.
T
ype
;
return
this
.
t
ype
;
}
}
public
FightProperty
getFightProp
()
{
public
FightProperty
getFightProp
()
{
...
@@ -251,7 +260,7 @@ public class ItemData extends GameResource {
...
@@ -251,7 +260,7 @@ public class ItemData extends GameResource {
}
}
public
void
onLoad
()
{
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.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -10,23 +10,23 @@ import emu.grasscutter.data.common.CurveInfo;
...
@@ -10,23 +10,23 @@ import emu.grasscutter.data.common.CurveInfo;
@ResourceType
(
name
=
"MonsterCurveExcelConfigData.json"
)
@ResourceType
(
name
=
"MonsterCurveExcelConfigData.json"
)
public
class
MonsterCurveData
extends
GameResource
{
public
class
MonsterCurveData
extends
GameResource
{
private
int
L
evel
;
private
int
l
evel
;
private
CurveInfo
[]
C
urveInfos
;
private
CurveInfo
[]
c
urveInfos
;
private
Map
<
String
,
Float
>
curveInfo
s
;
private
Map
<
String
,
Float
>
curveInfo
Map
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
L
evel
;
return
l
evel
;
}
}
public
float
getMultByProp
(
String
fightProp
)
{
public
float
getMultByProp
(
String
fightProp
)
{
return
curveInfo
s
.
getOrDefault
(
fightProp
,
1
f
);
return
curveInfo
Map
.
getOrDefault
(
fightProp
,
1
f
);
}
}
@Override
@Override
public
void
onLoad
()
{
public
void
onLoad
()
{
this
.
curveInfo
s
=
new
HashMap
<>();
this
.
curveInfo
Map
=
new
HashMap
<>();
Stream
.
of
(
this
.
C
urveInfos
).
forEach
(
info
->
this
.
curveInfo
s
.
put
(
info
.
getType
(),
info
.
getValue
()));
Stream
.
of
(
this
.
c
urveInfos
).
forEach
(
info
->
this
.
curveInfo
Map
.
put
(
info
.
getType
(),
info
.
getValue
()));
}
}
}
}
src/main/java/emu/grasscutter/data/
def
/MonsterData.java
→
src/main/java/emu/grasscutter/data/
excels
/MonsterData.java
View file @
a8293102
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
java.util.List
;
import
java.util.List
;
...
@@ -7,155 +7,157 @@ import emu.grasscutter.data.GameResource;
...
@@ -7,155 +7,157 @@ 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.PropGrowCurve
;
import
emu.grasscutter.data.common.PropGrowCurve
;
import
emu.grasscutter.game.props.MonsterType
;
@ResourceType
(
name
=
"MonsterExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
LOW
)
@ResourceType
(
name
=
"MonsterExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
LOW
)
public
class
MonsterData
extends
GameResource
{
public
class
MonsterData
extends
GameResource
{
private
int
I
d
;
private
int
i
d
;
private
String
M
onsterName
;
private
String
m
onsterName
;
private
String
T
ype
;
private
MonsterType
t
ype
;
private
String
S
erverScript
;
private
String
s
erverScript
;
private
List
<
Integer
>
A
ffix
;
private
List
<
Integer
>
a
ffix
;
private
String
A
i
;
private
String
a
i
;
private
int
[]
E
quips
;
private
int
[]
e
quips
;
private
List
<
HpDrops
>
H
pDrops
;
private
List
<
HpDrops
>
h
pDrops
;
private
int
K
illDropId
;
private
int
k
illDropId
;
private
String
E
xcludeWeathers
;
private
String
e
xcludeWeathers
;
private
int
F
eatureTagGroupID
;
private
int
f
eatureTagGroupID
;
private
int
M
pPropID
;
private
int
m
pPropID
;
private
String
S
kin
;
private
String
s
kin
;
private
int
D
escribeId
;
private
int
d
escribeId
;
private
int
C
ombatBGMLevel
;
private
int
c
ombatBGMLevel
;
private
int
E
ntityBudgetLevel
;
private
int
e
ntityBudgetLevel
;
private
float
H
pBase
;
private
float
h
pBase
;
private
float
A
ttackBase
;
private
float
a
ttackBase
;
private
float
D
efenseBase
;
private
float
d
efenseBase
;
private
float
F
ireSubHurt
;
private
float
f
ireSubHurt
;
private
float
E
lecSubHurt
;
private
float
e
lecSubHurt
;
private
float
G
rassSubHurt
;
private
float
g
rassSubHurt
;
private
float
W
aterSubHurt
;
private
float
w
aterSubHurt
;
private
float
W
indSubHurt
;
private
float
w
indSubHurt
;
private
float
R
ockSubHurt
;
private
float
r
ockSubHurt
;
private
float
I
ceSubHurt
;
private
float
i
ceSubHurt
;
private
float
P
hysicalSubHurt
;
private
float
p
hysicalSubHurt
;
private
List
<
PropGrowCurve
>
P
ropGrowCurves
;
private
List
<
PropGrowCurve
>
p
ropGrowCurves
;
private
long
N
ameTextMapHash
;
private
long
n
ameTextMapHash
;
private
int
C
ampID
;
private
int
c
ampID
;
// Transient
private
int
weaponId
;
private
int
weaponId
;
private
MonsterDescribeData
describeData
;
private
MonsterDescribeData
describeData
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
this
.
I
d
;
return
this
.
i
d
;
}
}
public
String
getMonsterName
()
{
public
String
getMonsterName
()
{
return
M
onsterName
;
return
m
onsterName
;
}
}
public
String
getType
()
{
public
MonsterType
getType
()
{
return
T
ype
;
return
t
ype
;
}
}
public
String
getServerScript
()
{
public
String
getServerScript
()
{
return
S
erverScript
;
return
s
erverScript
;
}
}
public
List
<
Integer
>
getAffix
()
{
public
List
<
Integer
>
getAffix
()
{
return
A
ffix
;
return
a
ffix
;
}
}
public
String
getAi
()
{
public
String
getAi
()
{
return
A
i
;
return
a
i
;
}
}
public
int
[]
getEquips
()
{
public
int
[]
getEquips
()
{
return
E
quips
;
return
e
quips
;
}
}
public
List
<
HpDrops
>
getHpDrops
()
{
public
List
<
HpDrops
>
getHpDrops
()
{
return
H
pDrops
;
return
h
pDrops
;
}
}
public
int
getKillDropId
()
{
public
int
getKillDropId
()
{
return
K
illDropId
;
return
k
illDropId
;
}
}
public
String
getExcludeWeathers
()
{
public
String
getExcludeWeathers
()
{
return
E
xcludeWeathers
;
return
e
xcludeWeathers
;
}
}
public
int
getFeatureTagGroupID
()
{
public
int
getFeatureTagGroupID
()
{
return
F
eatureTagGroupID
;
return
f
eatureTagGroupID
;
}
}
public
int
getMpPropID
()
{
public
int
getMpPropID
()
{
return
M
pPropID
;
return
m
pPropID
;
}
}
public
String
getSkin
()
{
public
String
getSkin
()
{
return
S
kin
;
return
s
kin
;
}
}
public
int
getDescribeId
()
{
public
int
getDescribeId
()
{
return
D
escribeId
;
return
d
escribeId
;
}
}
public
int
getCombatBGMLevel
()
{
public
int
getCombatBGMLevel
()
{
return
C
ombatBGMLevel
;
return
c
ombatBGMLevel
;
}
}
public
int
getEntityBudgetLevel
()
{
public
int
getEntityBudgetLevel
()
{
return
E
ntityBudgetLevel
;
return
e
ntityBudgetLevel
;
}
}
public
float
getBaseHp
()
{
public
float
getBaseHp
()
{
return
H
pBase
;
return
h
pBase
;
}
}
public
float
getBaseAttack
()
{
public
float
getBaseAttack
()
{
return
A
ttackBase
;
return
a
ttackBase
;
}
}
public
float
getBaseDefense
()
{
public
float
getBaseDefense
()
{
return
D
efenseBase
;
return
d
efenseBase
;
}
}
public
float
getElecSubHurt
()
{
public
float
getElecSubHurt
()
{
return
E
lecSubHurt
;
return
e
lecSubHurt
;
}
}
public
float
getGrassSubHurt
()
{
public
float
getGrassSubHurt
()
{
return
G
rassSubHurt
;
return
g
rassSubHurt
;
}
}
public
float
getWaterSubHurt
()
{
public
float
getWaterSubHurt
()
{
return
W
aterSubHurt
;
return
w
aterSubHurt
;
}
}
public
float
getWindSubHurt
()
{
public
float
getWindSubHurt
()
{
return
W
indSubHurt
;
return
w
indSubHurt
;
}
}
public
float
getIceSubHurt
()
{
public
float
getIceSubHurt
()
{
return
I
ceSubHurt
;
return
i
ceSubHurt
;
}
}
public
float
getPhysicalSubHurt
()
{
public
float
getPhysicalSubHurt
()
{
return
P
hysicalSubHurt
;
return
p
hysicalSubHurt
;
}
}
public
List
<
PropGrowCurve
>
getPropGrowCurves
()
{
public
List
<
PropGrowCurve
>
getPropGrowCurves
()
{
return
P
ropGrowCurves
;
return
p
ropGrowCurves
;
}
}
public
long
getNameTextMapHash
()
{
public
long
getNameTextMapHash
()
{
return
N
ameTextMapHash
;
return
n
ameTextMapHash
;
}
}
public
int
getCampID
()
{
public
int
getCampID
()
{
return
C
ampID
;
return
c
ampID
;
}
}
public
MonsterDescribeData
getDescribeData
()
{
public
MonsterDescribeData
getDescribeData
()
{
...
@@ -170,7 +172,7 @@ public class MonsterData extends GameResource {
...
@@ -170,7 +172,7 @@ public class MonsterData extends GameResource {
public
void
onLoad
()
{
public
void
onLoad
()
{
this
.
describeData
=
GameData
.
getMonsterDescribeDataMap
().
get
(
this
.
getDescribeId
());
this
.
describeData
=
GameData
.
getMonsterDescribeDataMap
().
get
(
this
.
getDescribeId
());
for
(
int
id
:
this
.
E
quips
)
{
for
(
int
id
:
this
.
e
quips
)
{
if
(
id
==
0
)
{
if
(
id
==
0
)
{
continue
;
continue
;
}
}
...
...
src/main/java/emu/grasscutter/data/
def
/MonsterDescribeData.java
→
src/main/java/emu/grasscutter/data/
excels
/MonsterDescribeData.java
View file @
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
;
...
@@ -6,31 +6,31 @@ import emu.grasscutter.data.ResourceType.LoadPriority;
...
@@ -6,31 +6,31 @@ import emu.grasscutter.data.ResourceType.LoadPriority;
@ResourceType
(
name
=
"MonsterDescribeExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
HIGH
)
@ResourceType
(
name
=
"MonsterDescribeExcelConfigData.json"
,
loadPriority
=
LoadPriority
.
HIGH
)
public
class
MonsterDescribeData
extends
GameResource
{
public
class
MonsterDescribeData
extends
GameResource
{
private
int
I
d
;
private
int
i
d
;
private
long
N
ameTextMapHash
;
private
long
n
ameTextMapHash
;
private
int
T
itleID
;
private
int
t
itleID
;
private
int
S
pecialNameLabID
;
private
int
s
pecialNameLabID
;
private
String
I
con
;
private
String
i
con
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
I
d
;
return
i
d
;
}
}
public
long
getNameTextMapHash
()
{
public
long
getNameTextMapHash
()
{
return
N
ameTextMapHash
;
return
n
ameTextMapHash
;
}
}
public
int
getTitleID
()
{
public
int
getTitleID
()
{
return
T
itleID
;
return
t
itleID
;
}
}
public
int
getSpecialNameLabID
()
{
public
int
getSpecialNameLabID
()
{
return
S
pecialNameLabID
;
return
s
pecialNameLabID
;
}
}
public
String
getIcon
()
{
public
String
getIcon
()
{
return
I
con
;
return
i
con
;
}
}
@Override
@Override
...
...
src/main/java/emu/grasscutter/data/
def
/NpcData.java
→
src/main/java/emu/grasscutter/data/
excels
/NpcData.java
View file @
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
=
"NpcExcelConfigData.json"
)
@ResourceType
(
name
=
"NpcExcelConfigData.json"
)
public
class
NpcData
extends
GameResource
{
public
class
NpcData
extends
GameResource
{
private
int
I
d
;
private
int
i
d
;
private
String
J
sonName
;
private
String
j
sonName
;
private
String
A
lias
;
private
String
a
lias
;
private
String
S
criptDataPath
;
private
String
s
criptDataPath
;
private
String
L
uaDataPath
;
private
String
l
uaDataPath
;
private
boolean
I
sInteractive
;
private
boolean
i
sInteractive
;
private
boolean
H
asMove
;
private
boolean
h
asMove
;
private
String
D
yePart
;
private
String
d
yePart
;
private
String
B
illboardIcon
;
private
String
b
illboardIcon
;
private
long
N
ameTextMapHash
;
private
long
n
ameTextMapHash
;
private
int
C
ampID
;
private
int
c
ampID
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
this
.
I
d
;
return
this
.
i
d
;
}
}
public
String
getJsonName
()
{
public
String
getJsonName
()
{
return
J
sonName
;
return
j
sonName
;
}
}
public
String
getAlias
()
{
public
String
getAlias
()
{
return
A
lias
;
return
a
lias
;
}
}
public
String
getScriptDataPath
()
{
public
String
getScriptDataPath
()
{
return
S
criptDataPath
;
return
s
criptDataPath
;
}
}
public
String
getLuaDataPath
()
{
public
String
getLuaDataPath
()
{
return
L
uaDataPath
;
return
l
uaDataPath
;
}
}
public
boolean
isIsInteractive
()
{
public
boolean
isIsInteractive
()
{
return
I
sInteractive
;
return
i
sInteractive
;
}
}
public
boolean
isHasMove
()
{
public
boolean
isHasMove
()
{
return
H
asMove
;
return
h
asMove
;
}
}
public
String
getDyePart
()
{
public
String
getDyePart
()
{
return
D
yePart
;
return
d
yePart
;
}
}
public
String
getBillboardIcon
()
{
public
String
getBillboardIcon
()
{
return
B
illboardIcon
;
return
b
illboardIcon
;
}
}
public
long
getNameTextMapHash
()
{
public
long
getNameTextMapHash
()
{
return
N
ameTextMapHash
;
return
n
ameTextMapHash
;
}
}
public
int
getCampID
()
{
public
int
getCampID
()
{
return
C
ampID
;
return
c
ampID
;
}
}
@Override
@Override
...
...
src/main/java/emu/grasscutter/data/
def
/PlayerLevelData.java
→
src/main/java/emu/grasscutter/data/
excels
/PlayerLevelData.java
View file @
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
=
"PlayerLevelExcelConfigData.json"
)
@ResourceType
(
name
=
"PlayerLevelExcelConfigData.json"
)
public
class
PlayerLevelData
extends
GameResource
{
public
class
PlayerLevelData
extends
GameResource
{
private
int
L
evel
;
private
int
l
evel
;
private
int
E
xp
;
private
int
e
xp
;
private
int
R
ewardId
;
private
int
r
ewardId
;
private
int
U
nlockWorldLevel
;
private
int
u
nlockWorldLevel
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
this
.
L
evel
;
return
this
.
l
evel
;
}
}
public
int
getLevel
()
{
public
int
getLevel
()
{
return
L
evel
;
return
l
evel
;
}
}
public
int
getExp
()
{
public
int
getExp
()
{
return
E
xp
;
return
e
xp
;
}
}
public
int
getRewardId
()
{
public
int
getRewardId
()
{
return
R
ewardId
;
return
r
ewardId
;
}
}
public
int
getUnlockWorldLevel
()
{
public
int
getUnlockWorldLevel
()
{
return
U
nlockWorldLevel
;
return
u
nlockWorldLevel
;
}
}
}
}
src/main/java/emu/grasscutter/data/
def
/ProudSkillData.java
→
src/main/java/emu/grasscutter/data/
excels
/ProudSkillData.java
View file @
a8293102
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
...
@@ -11,82 +11,82 @@ import emu.grasscutter.data.common.ItemParamData;
...
@@ -11,82 +11,82 @@ import emu.grasscutter.data.common.ItemParamData;
@ResourceType
(
name
=
"ProudSkillExcelConfigData.json"
)
@ResourceType
(
name
=
"ProudSkillExcelConfigData.json"
)
public
class
ProudSkillData
extends
GameResource
{
public
class
ProudSkillData
extends
GameResource
{
private
int
P
roudSkillId
;
private
int
p
roudSkillId
;
private
int
P
roudSkillGroupId
;
private
int
p
roudSkillGroupId
;
private
int
L
evel
;
private
int
l
evel
;
private
int
C
oinCost
;
private
int
c
oinCost
;
private
int
B
reakLevel
;
private
int
b
reakLevel
;
private
int
P
roudSkillType
;
private
int
p
roudSkillType
;
private
String
O
penConfig
;
private
String
o
penConfig
;
private
List
<
ItemParamData
>
C
ostItems
;
private
List
<
ItemParamData
>
c
ostItems
;
private
List
<
String
>
F
ilterConds
;
private
List
<
String
>
f
ilterConds
;
private
List
<
String
>
L
ifeEffectParams
;
private
List
<
String
>
l
ifeEffectParams
;
private
FightPropData
[]
A
ddProps
;
private
FightPropData
[]
a
ddProps
;
private
float
[]
P
aramList
;
private
float
[]
p
aramList
;
private
long
[]
P
aramDescList
;
private
long
[]
p
aramDescList
;
private
long
N
ameTextMapHash
;
private
long
n
ameTextMapHash
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
P
roudSkillId
;
return
p
roudSkillId
;
}
}
public
int
getProudSkillGroupId
()
{
public
int
getProudSkillGroupId
()
{
return
P
roudSkillGroupId
;
return
p
roudSkillGroupId
;
}
}
public
int
getLevel
()
{
public
int
getLevel
()
{
return
L
evel
;
return
l
evel
;
}
}
public
int
getCoinCost
()
{
public
int
getCoinCost
()
{
return
C
oinCost
;
return
c
oinCost
;
}
}
public
int
getBreakLevel
()
{
public
int
getBreakLevel
()
{
return
B
reakLevel
;
return
b
reakLevel
;
}
}
public
int
getProudSkillType
()
{
public
int
getProudSkillType
()
{
return
P
roudSkillType
;
return
p
roudSkillType
;
}
}
public
String
getOpenConfig
()
{
public
String
getOpenConfig
()
{
return
O
penConfig
;
return
o
penConfig
;
}
}
public
List
<
ItemParamData
>
getCostItems
()
{
public
List
<
ItemParamData
>
getCostItems
()
{
return
C
ostItems
;
return
c
ostItems
;
}
}
public
List
<
String
>
getFilterConds
()
{
public
List
<
String
>
getFilterConds
()
{
return
F
ilterConds
;
return
f
ilterConds
;
}
}
public
List
<
String
>
getLifeEffectParams
()
{
public
List
<
String
>
getLifeEffectParams
()
{
return
L
ifeEffectParams
;
return
l
ifeEffectParams
;
}
}
public
FightPropData
[]
getAddProps
()
{
public
FightPropData
[]
getAddProps
()
{
return
A
ddProps
;
return
a
ddProps
;
}
}
public
float
[]
getParamList
()
{
public
float
[]
getParamList
()
{
return
P
aramList
;
return
p
aramList
;
}
}
public
long
[]
getParamDescList
()
{
public
long
[]
getParamDescList
()
{
return
P
aramDescList
;
return
p
aramDescList
;
}
}
public
long
getNameTextMapHash
()
{
public
long
getNameTextMapHash
()
{
return
N
ameTextMapHash
;
return
n
ameTextMapHash
;
}
}
@Override
@Override
public
void
onLoad
()
{
public
void
onLoad
()
{
if
(
this
.
getOpenConfig
()
!=
null
&
this
.
getOpenConfig
().
length
()
>
0
)
{
if
(
this
.
getOpenConfig
()
!=
null
&
this
.
getOpenConfig
().
length
()
>
0
)
{
this
.
O
penConfig
=
"Avatar_"
+
this
.
getOpenConfig
();
this
.
o
penConfig
=
"Avatar_"
+
this
.
getOpenConfig
();
}
}
// Fight props
// Fight props
ArrayList
<
FightPropData
>
parsed
=
new
ArrayList
<
FightPropData
>(
getAddProps
().
length
);
ArrayList
<
FightPropData
>
parsed
=
new
ArrayList
<
FightPropData
>(
getAddProps
().
length
);
...
@@ -96,6 +96,6 @@ public class ProudSkillData extends GameResource {
...
@@ -96,6 +96,6 @@ public class ProudSkillData extends GameResource {
parsed
.
add
(
prop
);
parsed
.
add
(
prop
);
}
}
}
}
this
.
A
ddProps
=
parsed
.
toArray
(
new
FightPropData
[
parsed
.
size
()]);
this
.
a
ddProps
=
parsed
.
toArray
(
new
FightPropData
[
parsed
.
size
()]);
}
}
}
}
src/main/java/emu/grasscutter/data/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.GameResource
;
import
emu.grasscutter.data.ResourceType
;
import
emu.grasscutter.data.ResourceType
;
...
@@ -6,43 +6,41 @@ import emu.grasscutter.game.props.FightProperty;
...
@@ -6,43 +6,41 @@ import emu.grasscutter.game.props.FightProperty;
@ResourceType
(
name
=
"ReliquaryAffixExcelConfigData.json"
)
@ResourceType
(
name
=
"ReliquaryAffixExcelConfigData.json"
)
public
class
ReliquaryAffixData
extends
GameResource
{
public
class
ReliquaryAffixData
extends
GameResource
{
private
int
I
d
;
private
int
i
d
;
private
int
DepotId
;
private
int
depotId
;
private
int
GroupId
;
private
int
groupId
;
private
String
PropType
;
private
FightProperty
propType
;
private
float
PropValue
;
private
float
propValue
;
private
int
Weight
;
private
int
weight
;
private
int
UpgradeWeight
;
private
int
upgradeWeight
;
private
FightProperty
fightProp
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
I
d
;
return
i
d
;
}
}
public
int
getDepotId
()
{
public
int
getDepotId
()
{
return
D
epotId
;
return
d
epotId
;
}
}
public
int
getGroupId
()
{
public
int
getGroupId
()
{
return
G
roupId
;
return
g
roupId
;
}
}
public
float
getPropValue
()
{
public
float
getPropValue
()
{
return
P
ropValue
;
return
p
ropValue
;
}
}
public
int
getWeight
()
{
public
int
getWeight
()
{
return
W
eight
;
return
w
eight
;
}
}
public
int
getUpgradeWeight
()
{
public
int
getUpgradeWeight
()
{
return
U
pgradeWeight
;
return
u
pgradeWeight
;
}
}
public
FightProperty
getFightProp
()
{
public
FightProperty
getFightProp
()
{
return
fightProp
;
return
propType
;
}
@Override
public
void
onLoad
()
{
this
.
fightProp
=
FightProperty
.
getPropByName
(
this
.
PropType
);
}
}
}
}
src/main/java/emu/grasscutter/data/
def
/ReliquaryLevelData.java
→
src/main/java/emu/grasscutter/data/
excels
/ReliquaryLevelData.java
View file @
a8293102
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
java.util.List
;
import
java.util.List
;
...
@@ -13,10 +13,10 @@ public class ReliquaryLevelData extends GameResource {
...
@@ -13,10 +13,10 @@ public class ReliquaryLevelData extends GameResource {
private
int
id
;
private
int
id
;
private
Int2ObjectMap
<
Float
>
propMap
;
private
Int2ObjectMap
<
Float
>
propMap
;
private
int
R
ank
;
private
int
r
ank
;
private
int
L
evel
;
private
int
l
evel
;
private
int
E
xp
;
private
int
e
xp
;
private
List
<
RelicLevelProperty
>
A
ddProps
;
private
List
<
RelicLevelProperty
>
a
ddProps
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
...
@@ -24,15 +24,15 @@ public class ReliquaryLevelData extends GameResource {
...
@@ -24,15 +24,15 @@ public class ReliquaryLevelData extends GameResource {
}
}
public
int
getRank
()
{
public
int
getRank
()
{
return
R
ank
;
return
r
ank
;
}
}
public
int
getLevel
()
{
public
int
getLevel
()
{
return
L
evel
;
return
l
evel
;
}
}
public
int
getExp
()
{
public
int
getExp
()
{
return
E
xp
;
return
e
xp
;
}
}
public
float
getPropValue
(
FightProperty
prop
)
{
public
float
getPropValue
(
FightProperty
prop
)
{
...
@@ -45,23 +45,23 @@ public class ReliquaryLevelData extends GameResource {
...
@@ -45,23 +45,23 @@ public class ReliquaryLevelData extends GameResource {
@Override
@Override
public
void
onLoad
()
{
public
void
onLoad
()
{
this
.
id
=
(
R
ank
<<
8
)
+
this
.
getLevel
();
this
.
id
=
(
r
ank
<<
8
)
+
this
.
getLevel
();
this
.
propMap
=
new
Int2ObjectOpenHashMap
<>();
this
.
propMap
=
new
Int2ObjectOpenHashMap
<>();
for
(
RelicLevelProperty
p
:
A
ddProps
)
{
for
(
RelicLevelProperty
p
:
a
ddProps
)
{
this
.
propMap
.
put
(
FightProperty
.
getPropByName
(
p
.
getPropType
()).
getId
(),
(
Float
)
p
.
getValue
());
this
.
propMap
.
put
(
FightProperty
.
getPropByName
(
p
.
getPropType
()).
getId
(),
(
Float
)
p
.
getValue
());
}
}
}
}
public
class
RelicLevelProperty
{
public
class
RelicLevelProperty
{
private
String
P
ropType
;
private
String
p
ropType
;
private
float
V
alue
;
private
float
v
alue
;
public
String
getPropType
()
{
public
String
getPropType
()
{
return
P
ropType
;
return
p
ropType
;
}
}
public
float
getValue
()
{
public
float
getValue
()
{
return
V
alue
;
return
v
alue
;
}
}
}
}
}
}
src/main/java/emu/grasscutter/data/
def
/ReliquaryMainPropData.java
→
src/main/java/emu/grasscutter/data/
excels
/ReliquaryMainPropData.java
View file @
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
;
...
@@ -6,32 +6,26 @@ import emu.grasscutter.game.props.FightProperty;
...
@@ -6,32 +6,26 @@ import emu.grasscutter.game.props.FightProperty;
@ResourceType
(
name
=
"ReliquaryMainPropExcelConfigData.json"
)
@ResourceType
(
name
=
"ReliquaryMainPropExcelConfigData.json"
)
public
class
ReliquaryMainPropData
extends
GameResource
{
public
class
ReliquaryMainPropData
extends
GameResource
{
private
int
I
d
;
private
int
i
d
;
private
int
PropDepotId
;
private
int
propDepotId
;
private
String
PropType
;
private
FightProperty
propType
;
private
String
AffixName
;
private
int
weight
;
private
int
Weight
;
private
FightProperty
fightProp
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
I
d
;
return
i
d
;
}
}
public
int
getPropDepotId
()
{
public
int
getPropDepotId
()
{
return
P
ropDepotId
;
return
p
ropDepotId
;
}
}
public
int
getWeight
()
{
public
int
getWeight
()
{
return
W
eight
;
return
w
eight
;
}
}
public
FightProperty
getFightProp
()
{
public
FightProperty
getFightProp
()
{
return
fightProp
;
return
propType
;
}
@Override
public
void
onLoad
()
{
this
.
fightProp
=
FightProperty
.
getPropByName
(
this
.
PropType
);
}
}
}
}
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