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.GameResource
;
...
...
@@ -8,22 +8,21 @@ import emu.grasscutter.game.props.SceneType;
@ResourceType
(
name
=
"SceneExcelConfigData.json"
)
public
class
SceneData
extends
GameResource
{
private
int
I
d
;
private
SceneType
T
ype
;
private
String
S
criptData
;
private
int
i
d
;
private
SceneType
t
ype
;
private
String
s
criptData
;
@Override
public
int
getId
()
{
return
this
.
I
d
;
return
this
.
i
d
;
}
public
SceneType
getSceneType
()
{
return
T
ype
;
return
t
ype
;
}
public
String
getScriptData
()
{
return
S
criptData
;
return
s
criptData
;
}
@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.ResourceType
;
...
...
@@ -9,34 +9,34 @@ import java.util.List;
@ResourceType
(
name
=
"ShopGoodsExcelConfigData.json"
)
public
class
ShopGoodsData
extends
GameResource
{
private
int
G
oodsId
;
private
int
S
hopType
;
private
int
I
temId
;
private
int
g
oodsId
;
private
int
s
hopType
;
private
int
i
temId
;
private
int
I
temCount
;
private
int
i
temCount
;
private
int
C
ostScoin
;
private
int
C
ostHcoin
;
private
int
C
ostMcoin
;
private
int
c
ostScoin
;
private
int
c
ostHcoin
;
private
int
c
ostMcoin
;
private
List
<
ItemParamData
>
C
ostItems
;
private
int
M
inPlayerLevel
;
private
int
M
axPlayerLevel
;
private
List
<
ItemParamData
>
c
ostItems
;
private
int
m
inPlayerLevel
;
private
int
m
axPlayerLevel
;
private
int
B
uyLimit
;
private
int
S
ubTabId
;
private
int
b
uyLimit
;
private
int
s
ubTabId
;
private
String
R
efreshType
;
private
transient
ShopInfo
.
ShopRefreshType
R
efreshTypeEnum
;
private
String
r
efreshType
;
private
transient
ShopInfo
.
ShopRefreshType
r
efreshTypeEnum
;
private
int
R
efreshParam
;
private
int
r
efreshParam
;
@Override
public
void
onLoad
()
{
if
(
this
.
R
efreshType
==
null
)
this
.
R
efreshTypeEnum
=
ShopInfo
.
ShopRefreshType
.
NONE
;
if
(
this
.
r
efreshType
==
null
)
this
.
r
efreshTypeEnum
=
ShopInfo
.
ShopRefreshType
.
NONE
;
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_WEEKLY"
->
ShopInfo
.
ShopRefreshType
.
SHOP_REFRESH_WEEKLY
;
case
"SHOP_REFRESH_MONTHLY"
->
ShopInfo
.
ShopRefreshType
.
SHOP_REFRESH_MONTHLY
;
...
...
@@ -51,58 +51,58 @@ public class ShopGoodsData extends GameResource {
}
public
int
getGoodsId
()
{
return
G
oodsId
;
return
g
oodsId
;
}
public
int
getShopType
()
{
return
S
hopType
;
return
s
hopType
;
}
public
int
getItemId
()
{
return
I
temId
;
return
i
temId
;
}
public
int
getItemCount
()
{
return
I
temCount
;
return
i
temCount
;
}
public
int
getCostScoin
()
{
return
C
ostScoin
;
return
c
ostScoin
;
}
public
int
getCostHcoin
()
{
return
C
ostHcoin
;
return
c
ostHcoin
;
}
public
int
getCostMcoin
()
{
return
C
ostMcoin
;
return
c
ostMcoin
;
}
public
List
<
ItemParamData
>
getCostItems
()
{
return
C
ostItems
;
return
c
ostItems
;
}
public
int
getMinPlayerLevel
()
{
return
M
inPlayerLevel
;
return
m
inPlayerLevel
;
}
public
int
getMaxPlayerLevel
()
{
return
M
axPlayerLevel
;
return
m
axPlayerLevel
;
}
public
int
getBuyLimit
()
{
return
B
uyLimit
;
return
b
uyLimit
;
}
public
int
getSubTabId
()
{
return
S
ubTabId
;
return
s
ubTabId
;
}
public
ShopInfo
.
ShopRefreshType
getRefreshType
()
{
return
R
efreshTypeEnum
;
return
r
efreshTypeEnum
;
}
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.ResourceType
;
...
...
@@ -6,16 +6,16 @@ import emu.grasscutter.data.ResourceType;
@ResourceType
(
name
=
"TowerFloorExcelConfigData.json"
)
public
class
TowerFloorData
extends
GameResource
{
private
int
F
loorId
;
private
int
F
loorIndex
;
private
int
L
evelId
;
private
int
O
verrideMonsterLevel
;
private
int
T
eamNum
;
private
int
F
loorLevelConfigId
;
private
int
f
loorId
;
private
int
f
loorIndex
;
private
int
l
evelId
;
private
int
o
verrideMonsterLevel
;
private
int
t
eamNum
;
private
int
f
loorLevelConfigId
;
@Override
public
int
getId
()
{
return
this
.
F
loorId
;
return
this
.
f
loorId
;
}
@Override
...
...
@@ -24,50 +24,26 @@ public class TowerFloorData extends GameResource {
}
public
int
getFloorId
()
{
return
FloorId
;
}
public
void
setFloorId
(
int
floorId
)
{
FloorId
=
floorId
;
return
floorId
;
}
public
int
getFloorIndex
()
{
return
FloorIndex
;
}
public
void
setFloorIndex
(
int
floorIndex
)
{
FloorIndex
=
floorIndex
;
return
floorIndex
;
}
public
int
getLevelId
()
{
return
LevelId
;
}
public
void
setLevelId
(
int
levelId
)
{
LevelId
=
levelId
;
return
levelId
;
}
public
int
getOverrideMonsterLevel
()
{
return
OverrideMonsterLevel
;
}
public
void
setOverrideMonsterLevel
(
int
overrideMonsterLevel
)
{
OverrideMonsterLevel
=
overrideMonsterLevel
;
return
overrideMonsterLevel
;
}
public
int
getTeamNum
()
{
return
TeamNum
;
}
public
void
setTeamNum
(
int
teamNum
)
{
TeamNum
=
teamNum
;
return
teamNum
;
}
public
int
getFloorLevelConfigId
()
{
return
FloorLevelConfigId
;
}
public
void
setFloorLevelConfigId
(
int
floorLevelConfigId
)
{
FloorLevelConfigId
=
floorLevelConfigId
;
return
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.ResourceType
;
@ResourceType
(
name
=
"TowerLevelExcelConfigData.json"
)
public
class
TowerLevelData
extends
GameResource
{
private
int
ID
;
private
int
LevelId
;
private
int
LevelIndex
;
private
int
DungeonId
;
private
int
levelId
;
private
int
levelIndex
;
private
int
dungeonId
;
@Override
public
int
getId
()
{
return
this
.
ID
;
}
@Override
public
void
onLoad
()
{
super
.
onLoad
();
}
public
int
getID
()
{
return
ID
;
}
public
void
setID
(
int
ID
)
{
this
.
ID
=
ID
;
return
this
.
getLevelId
();
}
public
int
getLevelId
()
{
return
LevelId
;
}
public
void
setLevelId
(
int
levelId
)
{
LevelId
=
levelId
;
return
levelId
;
}
public
int
getLevelIndex
()
{
return
LevelIndex
;
}
public
void
setLevelIndex
(
int
levelIndex
)
{
LevelIndex
=
levelIndex
;
return
levelIndex
;
}
public
int
getDungeonId
()
{
return
DungeonId
;
}
public
void
setDungeonId
(
int
dungeonId
)
{
DungeonId
=
dungeonId
;
return
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.ResourceType
;
...
...
@@ -7,64 +7,45 @@ import java.util.List;
@ResourceType
(
name
=
"TowerScheduleExcelConfigData.json"
)
public
class
TowerScheduleData
extends
GameResource
{
private
int
ScheduleId
;
private
List
<
Integer
>
EntranceFloorId
;
private
List
<
ScheduleDetail
>
Schedules
;
private
int
MonthlyLevelConfigId
;
private
int
scheduleId
;
private
List
<
Integer
>
entranceFloorId
;
private
List
<
ScheduleDetail
>
schedules
;
private
int
monthlyLevelConfigId
;
@Override
public
int
getId
()
{
return
S
cheduleId
;
return
s
cheduleId
;
}
@Override
public
void
onLoad
()
{
super
.
onLoad
();
this
.
S
chedules
=
this
.
S
chedules
.
stream
()
this
.
s
chedules
=
this
.
s
chedules
.
stream
()
.
filter
(
item
->
item
.
getFloorList
().
size
()
>
0
)
.
toList
();
}
public
int
getScheduleId
()
{
return
ScheduleId
;
}
public
void
setScheduleId
(
int
scheduleId
)
{
ScheduleId
=
scheduleId
;
return
scheduleId
;
}
public
List
<
Integer
>
getEntranceFloorId
()
{
return
EntranceFloorId
;
}
public
void
setEntranceFloorId
(
List
<
Integer
>
entranceFloorId
)
{
EntranceFloorId
=
entranceFloorId
;
return
entranceFloorId
;
}
public
List
<
ScheduleDetail
>
getSchedules
()
{
return
Schedules
;
}
public
void
setSchedules
(
List
<
ScheduleDetail
>
schedules
)
{
Schedules
=
schedules
;
return
schedules
;
}
public
int
getMonthlyLevelConfigId
()
{
return
MonthlyLevelConfigId
;
}
public
void
setMonthlyLevelConfigId
(
int
monthlyLevelConfigId
)
{
MonthlyLevelConfigId
=
monthlyLevelConfigId
;
return
monthlyLevelConfigId
;
}
public
static
class
ScheduleDetail
{
private
List
<
Integer
>
F
loorList
;
private
List
<
Integer
>
f
loorList
;
public
List
<
Integer
>
getFloorList
()
{
return
FloorList
;
}
public
void
setFloorList
(
List
<
Integer
>
floorList
)
{
FloorList
=
floorList
;
return
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.Map
;
...
...
@@ -10,23 +10,23 @@ import emu.grasscutter.data.common.CurveInfo;
@ResourceType
(
name
=
"WeaponCurveExcelConfigData.json"
)
public
class
WeaponCurveData
extends
GameResource
{
private
int
L
evel
;
private
CurveInfo
[]
C
urveInfos
;
private
int
l
evel
;
private
CurveInfo
[]
c
urveInfos
;
private
Map
<
String
,
Float
>
curveInfos
;
private
Map
<
String
,
Float
>
curveInfos
Map
;
@Override
public
int
getId
()
{
return
L
evel
;
return
l
evel
;
}
public
float
getMultByProp
(
String
fightProp
)
{
return
curveInfos
.
getOrDefault
(
fightProp
,
1
f
);
return
curveInfos
Map
.
getOrDefault
(
fightProp
,
1
f
);
}
@Override
public
void
onLoad
()
{
this
.
curveInfos
=
new
HashMap
<>();
Stream
.
of
(
this
.
C
urveInfos
).
forEach
(
info
->
this
.
curveInfos
.
put
(
info
.
getType
(),
info
.
getValue
()));
this
.
curveInfos
Map
=
new
HashMap
<>();
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.ResourceType
;
@ResourceType
(
name
=
"WeaponLevelExcelConfigData.json"
)
public
class
WeaponLevelData
extends
GameResource
{
private
int
L
evel
;
private
int
[]
R
equiredExps
;
private
int
l
evel
;
private
int
[]
r
equiredExps
;
@Override
public
int
getId
()
{
return
this
.
L
evel
;
return
this
.
l
evel
;
}
public
int
getLevel
()
{
return
L
evel
;
return
l
evel
;
}
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
emu.grasscutter.data.GameResource
;
...
...
@@ -9,45 +9,45 @@ import emu.grasscutter.data.common.ItemParamData;
@ResourceType
(
name
=
"WeaponPromoteExcelConfigData.json"
)
public
class
WeaponPromoteData
extends
GameResource
{
private
int
W
eaponPromoteId
;
private
int
P
romoteLevel
;
private
ItemParamData
[]
C
ostItems
;
private
int
C
oinCost
;
private
FightPropData
[]
A
ddProps
;
private
int
U
nlockMaxLevel
;
private
int
R
equiredPlayerLevel
;
private
int
w
eaponPromoteId
;
private
int
p
romoteLevel
;
private
ItemParamData
[]
c
ostItems
;
private
int
c
oinCost
;
private
FightPropData
[]
a
ddProps
;
private
int
u
nlockMaxLevel
;
private
int
r
equiredPlayerLevel
;
@Override
public
int
getId
()
{
return
(
W
eaponPromoteId
<<
8
)
+
P
romoteLevel
;
return
(
w
eaponPromoteId
<<
8
)
+
p
romoteLevel
;
}
public
int
getWeaponPromoteId
()
{
return
W
eaponPromoteId
;
return
w
eaponPromoteId
;
}
public
int
getPromoteLevel
()
{
return
P
romoteLevel
;
return
p
romoteLevel
;
}
public
ItemParamData
[]
getCostItems
()
{
return
C
ostItems
;
return
c
ostItems
;
}
public
int
getCoinCost
()
{
return
C
oinCost
;
return
c
oinCost
;
}
public
FightPropData
[]
getAddProps
()
{
return
A
ddProps
;
return
a
ddProps
;
}
public
int
getUnlockMaxLevel
()
{
return
U
nlockMaxLevel
;
return
u
nlockMaxLevel
;
}
public
int
getRequiredPlayerLevel
()
{
return
R
equiredPlayerLevel
;
return
r
equiredPlayerLevel
;
}
@Override
...
...
@@ -60,7 +60,7 @@ public class WeaponPromoteData extends GameResource {
}
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
ArrayList
<
FightPropData
>
parsed
=
new
ArrayList
<>(
getAddProps
().
length
);
for
(
FightPropData
prop
:
getAddProps
())
{
...
...
@@ -69,6 +69,6 @@ public class WeaponPromoteData 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
/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.ResourceType
;
@ResourceType
(
name
=
"WorldLevelExcelConfigData.json"
)
public
class
WorldLevelData
extends
GameResource
{
private
int
L
evel
;
private
int
M
onsterLevel
;
private
int
l
evel
;
private
int
m
onsterLevel
;
@Override
public
int
getId
()
{
return
this
.
L
evel
;
return
this
.
l
evel
;
}
public
int
getMonsterLevel
()
{
return
M
onsterLevel
;
return
m
onsterLevel
;
}
@Override
...
...
src/main/java/emu/grasscutter/game/ability/AbilityManager.java
View file @
a23b29b6
...
...
@@ -7,10 +7,10 @@ import com.google.protobuf.InvalidProtocolBufferException;
import
emu.grasscutter.Grasscutter
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.
custom
.AbilityModifier
.AbilityModifierAction
;
import
emu.grasscutter.data.
def.AvatarSkillDepotData
;
import
emu.grasscutter.data.
def.Item
Data
;
import
emu.grasscutter.data.
custom.AbilityModifierEntry
;
import
emu.grasscutter.data.
binout
.AbilityModifier
Entry
;
import
emu.grasscutter.data.
binout.AbilityModifier.AbilityModifierAction
;
import
emu.grasscutter.data.
excels.AvatarSkillDepot
Data
;
import
emu.grasscutter.data.
excels.ItemData
;
import
emu.grasscutter.game.avatar.Avatar
;
import
emu.grasscutter.game.entity.EntityAvatar
;
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;
import
dev.morphia.annotations.PrePersist
;
import
dev.morphia.annotations.Transient
;
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.custom.OpenConfigEntry
;
import
emu.grasscutter.data.custom.OpenConfigEntry.SkillPointModifier
;
import
emu.grasscutter.data.def.AvatarData
;
import
emu.grasscutter.data.def.AvatarPromoteData
;
import
emu.grasscutter.data.def.AvatarSkillData
;
import
emu.grasscutter.data.def.AvatarSkillDepotData
;
import
emu.grasscutter.data.def.AvatarSkillDepotData.InherentProudSkillOpens
;
import
emu.grasscutter.data.def.AvatarTalentData
;
import
emu.grasscutter.data.def.EquipAffixData
;
import
emu.grasscutter.data.def.ItemData.WeaponProperty
;
import
emu.grasscutter.data.def.ProudSkillData
;
import
emu.grasscutter.data.def.ReliquaryAffixData
;
import
emu.grasscutter.data.def.ReliquaryLevelData
;
import
emu.grasscutter.data.def.ReliquaryMainPropData
;
import
emu.grasscutter.data.def.ReliquarySetData
;
import
emu.grasscutter.data.def.WeaponCurveData
;
import
emu.grasscutter.data.def.WeaponPromoteData
;
import
emu.grasscutter.data.excels.AvatarData
;
import
emu.grasscutter.data.excels.AvatarPromoteData
;
import
emu.grasscutter.data.excels.AvatarSkillData
;
import
emu.grasscutter.data.excels.AvatarSkillDepotData
;
import
emu.grasscutter.data.excels.AvatarTalentData
;
import
emu.grasscutter.data.excels.EquipAffixData
;
import
emu.grasscutter.data.excels.ProudSkillData
;
import
emu.grasscutter.data.excels.ReliquaryAffixData
;
import
emu.grasscutter.data.excels.ReliquaryLevelData
;
import
emu.grasscutter.data.excels.ReliquaryMainPropData
;
import
emu.grasscutter.data.excels.ReliquarySetData
;
import
emu.grasscutter.data.excels.WeaponCurveData
;
import
emu.grasscutter.data.excels.WeaponPromoteData
;
import
emu.grasscutter.data.excels.AvatarSkillDepotData.InherentProudSkillOpens
;
import
emu.grasscutter.data.excels.ItemData.WeaponProperty
;
import
emu.grasscutter.database.DatabaseHelper
;
import
emu.grasscutter.game.entity.EntityAvatar
;
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;
import
java.util.List
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.
def
.AvatarData
;
import
emu.grasscutter.data.
def
.AvatarSkillDepotData
;
import
emu.grasscutter.data.
excels
.AvatarData
;
import
emu.grasscutter.data.
excels
.AvatarSkillDepotData
;
import
emu.grasscutter.database.DatabaseHelper
;
import
emu.grasscutter.game.entity.EntityAvatar
;
import
emu.grasscutter.game.inventory.GameItem
;
...
...
src/main/java/emu/grasscutter/game/combine/CombineManger.java
View file @
a23b29b6
package
emu.grasscutter.game.combine
;
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.player.Player
;
import
emu.grasscutter.net.proto.RetcodeOuterClass
;
...
...
@@ -71,7 +72,7 @@ public class CombineManger {
CombineResult
result
=
new
CombineResult
();
result
.
setMaterial
(
List
.
of
());
result
.
setResult
(
List
.
of
(
new
CombineData
.
CombineItemPair
(
combineData
.
getResultItemId
(),
result
.
setResult
(
List
.
of
(
new
ItemParamData
(
combineData
.
getResultItemId
(),
combineData
.
getResultItemCount
()
*
count
)));
// TODO lucky characters
result
.
setExtra
(
List
.
of
());
...
...
src/main/java/emu/grasscutter/game/combine/CombineResult.java
View file @
a23b29b6
package
emu.grasscutter.game.combine
;
import
emu.grasscutter.data.def.CombineData
;
import
java.util.List
;
import
emu.grasscutter.data.common.ItemParamData
;
import
emu.grasscutter.data.excels.CombineData
;
public
class
CombineResult
{
private
List
<
CombineData
.
CombineItemPair
>
material
;
private
List
<
CombineData
.
CombineItemPair
>
result
;
private
List
<
CombineData
.
CombineItemPair
>
extra
;
private
List
<
CombineData
.
CombineItemPair
>
back
;
private
List
<
ItemParamData
>
material
;
private
List
<
ItemParamData
>
result
;
private
List
<
ItemParamData
>
extra
;
private
List
<
ItemParamData
>
back
;
public
List
<
CombineData
.
CombineItemPair
>
getMaterial
()
{
public
List
<
ItemParamData
>
getMaterial
()
{
return
material
;
}
public
void
setMaterial
(
List
<
CombineData
.
CombineItemPair
>
material
)
{
public
void
setMaterial
(
List
<
ItemParamData
>
material
)
{
this
.
material
=
material
;
}
public
List
<
CombineData
.
CombineItemPair
>
getResult
()
{
public
List
<
ItemParamData
>
getResult
()
{
return
result
;
}
public
void
setResult
(
List
<
CombineData
.
CombineItemPair
>
result
)
{
public
void
setResult
(
List
<
ItemParamData
>
result
)
{
this
.
result
=
result
;
}
public
List
<
CombineData
.
CombineItemPair
>
getExtra
()
{
public
List
<
ItemParamData
>
getExtra
()
{
return
extra
;
}
public
void
setExtra
(
List
<
CombineData
.
CombineItemPair
>
extra
)
{
public
void
setExtra
(
List
<
ItemParamData
>
extra
)
{
this
.
extra
=
extra
;
}
public
List
<
CombineData
.
CombineItemPair
>
getBack
()
{
public
List
<
ItemParamData
>
getBack
()
{
return
back
;
}
public
void
setBack
(
List
<
CombineData
.
CombineItemPair
>
back
)
{
public
void
setBack
(
List
<
ItemParamData
>
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;
import
emu.grasscutter.Grasscutter
;
import
emu.grasscutter.data.DataLoader
;
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.EntityMonster
;
import
emu.grasscutter.game.inventory.GameItem
;
...
...
src/main/java/emu/grasscutter/game/dungeons/DungeonChallenge.java
View file @
a23b29b6
package
emu.grasscutter.game.dungeons
;
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.inventory.GameItem
;
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;
import
emu.grasscutter.GameConstants
;
import
emu.grasscutter.Grasscutter
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.
custom
.ScenePointEntry
;
import
emu.grasscutter.data.
def
.DungeonData
;
import
emu.grasscutter.data.
binout
.ScenePointEntry
;
import
emu.grasscutter.data.
excels
.DungeonData
;
import
emu.grasscutter.game.player.Player
;
import
emu.grasscutter.game.props.SceneType
;
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;
import
emu.grasscutter.GameConstants
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.
def
.AvatarData
;
import
emu.grasscutter.data.
def
.AvatarSkillDepotData
;
import
emu.grasscutter.data.
excels
.AvatarData
;
import
emu.grasscutter.data.
excels
.AvatarSkillDepotData
;
import
emu.grasscutter.game.avatar.Avatar
;
import
emu.grasscutter.game.inventory.EquipType
;
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;
import
java.util.List
;
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.EntityType
;
import
emu.grasscutter.game.props.PlayerProperty
;
...
...
src/main/java/emu/grasscutter/game/entity/EntityItem.java
View file @
a23b29b6
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.player.Player
;
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