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
100d08ec
Commit
100d08ec
authored
Nov 26, 2022
by
AnimeGitB
Browse files
Fix up pity tallies for new BannerTypes
Also fixes Beginner banner using Standard pity.
parent
83b84408
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/game/gacha/PlayerGachaInfo.java
View file @
100d08ec
...
@@ -4,37 +4,43 @@ import dev.morphia.annotations.Entity;
...
@@ -4,37 +4,43 @@ import dev.morphia.annotations.Entity;
@Entity
@Entity
public
class
PlayerGachaInfo
{
public
class
PlayerGachaInfo
{
private
PlayerGachaBannerInfo
standardBanner
;
private
PlayerGachaBannerInfo
standardBanner
;
private
PlayerGachaBannerInfo
eventCharacterBanner
;
private
PlayerGachaBannerInfo
beginnerBanner
;
private
PlayerGachaBannerInfo
eventWeaponBanner
;
private
PlayerGachaBannerInfo
eventCharacterBanner
;
private
PlayerGachaBannerInfo
eventWeaponBanner
;
public
PlayerGachaInfo
()
{
this
.
standardBanner
=
new
PlayerGachaBannerInfo
();
public
PlayerGachaInfo
()
{
this
.
eventCharacterBanner
=
new
PlayerGachaBannerInfo
();
this
.
standardBanner
=
new
PlayerGachaBannerInfo
();
this
.
eventWeaponBanner
=
new
PlayerGachaBannerInfo
();
this
.
eventCharacterBanner
=
new
PlayerGachaBannerInfo
();
}
this
.
eventWeaponBanner
=
new
PlayerGachaBannerInfo
();
}
public
PlayerGachaBannerInfo
getStandardBanner
()
{
return
standardBanner
;
public
PlayerGachaBannerInfo
getStandardBanner
()
{
}
if
(
this
.
standardBanner
==
null
)
this
.
standardBanner
=
new
PlayerGachaBannerInfo
();
return
this
.
standardBanner
;
public
PlayerGachaBannerInfo
getEventCharacterBanner
()
{
}
return
eventCharacterBanner
;
}
public
PlayerGachaBannerInfo
getBeginnerBanner
()
{
if
(
this
.
beginnerBanner
==
null
)
this
.
beginnerBanner
=
new
PlayerGachaBannerInfo
();
public
PlayerGachaBannerInfo
getEventWeaponBanner
()
{
return
this
.
beginnerBanner
;
return
eventWeaponBanner
;
}
}
public
PlayerGachaBannerInfo
getEventCharacterBanner
()
{
public
PlayerGachaBannerInfo
getBannerInfo
(
GachaBanner
banner
)
{
if
(
this
.
eventCharacterBanner
==
null
)
this
.
eventCharacterBanner
=
new
PlayerGachaBannerInfo
();
switch
(
banner
.
getBannerType
())
{
return
this
.
eventCharacterBanner
;
case
EVENT:
}
return
this
.
eventCharacterBanner
;
case
WEAPON:
public
PlayerGachaBannerInfo
getEventWeaponBanner
()
{
return
this
.
eventWeaponBanner
;
if
(
this
.
eventWeaponBanner
==
null
)
this
.
eventWeaponBanner
=
new
PlayerGachaBannerInfo
();
case
STANDARD:
return
this
.
eventWeaponBanner
;
default
:
}
return
this
.
standardBanner
;
}
public
PlayerGachaBannerInfo
getBannerInfo
(
GachaBanner
banner
)
{
}
return
switch
(
banner
.
getBannerType
())
{
case
STANDARD
->
this
.
getStandardBanner
();
case
BEGINNER
->
this
.
getBeginnerBanner
();
case
EVENT
,
CHARACTER
,
CHARACTER2
->
this
.
getEventCharacterBanner
();
case
WEAPON
->
this
.
getEventWeaponBanner
();
};
}
}
}
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