Fix Profile0 name; Start autoamtic daily storefront!
This commit is contained in:
parent
03f3220c3b
commit
d7213e03da
|
@ -14,6 +14,7 @@ func NewFortnitePerson(displayName string, key string) {
|
|||
person.AthenaProfile.Items.AddItem(NewItem("AthenaGlider:DefaultGlider", 1))
|
||||
person.AthenaProfile.Items.AddItem(NewItem("AthenaDance:EID_DanceMoves", 1))
|
||||
person.CommonCoreProfile.Items.AddItem(NewItem("Currency:MtxPurchased", 0))
|
||||
person.Profile0Profile.Items.AddItem(NewItem("Currency:MtxPurchased", 0)) // for season 2 and bellow
|
||||
|
||||
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("mfa_reward_claimed", true))
|
||||
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("rested_xp_overflow", 0))
|
||||
|
|
|
@ -14,7 +14,7 @@ type Person struct {
|
|||
AthenaProfile *Profile
|
||||
CommonCoreProfile *Profile
|
||||
CommonPublicProfile *Profile
|
||||
Profile0 *Profile
|
||||
Profile0Profile *Profile
|
||||
}
|
||||
|
||||
type Option struct {
|
||||
|
@ -30,7 +30,7 @@ func NewPerson() *Person {
|
|||
AthenaProfile: NewProfile("athena"),
|
||||
CommonCoreProfile: NewProfile("common_core"),
|
||||
CommonPublicProfile: NewProfile("common_public"),
|
||||
Profile0: NewProfile("profile0"),
|
||||
Profile0Profile: NewProfile("profile0"),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -105,7 +105,7 @@ func findHelper(databasePerson *storage.DB_Person) *Person {
|
|||
AthenaProfile: athenaProfile,
|
||||
CommonCoreProfile: commonCoreProfile,
|
||||
CommonPublicProfile: commonPublicProfile,
|
||||
Profile0: profile0,
|
||||
Profile0Profile: profile0,
|
||||
}
|
||||
|
||||
cache.Store(person.ID, &CacheEntry{
|
||||
|
@ -148,7 +148,7 @@ func (p *Person) GetProfileFromType(profileType string) *Profile {
|
|||
case "common_public":
|
||||
return p.CommonPublicProfile
|
||||
case "profile0":
|
||||
return p.Profile0
|
||||
return p.Profile0Profile
|
||||
}
|
||||
|
||||
return nil
|
||||
|
@ -171,7 +171,7 @@ func (p *Person) ToDatabase() *storage.DB_Person {
|
|||
"common_core": p.CommonCoreProfile,
|
||||
"athena": p.AthenaProfile,
|
||||
"common_public": p.CommonPublicProfile,
|
||||
"profile0": p.Profile0,
|
||||
"profile0": p.Profile0Profile,
|
||||
}
|
||||
|
||||
for profileType, profile := range profilesToConvert {
|
||||
|
@ -231,5 +231,7 @@ func (p *Person) Snapshot() *PersonSnapshot {
|
|||
DisplayName: p.DisplayName,
|
||||
AthenaProfile: *p.AthenaProfile.Snapshot(),
|
||||
CommonCoreProfile: *p.CommonCoreProfile.Snapshot(),
|
||||
CommonPublicProfile: *p.CommonPublicProfile.Snapshot(),
|
||||
Profile0Profile: *p.Profile0Profile.Snapshot(),
|
||||
}
|
||||
}
|
|
@ -5,6 +5,8 @@ type PersonSnapshot struct {
|
|||
DisplayName string
|
||||
AthenaProfile ProfileSnapshot
|
||||
CommonCoreProfile ProfileSnapshot
|
||||
CommonPublicProfile ProfileSnapshot
|
||||
Profile0Profile ProfileSnapshot
|
||||
}
|
||||
|
||||
type ProfileSnapshot struct {
|
||||
|
|
3
store/store.go
Normal file
3
store/store.go
Normal file
|
@ -0,0 +1,3 @@
|
|||
package store
|
||||
|
||||
type Storefront interface{}
|
Loading…
Reference in New Issue
Block a user