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("AthenaGlider:DefaultGlider", 1))
|
||||||
person.AthenaProfile.Items.AddItem(NewItem("AthenaDance:EID_DanceMoves", 1))
|
person.AthenaProfile.Items.AddItem(NewItem("AthenaDance:EID_DanceMoves", 1))
|
||||||
person.CommonCoreProfile.Items.AddItem(NewItem("Currency:MtxPurchased", 0))
|
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("mfa_reward_claimed", true))
|
||||||
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("rested_xp_overflow", 0))
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("rested_xp_overflow", 0))
|
||||||
|
|
|
@ -14,7 +14,7 @@ type Person struct {
|
||||||
AthenaProfile *Profile
|
AthenaProfile *Profile
|
||||||
CommonCoreProfile *Profile
|
CommonCoreProfile *Profile
|
||||||
CommonPublicProfile *Profile
|
CommonPublicProfile *Profile
|
||||||
Profile0 *Profile
|
Profile0Profile *Profile
|
||||||
}
|
}
|
||||||
|
|
||||||
type Option struct {
|
type Option struct {
|
||||||
|
@ -30,7 +30,7 @@ func NewPerson() *Person {
|
||||||
AthenaProfile: NewProfile("athena"),
|
AthenaProfile: NewProfile("athena"),
|
||||||
CommonCoreProfile: NewProfile("common_core"),
|
CommonCoreProfile: NewProfile("common_core"),
|
||||||
CommonPublicProfile: NewProfile("common_public"),
|
CommonPublicProfile: NewProfile("common_public"),
|
||||||
Profile0: NewProfile("profile0"),
|
Profile0Profile: NewProfile("profile0"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ func findHelper(databasePerson *storage.DB_Person) *Person {
|
||||||
AthenaProfile: athenaProfile,
|
AthenaProfile: athenaProfile,
|
||||||
CommonCoreProfile: commonCoreProfile,
|
CommonCoreProfile: commonCoreProfile,
|
||||||
CommonPublicProfile: commonPublicProfile,
|
CommonPublicProfile: commonPublicProfile,
|
||||||
Profile0: profile0,
|
Profile0Profile: profile0,
|
||||||
}
|
}
|
||||||
|
|
||||||
cache.Store(person.ID, &CacheEntry{
|
cache.Store(person.ID, &CacheEntry{
|
||||||
|
@ -148,7 +148,7 @@ func (p *Person) GetProfileFromType(profileType string) *Profile {
|
||||||
case "common_public":
|
case "common_public":
|
||||||
return p.CommonPublicProfile
|
return p.CommonPublicProfile
|
||||||
case "profile0":
|
case "profile0":
|
||||||
return p.Profile0
|
return p.Profile0Profile
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
@ -171,7 +171,7 @@ func (p *Person) ToDatabase() *storage.DB_Person {
|
||||||
"common_core": p.CommonCoreProfile,
|
"common_core": p.CommonCoreProfile,
|
||||||
"athena": p.AthenaProfile,
|
"athena": p.AthenaProfile,
|
||||||
"common_public": p.CommonPublicProfile,
|
"common_public": p.CommonPublicProfile,
|
||||||
"profile0": p.Profile0,
|
"profile0": p.Profile0Profile,
|
||||||
}
|
}
|
||||||
|
|
||||||
for profileType, profile := range profilesToConvert {
|
for profileType, profile := range profilesToConvert {
|
||||||
|
@ -231,5 +231,7 @@ func (p *Person) Snapshot() *PersonSnapshot {
|
||||||
DisplayName: p.DisplayName,
|
DisplayName: p.DisplayName,
|
||||||
AthenaProfile: *p.AthenaProfile.Snapshot(),
|
AthenaProfile: *p.AthenaProfile.Snapshot(),
|
||||||
CommonCoreProfile: *p.CommonCoreProfile.Snapshot(),
|
CommonCoreProfile: *p.CommonCoreProfile.Snapshot(),
|
||||||
|
CommonPublicProfile: *p.CommonPublicProfile.Snapshot(),
|
||||||
|
Profile0Profile: *p.Profile0Profile.Snapshot(),
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,10 +1,12 @@
|
||||||
package person
|
package person
|
||||||
|
|
||||||
type PersonSnapshot struct {
|
type PersonSnapshot struct {
|
||||||
ID string
|
ID string
|
||||||
DisplayName string
|
DisplayName string
|
||||||
AthenaProfile ProfileSnapshot
|
AthenaProfile ProfileSnapshot
|
||||||
CommonCoreProfile ProfileSnapshot
|
CommonCoreProfile ProfileSnapshot
|
||||||
|
CommonPublicProfile ProfileSnapshot
|
||||||
|
Profile0Profile ProfileSnapshot
|
||||||
}
|
}
|
||||||
|
|
||||||
type ProfileSnapshot struct {
|
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