79 lines
4.7 KiB
Go
79 lines
4.7 KiB
Go
|
package person
|
||
|
|
||
|
import "github.com/ectrc/snow/aid"
|
||
|
|
||
|
func NewFortnitePerson(displayName string, key string) {
|
||
|
person := NewPerson()
|
||
|
person.DisplayName = displayName
|
||
|
person.AccessKey = key
|
||
|
|
||
|
character := NewItem("AthenaCharacter:CID_001_Athena_Commando_F_Default", 1)
|
||
|
pickaxe := NewItem("AthenaPickaxe:DefaultPickaxe", 1)
|
||
|
glider := NewItem("AthenaGlider:DefaultGlider", 1)
|
||
|
default_dance := NewItem("AthenaDance:EID_DanceMoves", 1)
|
||
|
|
||
|
person.AthenaProfile.Items.AddItem(character)
|
||
|
person.AthenaProfile.Items.AddItem(pickaxe)
|
||
|
person.AthenaProfile.Items.AddItem(glider)
|
||
|
person.AthenaProfile.Items.AddItem(default_dance)
|
||
|
person.CommonCoreProfile.Items.AddItem(NewItem("Currency:MtxPurchased", 0))
|
||
|
|
||
|
person.Loadout.Character = character.ID
|
||
|
person.Loadout.Pickaxe = pickaxe.ID
|
||
|
person.Loadout.Glider = glider.ID
|
||
|
person.Loadout.Dances[0] = default_dance.ID
|
||
|
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("mfa_reward_claimed", true))
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("rested_xp_overflow", 0))
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("lifetime_wins", 0))
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("party_assist_quest", ""))
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("quest_manager", aid.JSON{}))
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("inventory_limit_bonus", 0))
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("daily_rewards", []aid.JSON{}))
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("competitive_identity", aid.JSON{}))
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("season_update", 0))
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("season_num", 2))
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("permissions", []aid.JSON{}))
|
||
|
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("loadouts", []aid.JSON{}))
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("last_applied_loadout", ""))
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("active_loadout_index", 0))
|
||
|
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("accountLevel", 1))
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("level", 1))
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("xp", 0))
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("xp_overflow", 0))
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("rested_xp", 0))
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("rested_xp_mult", 0))
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("rested_xp_exchange", 0))
|
||
|
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("book_purchased", false))
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("book_level", 1))
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("book_xp", 0))
|
||
|
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("favorite_character", person.Loadout.Character))
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("favorite_backpack", person.Loadout.Backpack))
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("favorite_pickaxe", person.Loadout.Pickaxe))
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("favorite_glider", person.Loadout.Glider))
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("favorite_skydivecontrail", person.Loadout.SkyDiveContrail))
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("favorite_dance", person.Loadout.Dances))
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("favorite_itemwraps", person.Loadout.ItemWraps))
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("favorite_loadingscreen", person.Loadout.LoadingScreen))
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("favorite_musicpack", person.Loadout.MusicPack))
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("banner_icon", person.Loadout.BannerIcon))
|
||
|
person.AthenaProfile.Attributes.AddAttribute(NewAttribute("banner_color", person.Loadout.BannerColor))
|
||
|
|
||
|
person.CommonCoreProfile.Attributes.AddAttribute(NewAttribute("mfa_enabled", true))
|
||
|
person.CommonCoreProfile.Attributes.AddAttribute(NewAttribute("mtx_affiliate", ""))
|
||
|
person.CommonCoreProfile.Attributes.AddAttribute(NewAttribute("mtx_purchase_history", aid.JSON{
|
||
|
"refundsUsed": 0,
|
||
|
"refundCredits": 3,
|
||
|
"purchases": []any{},
|
||
|
}))
|
||
|
person.CommonCoreProfile.Attributes.AddAttribute(NewAttribute("current_mtx_platform", "EpicPC"))
|
||
|
person.CommonCoreProfile.Attributes.AddAttribute(NewAttribute("allowed_to_receive_gifts", true))
|
||
|
person.CommonCoreProfile.Attributes.AddAttribute(NewAttribute("allowed_to_send_gifts", true))
|
||
|
person.CommonCoreProfile.Attributes.AddAttribute(NewAttribute("gift_history", aid.JSON{}))
|
||
|
|
||
|
person.Save()
|
||
|
}
|