summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2018-12-03 18:59:49 +0100 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2018-12-03 18:59:49 +0100 |
commit | b9860582e2334213572d2100d2e047d0ad219702 (patch) | |
tree | 30d4756ff71af622f359c68bb2b7b37244d5ff4e /src | |
parent | ac2a82ce6bbaeccdb0081bc637a5cbb13272efd9 (diff) |
Working on "New Invasions"...
Diffstat (limited to 'src')
-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">> }, |