Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
a23b29b6
Commit
a23b29b6
authored
May 28, 2022
by
Melledy
Browse files
Rename excel classes
parent
f1398182
Changes
119
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/data/
def
/SceneData.java
→
src/main/java/emu/grasscutter/data/
excels
/SceneData.java
View file @
a23b29b6
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,22 +8,21 @@ import emu.grasscutter.game.props.SceneType;
...
@@ -8,22 +8,21 @@ import emu.grasscutter.game.props.SceneType;
@ResourceType
(
name
=
"SceneExcelConfigData.json"
)
@ResourceType
(
name
=
"SceneExcelConfigData.json"
)
public
class
SceneData
extends
GameResource
{
public
class
SceneData
extends
GameResource
{
private
int
I
d
;
private
int
i
d
;
private
SceneType
T
ype
;
private
SceneType
t
ype
;
private
String
S
criptData
;
private
String
s
criptData
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
this
.
I
d
;
return
this
.
i
d
;
}
}
public
SceneType
getSceneType
()
{
public
SceneType
getSceneType
()
{
return
T
ype
;
return
t
ype
;
}
}
public
String
getScriptData
()
{
public
String
getScriptData
()
{
return
S
criptData
;
return
s
criptData
;
}
}
@Override
@Override
...
...
src/main/java/emu/grasscutter/data/
def
/ShopGoodsData.java
→
src/main/java/emu/grasscutter/data/
excels
/ShopGoodsData.java
View file @
a23b29b6
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
;
...
@@ -9,34 +9,34 @@ import java.util.List;
...
@@ -9,34 +9,34 @@ import java.util.List;
@ResourceType
(
name
=
"ShopGoodsExcelConfigData.json"
)
@ResourceType
(
name
=
"ShopGoodsExcelConfigData.json"
)
public
class
ShopGoodsData
extends
GameResource
{
public
class
ShopGoodsData
extends
GameResource
{
private
int
G
oodsId
;
private
int
g
oodsId
;
private
int
S
hopType
;
private
int
s
hopType
;
private
int
I
temId
;
private
int
i
temId
;
private
int
I
temCount
;
private
int
i
temCount
;
private
int
C
ostScoin
;
private
int
c
ostScoin
;
private
int
C
ostHcoin
;
private
int
c
ostHcoin
;
private
int
C
ostMcoin
;
private
int
c
ostMcoin
;
private
List
<
ItemParamData
>
C
ostItems
;
private
List
<
ItemParamData
>
c
ostItems
;
private
int
M
inPlayerLevel
;
private
int
m
inPlayerLevel
;
private
int
M
axPlayerLevel
;
private
int
m
axPlayerLevel
;
private
int
B
uyLimit
;
private
int
b
uyLimit
;
private
int
S
ubTabId
;
private
int
s
ubTabId
;
private
String
R
efreshType
;
private
String
r
efreshType
;
private
transient
ShopInfo
.
ShopRefreshType
R
efreshTypeEnum
;
private
transient
ShopInfo
.
ShopRefreshType
r
efreshTypeEnum
;
private
int
R
efreshParam
;
private
int
r
efreshParam
;
@Override
@Override
public
void
onLoad
()
{
public
void
onLoad
()
{
if
(
this
.
R
efreshType
==
null
)
if
(
this
.
r
efreshType
==
null
)
this
.
R
efreshTypeEnum
=
ShopInfo
.
ShopRefreshType
.
NONE
;
this
.
r
efreshTypeEnum
=
ShopInfo
.
ShopRefreshType
.
NONE
;
else
{
else
{
this
.
R
efreshTypeEnum
=
switch
(
this
.
R
efreshType
)
{
this
.
r
efreshTypeEnum
=
switch
(
this
.
r
efreshType
)
{
case
"SHOP_REFRESH_DAILY"
->
ShopInfo
.
ShopRefreshType
.
SHOP_REFRESH_DAILY
;
case
"SHOP_REFRESH_DAILY"
->
ShopInfo
.
ShopRefreshType
.
SHOP_REFRESH_DAILY
;
case
"SHOP_REFRESH_WEEKLY"
->
ShopInfo
.
ShopRefreshType
.
SHOP_REFRESH_WEEKLY
;
case
"SHOP_REFRESH_WEEKLY"
->
ShopInfo
.
ShopRefreshType
.
SHOP_REFRESH_WEEKLY
;
case
"SHOP_REFRESH_MONTHLY"
->
ShopInfo
.
ShopRefreshType
.
SHOP_REFRESH_MONTHLY
;
case
"SHOP_REFRESH_MONTHLY"
->
ShopInfo
.
ShopRefreshType
.
SHOP_REFRESH_MONTHLY
;
...
@@ -51,58 +51,58 @@ public class ShopGoodsData extends GameResource {
...
@@ -51,58 +51,58 @@ public class ShopGoodsData extends GameResource {
}
}
public
int
getGoodsId
()
{
public
int
getGoodsId
()
{
return
G
oodsId
;
return
g
oodsId
;
}
}
public
int
getShopType
()
{
public
int
getShopType
()
{
return
S
hopType
;
return
s
hopType
;
}
}
public
int
getItemId
()
{
public
int
getItemId
()
{
return
I
temId
;
return
i
temId
;
}
}
public
int
getItemCount
()
{
public
int
getItemCount
()
{
return
I
temCount
;
return
i
temCount
;
}
}
public
int
getCostScoin
()
{
public
int
getCostScoin
()
{
return
C
ostScoin
;
return
c
ostScoin
;
}
}
public
int
getCostHcoin
()
{
public
int
getCostHcoin
()
{
return
C
ostHcoin
;
return
c
ostHcoin
;
}
}
public
int
getCostMcoin
()
{
public
int
getCostMcoin
()
{
return
C
ostMcoin
;
return
c
ostMcoin
;
}
}
public
List
<
ItemParamData
>
getCostItems
()
{
public
List
<
ItemParamData
>
getCostItems
()
{
return
C
ostItems
;
return
c
ostItems
;
}
}
public
int
getMinPlayerLevel
()
{
public
int
getMinPlayerLevel
()
{
return
M
inPlayerLevel
;
return
m
inPlayerLevel
;
}
}
public
int
getMaxPlayerLevel
()
{
public
int
getMaxPlayerLevel
()
{
return
M
axPlayerLevel
;
return
m
axPlayerLevel
;
}
}
public
int
getBuyLimit
()
{
public
int
getBuyLimit
()
{
return
B
uyLimit
;
return
b
uyLimit
;
}
}
public
int
getSubTabId
()
{
public
int
getSubTabId
()
{
return
S
ubTabId
;
return
s
ubTabId
;
}
}
public
ShopInfo
.
ShopRefreshType
getRefreshType
()
{
public
ShopInfo
.
ShopRefreshType
getRefreshType
()
{
return
R
efreshTypeEnum
;
return
r
efreshTypeEnum
;
}
}
public
int
getRefreshParam
()
{
public
int
getRefreshParam
()
{
return
R
efreshParam
;
return
r
efreshParam
;
}
}
}
}
src/main/java/emu/grasscutter/data/
def
/TowerFloorData.java
→
src/main/java/emu/grasscutter/data/
excels
/TowerFloorData.java
View file @
a23b29b6
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,16 +6,16 @@ import emu.grasscutter.data.ResourceType;
...
@@ -6,16 +6,16 @@ import emu.grasscutter.data.ResourceType;
@ResourceType
(
name
=
"TowerFloorExcelConfigData.json"
)
@ResourceType
(
name
=
"TowerFloorExcelConfigData.json"
)
public
class
TowerFloorData
extends
GameResource
{
public
class
TowerFloorData
extends
GameResource
{
private
int
F
loorId
;
private
int
f
loorId
;
private
int
F
loorIndex
;
private
int
f
loorIndex
;
private
int
L
evelId
;
private
int
l
evelId
;
private
int
O
verrideMonsterLevel
;
private
int
o
verrideMonsterLevel
;
private
int
T
eamNum
;
private
int
t
eamNum
;
private
int
F
loorLevelConfigId
;
private
int
f
loorLevelConfigId
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
this
.
F
loorId
;
return
this
.
f
loorId
;
}
}
@Override
@Override
...
@@ -24,50 +24,26 @@ public class TowerFloorData extends GameResource {
...
@@ -24,50 +24,26 @@ public class TowerFloorData extends GameResource {
}
}
public
int
getFloorId
()
{
public
int
getFloorId
()
{
return
FloorId
;
return
floorId
;
}
public
void
setFloorId
(
int
floorId
)
{
FloorId
=
floorId
;
}
}
public
int
getFloorIndex
()
{
public
int
getFloorIndex
()
{
return
FloorIndex
;
return
floorIndex
;
}
public
void
setFloorIndex
(
int
floorIndex
)
{
FloorIndex
=
floorIndex
;
}
}
public
int
getLevelId
()
{
public
int
getLevelId
()
{
return
LevelId
;
return
levelId
;
}
public
void
setLevelId
(
int
levelId
)
{
LevelId
=
levelId
;
}
}
public
int
getOverrideMonsterLevel
()
{
public
int
getOverrideMonsterLevel
()
{
return
OverrideMonsterLevel
;
return
overrideMonsterLevel
;
}
public
void
setOverrideMonsterLevel
(
int
overrideMonsterLevel
)
{
OverrideMonsterLevel
=
overrideMonsterLevel
;
}
}
public
int
getTeamNum
()
{
public
int
getTeamNum
()
{
return
TeamNum
;
return
teamNum
;
}
public
void
setTeamNum
(
int
teamNum
)
{
TeamNum
=
teamNum
;
}
}
public
int
getFloorLevelConfigId
()
{
public
int
getFloorLevelConfigId
()
{
return
FloorLevelConfigId
;
return
floorLevelConfigId
;
}
public
void
setFloorLevelConfigId
(
int
floorLevelConfigId
)
{
FloorLevelConfigId
=
floorLevelConfigId
;
}
}
}
}
src/main/java/emu/grasscutter/data/
def
/TowerLevelData.java
→
src/main/java/emu/grasscutter/data/
excels
/TowerLevelData.java
View file @
a23b29b6
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
=
"TowerLevelExcelConfigData.json"
)
@ResourceType
(
name
=
"TowerLevelExcelConfigData.json"
)
public
class
TowerLevelData
extends
GameResource
{
public
class
TowerLevelData
extends
GameResource
{
private
int
ID
;
private
int
levelId
;
private
int
LevelId
;
private
int
levelIndex
;
private
int
LevelIndex
;
private
int
dungeonId
;
private
int
DungeonId
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
this
.
ID
;
return
this
.
getLevelId
();
}
@Override
public
void
onLoad
()
{
super
.
onLoad
();
}
public
int
getID
()
{
return
ID
;
}
public
void
setID
(
int
ID
)
{
this
.
ID
=
ID
;
}
}
public
int
getLevelId
()
{
public
int
getLevelId
()
{
return
LevelId
;
return
levelId
;
}
public
void
setLevelId
(
int
levelId
)
{
LevelId
=
levelId
;
}
}
public
int
getLevelIndex
()
{
public
int
getLevelIndex
()
{
return
LevelIndex
;
return
levelIndex
;
}
public
void
setLevelIndex
(
int
levelIndex
)
{
LevelIndex
=
levelIndex
;
}
}
public
int
getDungeonId
()
{
public
int
getDungeonId
()
{
return
DungeonId
;
return
dungeonId
;
}
public
void
setDungeonId
(
int
dungeonId
)
{
DungeonId
=
dungeonId
;
}
}
}
}
src/main/java/emu/grasscutter/data/
def
/TowerScheduleData.java
→
src/main/java/emu/grasscutter/data/
excels
/TowerScheduleData.java
View file @
a23b29b6
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
;
...
@@ -7,64 +7,45 @@ import java.util.List;
...
@@ -7,64 +7,45 @@ import java.util.List;
@ResourceType
(
name
=
"TowerScheduleExcelConfigData.json"
)
@ResourceType
(
name
=
"TowerScheduleExcelConfigData.json"
)
public
class
TowerScheduleData
extends
GameResource
{
public
class
TowerScheduleData
extends
GameResource
{
private
int
ScheduleId
;
private
int
scheduleId
;
private
List
<
Integer
>
EntranceFloorId
;
private
List
<
Integer
>
entranceFloorId
;
private
List
<
ScheduleDetail
>
Schedules
;
private
List
<
ScheduleDetail
>
schedules
;
private
int
MonthlyLevelConfigId
;
private
int
monthlyLevelConfigId
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
S
cheduleId
;
return
s
cheduleId
;
}
}
@Override
@Override
public
void
onLoad
()
{
public
void
onLoad
()
{
super
.
onLoad
();
super
.
onLoad
();
this
.
S
chedules
=
this
.
S
chedules
.
stream
()
this
.
s
chedules
=
this
.
s
chedules
.
stream
()
.
filter
(
item
->
item
.
getFloorList
().
size
()
>
0
)
.
filter
(
item
->
item
.
getFloorList
().
size
()
>
0
)
.
toList
();
.
toList
();
}
}
public
int
getScheduleId
()
{
public
int
getScheduleId
()
{
return
ScheduleId
;
return
scheduleId
;
}
public
void
setScheduleId
(
int
scheduleId
)
{
ScheduleId
=
scheduleId
;
}
}
public
List
<
Integer
>
getEntranceFloorId
()
{
public
List
<
Integer
>
getEntranceFloorId
()
{
return
EntranceFloorId
;
return
entranceFloorId
;
}
public
void
setEntranceFloorId
(
List
<
Integer
>
entranceFloorId
)
{
EntranceFloorId
=
entranceFloorId
;
}
}
public
List
<
ScheduleDetail
>
getSchedules
()
{
public
List
<
ScheduleDetail
>
getSchedules
()
{
return
Schedules
;
return
schedules
;
}
public
void
setSchedules
(
List
<
ScheduleDetail
>
schedules
)
{
Schedules
=
schedules
;
}
}
public
int
getMonthlyLevelConfigId
()
{
public
int
getMonthlyLevelConfigId
()
{
return
MonthlyLevelConfigId
;
return
monthlyLevelConfigId
;
}
public
void
setMonthlyLevelConfigId
(
int
monthlyLevelConfigId
)
{
MonthlyLevelConfigId
=
monthlyLevelConfigId
;
}
}
public
static
class
ScheduleDetail
{
public
static
class
ScheduleDetail
{
private
List
<
Integer
>
F
loorList
;
private
List
<
Integer
>
f
loorList
;
public
List
<
Integer
>
getFloorList
()
{
public
List
<
Integer
>
getFloorList
()
{
return
FloorList
;
return
floorList
;
}
public
void
setFloorList
(
List
<
Integer
>
floorList
)
{
FloorList
=
floorList
;
}
}
}
}
}
}
src/main/java/emu/grasscutter/data/
def
/WeaponCurveData.java
→
src/main/java/emu/grasscutter/data/
excels
/WeaponCurveData.java
View file @
a23b29b6
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
=
"WeaponCurveExcelConfigData.json"
)
@ResourceType
(
name
=
"WeaponCurveExcelConfigData.json"
)
public
class
WeaponCurveData
extends
GameResource
{
public
class
WeaponCurveData
extends
GameResource
{
private
int
L
evel
;
private
int
l
evel
;
private
CurveInfo
[]
C
urveInfos
;
private
CurveInfo
[]
c
urveInfos
;
private
Map
<
String
,
Float
>
curveInfos
;
private
Map
<
String
,
Float
>
curveInfos
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
curveInfos
.
getOrDefault
(
fightProp
,
1
f
);
return
curveInfos
Map
.
getOrDefault
(
fightProp
,
1
f
);
}
}
@Override
@Override
public
void
onLoad
()
{
public
void
onLoad
()
{
this
.
curveInfos
=
new
HashMap
<>();
this
.
curveInfos
Map
=
new
HashMap
<>();
Stream
.
of
(
this
.
C
urveInfos
).
forEach
(
info
->
this
.
curveInfos
.
put
(
info
.
getType
(),
info
.
getValue
()));
Stream
.
of
(
this
.
c
urveInfos
).
forEach
(
info
->
this
.
curveInfos
Map
.
put
(
info
.
getType
(),
info
.
getValue
()));
}
}
}
}
src/main/java/emu/grasscutter/data/
def
/WeaponLevelData.java
→
src/main/java/emu/grasscutter/data/
excels
/WeaponLevelData.java
View file @
a23b29b6
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
=
"WeaponLevelExcelConfigData.json"
)
@ResourceType
(
name
=
"WeaponLevelExcelConfigData.json"
)
public
class
WeaponLevelData
extends
GameResource
{
public
class
WeaponLevelData
extends
GameResource
{
private
int
L
evel
;
private
int
l
evel
;
private
int
[]
R
equiredExps
;
private
int
[]
r
equiredExps
;
@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
[]
getRequiredExps
()
{
public
int
[]
getRequiredExps
()
{
return
R
equiredExps
;
return
r
equiredExps
;
}
}
}
}
src/main/java/emu/grasscutter/data/
def
/WeaponPromoteData.java
→
src/main/java/emu/grasscutter/data/
excels
/WeaponPromoteData.java
View file @
a23b29b6
package
emu.grasscutter.data.
def
;
package
emu.grasscutter.data.
excels
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
emu.grasscutter.data.GameResource
;
import
emu.grasscutter.data.GameResource
;
...
@@ -9,45 +9,45 @@ import emu.grasscutter.data.common.ItemParamData;
...
@@ -9,45 +9,45 @@ import emu.grasscutter.data.common.ItemParamData;
@ResourceType
(
name
=
"WeaponPromoteExcelConfigData.json"
)
@ResourceType
(
name
=
"WeaponPromoteExcelConfigData.json"
)
public
class
WeaponPromoteData
extends
GameResource
{
public
class
WeaponPromoteData
extends
GameResource
{
private
int
W
eaponPromoteId
;
private
int
w
eaponPromoteId
;
private
int
P
romoteLevel
;
private
int
p
romoteLevel
;
private
ItemParamData
[]
C
ostItems
;
private
ItemParamData
[]
c
ostItems
;
private
int
C
oinCost
;
private
int
c
oinCost
;
private
FightPropData
[]
A
ddProps
;
private
FightPropData
[]
a
ddProps
;
private
int
U
nlockMaxLevel
;
private
int
u
nlockMaxLevel
;
private
int
R
equiredPlayerLevel
;
private
int
r
equiredPlayerLevel
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
(
W
eaponPromoteId
<<
8
)
+
P
romoteLevel
;
return
(
w
eaponPromoteId
<<
8
)
+
p
romoteLevel
;
}
}
public
int
getWeaponPromoteId
()
{
public
int
getWeaponPromoteId
()
{
return
W
eaponPromoteId
;
return
w
eaponPromoteId
;
}
}
public
int
getPromoteLevel
()
{
public
int
getPromoteLevel
()
{
return
P
romoteLevel
;
return
p
romoteLevel
;
}
}
public
ItemParamData
[]
getCostItems
()
{
public
ItemParamData
[]
getCostItems
()
{
return
C
ostItems
;
return
c
ostItems
;
}
}
public
int
getCoinCost
()
{
public
int
getCoinCost
()
{
return
C
oinCost
;
return
c
oinCost
;
}
}
public
FightPropData
[]
getAddProps
()
{
public
FightPropData
[]
getAddProps
()
{
return
A
ddProps
;
return
a
ddProps
;
}
}
public
int
getUnlockMaxLevel
()
{
public
int
getUnlockMaxLevel
()
{
return
U
nlockMaxLevel
;
return
u
nlockMaxLevel
;
}
}
public
int
getRequiredPlayerLevel
()
{
public
int
getRequiredPlayerLevel
()
{
return
R
equiredPlayerLevel
;
return
r
equiredPlayerLevel
;
}
}
@Override
@Override
...
@@ -60,7 +60,7 @@ public class WeaponPromoteData extends GameResource {
...
@@ -60,7 +60,7 @@ public class WeaponPromoteData extends GameResource {
}
}
trim
.
add
(
itemParam
);
trim
.
add
(
itemParam
);
}
}
this
.
C
ostItems
=
trim
.
toArray
(
new
ItemParamData
[
trim
.
size
()]);
this
.
c
ostItems
=
trim
.
toArray
(
new
ItemParamData
[
trim
.
size
()]);
// Trim fight prop data
// Trim fight prop data
ArrayList
<
FightPropData
>
parsed
=
new
ArrayList
<>(
getAddProps
().
length
);
ArrayList
<
FightPropData
>
parsed
=
new
ArrayList
<>(
getAddProps
().
length
);
for
(
FightPropData
prop
:
getAddProps
())
{
for
(
FightPropData
prop
:
getAddProps
())
{
...
@@ -69,6 +69,6 @@ public class WeaponPromoteData extends GameResource {
...
@@ -69,6 +69,6 @@ public class WeaponPromoteData 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
/WorldLevelData.java
→
src/main/java/emu/grasscutter/data/
excels
/WorldLevelData.java
View file @
a23b29b6
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
=
"WorldLevelExcelConfigData.json"
)
@ResourceType
(
name
=
"WorldLevelExcelConfigData.json"
)
public
class
WorldLevelData
extends
GameResource
{
public
class
WorldLevelData
extends
GameResource
{
private
int
L
evel
;
private
int
l
evel
;
private
int
M
onsterLevel
;
private
int
m
onsterLevel
;
@Override
@Override
public
int
getId
()
{
public
int
getId
()
{
return
this
.
L
evel
;
return
this
.
l
evel
;
}
}
public
int
getMonsterLevel
()
{
public
int
getMonsterLevel
()
{
return
M
onsterLevel
;
return
m
onsterLevel
;
}
}
@Override
@Override
...
...
src/main/java/emu/grasscutter/game/ability/AbilityManager.java
View file @
a23b29b6
...
@@ -7,10 +7,10 @@ import com.google.protobuf.InvalidProtocolBufferException;
...
@@ -7,10 +7,10 @@ import com.google.protobuf.InvalidProtocolBufferException;
import
emu.grasscutter.Grasscutter
;
import
emu.grasscutter.Grasscutter
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.
custom
.AbilityModifier
.AbilityModifierAction
;
import
emu.grasscutter.data.
binout
.AbilityModifier
Entry
;
import
emu.grasscutter.data.
def.AvatarSkillDepotData
;
import
emu.grasscutter.data.
binout.AbilityModifier.AbilityModifierAction
;
import
emu.grasscutter.data.
def.Item
Data
;
import
emu.grasscutter.data.
excels.AvatarSkillDepot
Data
;
import
emu.grasscutter.data.
custom.AbilityModifierEntry
;
import
emu.grasscutter.data.
excels.ItemData
;
import
emu.grasscutter.game.avatar.Avatar
;
import
emu.grasscutter.game.avatar.Avatar
;
import
emu.grasscutter.game.entity.EntityAvatar
;
import
emu.grasscutter.game.entity.EntityAvatar
;
import
emu.grasscutter.game.entity.EntityClientGadget
;
import
emu.grasscutter.game.entity.EntityClientGadget
;
...
...
src/main/java/emu/grasscutter/game/avatar/Avatar.java
View file @
a23b29b6
...
@@ -17,24 +17,24 @@ import dev.morphia.annotations.PostLoad;
...
@@ -17,24 +17,24 @@ import dev.morphia.annotations.PostLoad;
import
dev.morphia.annotations.PrePersist
;
import
dev.morphia.annotations.PrePersist
;
import
dev.morphia.annotations.Transient
;
import
dev.morphia.annotations.Transient
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.binout.OpenConfigEntry
;
import
emu.grasscutter.data.binout.OpenConfigEntry.SkillPointModifier
;
import
emu.grasscutter.data.common.FightPropData
;
import
emu.grasscutter.data.common.FightPropData
;
import
emu.grasscutter.data.custom.OpenConfigEntry
;
import
emu.grasscutter.data.excels.AvatarData
;
import
emu.grasscutter.data.custom.OpenConfigEntry.SkillPointModifier
;
import
emu.grasscutter.data.excels.AvatarPromoteData
;
import
emu.grasscutter.data.def.AvatarData
;
import
emu.grasscutter.data.excels.AvatarSkillData
;
import
emu.grasscutter.data.def.AvatarPromoteData
;
import
emu.grasscutter.data.excels.AvatarSkillDepotData
;
import
emu.grasscutter.data.def.AvatarSkillData
;
import
emu.grasscutter.data.excels.AvatarTalentData
;
import
emu.grasscutter.data.def.AvatarSkillDepotData
;
import
emu.grasscutter.data.excels.EquipAffixData
;
import
emu.grasscutter.data.def.AvatarSkillDepotData.InherentProudSkillOpens
;
import
emu.grasscutter.data.excels.ProudSkillData
;
import
emu.grasscutter.data.def.AvatarTalentData
;
import
emu.grasscutter.data.excels.ReliquaryAffixData
;
import
emu.grasscutter.data.def.EquipAffixData
;
import
emu.grasscutter.data.excels.ReliquaryLevelData
;
import
emu.grasscutter.data.def.ItemData.WeaponProperty
;
import
emu.grasscutter.data.excels.ReliquaryMainPropData
;
import
emu.grasscutter.data.def.ProudSkillData
;
import
emu.grasscutter.data.excels.ReliquarySetData
;
import
emu.grasscutter.data.def.ReliquaryAffixData
;
import
emu.grasscutter.data.excels.WeaponCurveData
;
import
emu.grasscutter.data.def.ReliquaryLevelData
;
import
emu.grasscutter.data.excels.WeaponPromoteData
;
import
emu.grasscutter.data.def.ReliquaryMainPropData
;
import
emu.grasscutter.data.excels.AvatarSkillDepotData.InherentProudSkillOpens
;
import
emu.grasscutter.data.def.ReliquarySetData
;
import
emu.grasscutter.data.excels.ItemData.WeaponProperty
;
import
emu.grasscutter.data.def.WeaponCurveData
;
import
emu.grasscutter.data.def.WeaponPromoteData
;
import
emu.grasscutter.database.DatabaseHelper
;
import
emu.grasscutter.database.DatabaseHelper
;
import
emu.grasscutter.game.entity.EntityAvatar
;
import
emu.grasscutter.game.entity.EntityAvatar
;
import
emu.grasscutter.game.inventory.EquipType
;
import
emu.grasscutter.game.inventory.EquipType
;
...
...
src/main/java/emu/grasscutter/game/avatar/AvatarStorage.java
View file @
a23b29b6
...
@@ -4,8 +4,8 @@ import java.util.Iterator;
...
@@ -4,8 +4,8 @@ import java.util.Iterator;
import
java.util.List
;
import
java.util.List
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.
def
.AvatarData
;
import
emu.grasscutter.data.
excels
.AvatarData
;
import
emu.grasscutter.data.
def
.AvatarSkillDepotData
;
import
emu.grasscutter.data.
excels
.AvatarSkillDepotData
;
import
emu.grasscutter.database.DatabaseHelper
;
import
emu.grasscutter.database.DatabaseHelper
;
import
emu.grasscutter.game.entity.EntityAvatar
;
import
emu.grasscutter.game.entity.EntityAvatar
;
import
emu.grasscutter.game.inventory.GameItem
;
import
emu.grasscutter.game.inventory.GameItem
;
...
...
src/main/java/emu/grasscutter/game/combine/CombineManger.java
View file @
a23b29b6
package
emu.grasscutter.game.combine
;
package
emu.grasscutter.game.combine
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.def.CombineData
;
import
emu.grasscutter.data.common.ItemParamData
;
import
emu.grasscutter.data.excels.CombineData
;
import
emu.grasscutter.game.inventory.ItemType
;
import
emu.grasscutter.game.inventory.ItemType
;
import
emu.grasscutter.game.player.Player
;
import
emu.grasscutter.game.player.Player
;
import
emu.grasscutter.net.proto.RetcodeOuterClass
;
import
emu.grasscutter.net.proto.RetcodeOuterClass
;
...
@@ -71,7 +72,7 @@ public class CombineManger {
...
@@ -71,7 +72,7 @@ public class CombineManger {
CombineResult
result
=
new
CombineResult
();
CombineResult
result
=
new
CombineResult
();
result
.
setMaterial
(
List
.
of
());
result
.
setMaterial
(
List
.
of
());
result
.
setResult
(
List
.
of
(
new
CombineData
.
CombineItemPair
(
combineData
.
getResultItemId
(),
result
.
setResult
(
List
.
of
(
new
ItemParamData
(
combineData
.
getResultItemId
(),
combineData
.
getResultItemCount
()
*
count
)));
combineData
.
getResultItemCount
()
*
count
)));
// TODO lucky characters
// TODO lucky characters
result
.
setExtra
(
List
.
of
());
result
.
setExtra
(
List
.
of
());
...
...
src/main/java/emu/grasscutter/game/combine/CombineResult.java
View file @
a23b29b6
package
emu.grasscutter.game.combine
;
package
emu.grasscutter.game.combine
;
import
emu.grasscutter.data.def.CombineData
;
import
java.util.List
;
import
java.util.List
;
import
emu.grasscutter.data.common.ItemParamData
;
import
emu.grasscutter.data.excels.CombineData
;
public
class
CombineResult
{
public
class
CombineResult
{
private
List
<
CombineData
.
CombineItemPair
>
material
;
private
List
<
ItemParamData
>
material
;
private
List
<
CombineData
.
CombineItemPair
>
result
;
private
List
<
ItemParamData
>
result
;
private
List
<
CombineData
.
CombineItemPair
>
extra
;
private
List
<
ItemParamData
>
extra
;
private
List
<
CombineData
.
CombineItemPair
>
back
;
private
List
<
ItemParamData
>
back
;
public
List
<
CombineData
.
CombineItemPair
>
getMaterial
()
{
public
List
<
ItemParamData
>
getMaterial
()
{
return
material
;
return
material
;
}
}
public
void
setMaterial
(
List
<
CombineData
.
CombineItemPair
>
material
)
{
public
void
setMaterial
(
List
<
ItemParamData
>
material
)
{
this
.
material
=
material
;
this
.
material
=
material
;
}
}
public
List
<
CombineData
.
CombineItemPair
>
getResult
()
{
public
List
<
ItemParamData
>
getResult
()
{
return
result
;
return
result
;
}
}
public
void
setResult
(
List
<
CombineData
.
CombineItemPair
>
result
)
{
public
void
setResult
(
List
<
ItemParamData
>
result
)
{
this
.
result
=
result
;
this
.
result
=
result
;
}
}
public
List
<
CombineData
.
CombineItemPair
>
getExtra
()
{
public
List
<
ItemParamData
>
getExtra
()
{
return
extra
;
return
extra
;
}
}
public
void
setExtra
(
List
<
CombineData
.
CombineItemPair
>
extra
)
{
public
void
setExtra
(
List
<
ItemParamData
>
extra
)
{
this
.
extra
=
extra
;
this
.
extra
=
extra
;
}
}
public
List
<
CombineData
.
CombineItemPair
>
getBack
()
{
public
List
<
ItemParamData
>
getBack
()
{
return
back
;
return
back
;
}
}
public
void
setBack
(
List
<
CombineData
.
CombineItemPair
>
back
)
{
public
void
setBack
(
List
<
ItemParamData
>
back
)
{
this
.
back
=
back
;
this
.
back
=
back
;
}
}
...
...
src/main/java/emu/grasscutter/game/drop/DropManager.java
View file @
a23b29b6
...
@@ -4,7 +4,7 @@ import com.google.gson.reflect.TypeToken;
...
@@ -4,7 +4,7 @@ import com.google.gson.reflect.TypeToken;
import
emu.grasscutter.Grasscutter
;
import
emu.grasscutter.Grasscutter
;
import
emu.grasscutter.data.DataLoader
;
import
emu.grasscutter.data.DataLoader
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.
def
.ItemData
;
import
emu.grasscutter.data.
excels
.ItemData
;
import
emu.grasscutter.game.entity.EntityItem
;
import
emu.grasscutter.game.entity.EntityItem
;
import
emu.grasscutter.game.entity.EntityMonster
;
import
emu.grasscutter.game.entity.EntityMonster
;
import
emu.grasscutter.game.inventory.GameItem
;
import
emu.grasscutter.game.inventory.GameItem
;
...
...
src/main/java/emu/grasscutter/game/dungeons/DungeonChallenge.java
View file @
a23b29b6
package
emu.grasscutter.game.dungeons
;
package
emu.grasscutter.game.dungeons
;
import
emu.grasscutter.data.common.ItemParamData
;
import
emu.grasscutter.data.common.ItemParamData
;
import
emu.grasscutter.data.
def
.DungeonData
;
import
emu.grasscutter.data.
excels
.DungeonData
;
import
emu.grasscutter.game.entity.EntityMonster
;
import
emu.grasscutter.game.entity.EntityMonster
;
import
emu.grasscutter.game.inventory.GameItem
;
import
emu.grasscutter.game.inventory.GameItem
;
import
emu.grasscutter.game.player.Player
;
import
emu.grasscutter.game.player.Player
;
...
...
src/main/java/emu/grasscutter/game/dungeons/DungeonManager.java
View file @
a23b29b6
...
@@ -3,8 +3,8 @@ package emu.grasscutter.game.dungeons;
...
@@ -3,8 +3,8 @@ package emu.grasscutter.game.dungeons;
import
emu.grasscutter.GameConstants
;
import
emu.grasscutter.GameConstants
;
import
emu.grasscutter.Grasscutter
;
import
emu.grasscutter.Grasscutter
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.
custom
.ScenePointEntry
;
import
emu.grasscutter.data.
binout
.ScenePointEntry
;
import
emu.grasscutter.data.
def
.DungeonData
;
import
emu.grasscutter.data.
excels
.DungeonData
;
import
emu.grasscutter.game.player.Player
;
import
emu.grasscutter.game.player.Player
;
import
emu.grasscutter.game.props.SceneType
;
import
emu.grasscutter.game.props.SceneType
;
import
emu.grasscutter.game.quest.enums.QuestTrigger
;
import
emu.grasscutter.game.quest.enums.QuestTrigger
;
...
...
src/main/java/emu/grasscutter/game/entity/EntityAvatar.java
View file @
a23b29b6
...
@@ -2,8 +2,8 @@ package emu.grasscutter.game.entity;
...
@@ -2,8 +2,8 @@ package emu.grasscutter.game.entity;
import
emu.grasscutter.GameConstants
;
import
emu.grasscutter.GameConstants
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.
def
.AvatarData
;
import
emu.grasscutter.data.
excels
.AvatarData
;
import
emu.grasscutter.data.
def
.AvatarSkillDepotData
;
import
emu.grasscutter.data.
excels
.AvatarSkillDepotData
;
import
emu.grasscutter.game.avatar.Avatar
;
import
emu.grasscutter.game.avatar.Avatar
;
import
emu.grasscutter.game.inventory.EquipType
;
import
emu.grasscutter.game.inventory.EquipType
;
import
emu.grasscutter.game.inventory.GameItem
;
import
emu.grasscutter.game.inventory.GameItem
;
...
...
src/main/java/emu/grasscutter/game/entity/EntityGadget.java
View file @
a23b29b6
...
@@ -4,7 +4,7 @@ import java.util.Arrays;
...
@@ -4,7 +4,7 @@ import java.util.Arrays;
import
java.util.List
;
import
java.util.List
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.
def
.GadgetData
;
import
emu.grasscutter.data.
excels
.GadgetData
;
import
emu.grasscutter.game.props.EntityIdType
;
import
emu.grasscutter.game.props.EntityIdType
;
import
emu.grasscutter.game.props.EntityType
;
import
emu.grasscutter.game.props.EntityType
;
import
emu.grasscutter.game.props.PlayerProperty
;
import
emu.grasscutter.game.props.PlayerProperty
;
...
...
src/main/java/emu/grasscutter/game/entity/EntityItem.java
View file @
a23b29b6
package
emu.grasscutter.game.entity
;
package
emu.grasscutter.game.entity
;
import
emu.grasscutter.data.
def
.ItemData
;
import
emu.grasscutter.data.
excels
.ItemData
;
import
emu.grasscutter.game.inventory.GameItem
;
import
emu.grasscutter.game.inventory.GameItem
;
import
emu.grasscutter.game.player.Player
;
import
emu.grasscutter.game.player.Player
;
import
emu.grasscutter.game.props.EntityIdType
;
import
emu.grasscutter.game.props.EntityIdType
;
...
...
Prev
1
2
3
4
5
6
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment