| summaryrefslogtreecommitdiff | 
diff options
| -rw-r--r-- | src/shared/struct/shr_player.erl | 41 | 
1 files changed, 32 insertions, 9 deletions
diff --git a/src/shared/struct/shr_player.erl b/src/shared/struct/shr_player.erl index 056afaa..eabca96 100644 --- a/src/shared/struct/shr_player.erl +++ b/src/shared/struct/shr_player.erl @@ -115,7 +115,7 @@ secure_value (Salt, Val) ->  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  -spec new (binary(), binary(), binary(), binary()) -> type().  new (ID, Username, Password, Email) -> -   NoInvasion = shr_battle_summary:none(), +   EmptyBattleSlot = shr_battle_summary:none(),     Result =        #player        { @@ -126,17 +126,40 @@ new (ID, Username, Password, Email) ->           email = Email,           last_active = 0,           maps = [], -         campaigns = [], +         campaigns = +            [ +               EmptyBattleSlot, +               EmptyBattleSlot, +               EmptyBattleSlot, + +               EmptyBattleSlot, +               EmptyBattleSlot, +               EmptyBattleSlot +            ],           invasions =              [ -               NoInvasion, -               NoInvasion, -               NoInvasion, -               NoInvasion, -               NoInvasion, -               NoInvasion +               EmptyBattleSlot, +               EmptyBattleSlot, +               EmptyBattleSlot, + +               EmptyBattleSlot, +               EmptyBattleSlot, +               EmptyBattleSlot, + +               EmptyBattleSlot, +               EmptyBattleSlot, +               EmptyBattleSlot +            ], +         events = +            [ +               EmptyBattleSlot, +               EmptyBattleSlot, +               EmptyBattleSlot, + +               EmptyBattleSlot, +               EmptyBattleSlot, +               EmptyBattleSlot              ], -         events = [],           inventory_id = <<"0">>,           roster_id = <<"0">>        },  | 


