From 71c2f729208cecb039e2bd753a50b55c2788f2d0 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Wed, 2 Jan 2019 01:46:34 +0100 Subject: Bounties? Somehow, Dialyzer does not see the type issues with src/bounty/bnt_join_battle.erl, but there are btl_character and rst_character mix-ups. --- src/special/spe_map.erl | 58 ------------------------------------------------- 1 file changed, 58 deletions(-) delete mode 100644 src/special/spe_map.erl (limited to 'src/special/spe_map.erl') diff --git a/src/special/spe_map.erl b/src/special/spe_map.erl deleted file mode 100644 index afb5647..0000000 --- a/src/special/spe_map.erl +++ /dev/null @@ -1,58 +0,0 @@ --module(spe_map). - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% TYPES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% EXPORTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% --export([grant_additional/1]). - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% LOCAL FUNCTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% EXPORTED FUNCTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% --spec grant_additional (ataxia_id:type()) -> map_map:type(). -grant_additional (OwnerID) -> - Map = map_map:default(OwnerID), - - {ok, MapID} = - ataxia_client:add - ( - map_db, - ataxia_security:allow_only(ataxia_security:any()), - ataxia_security:allow_only(ataxia_security:user_from_id(OwnerID)), - Map - ), - - MapSummary = shr_map_summary:new(MapID, <<"Untitled Map">>), - - PlayerUpdateQueryOp = - ataxic:update_value - ( - ataxic:update_field - ( - shr_player:get_map_summaries_field(), - ataxic:apply_function - ( - lists, - append, - [ataxic:constant([MapSummary]), ataxic:current_value()] - ) - ) - ), - - ok = - ataxia_client:update - ( - player_db, - ataxia_security:admin(), - PlayerUpdateQueryOp, - OwnerID - ), - - Map. -- cgit v1.2.3-70-g09d2