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
fcb48943
Commit
fcb48943
authored
Apr 29, 2022
by
Kengxxiao
Committed by
Melledy
Apr 28, 2022
Browse files
fix shop config issue
parent
275fcc7d
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/game/shop/ShopInfo.java
View file @
fcb48943
...
...
@@ -23,6 +23,8 @@ public class ShopInfo {
private
int
disableType
=
0
;
private
int
secondarySheetId
=
0
;
private
String
refreshType
;
public
enum
ShopRefreshType
{
NONE
(
0
),
SHOP_REFRESH_DAILY
(
1
),
...
...
@@ -179,9 +181,14 @@ public class ShopInfo {
}
public
ShopRefreshType
getShopRefreshType
()
{
if
(
shopR
efreshType
==
null
)
if
(
r
efreshType
==
null
)
return
ShopRefreshType
.
NONE
;
return
shopRefreshType
;
return
switch
(
refreshType
)
{
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
;
default
->
ShopInfo
.
ShopRefreshType
.
NONE
;
};
}
public
void
setShopRefreshType
(
ShopRefreshType
shopRefreshType
)
{
...
...
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