%%%--------------------------------------
%%% @Author  : zmh
%%% @Created : 20201020
%%% @Description: 魂力系统/铀能
%%%--------------------------------------

% -define(SQL_ROLE_URANIUM_GET, <<"SELECT `grade`,`lv`,`init_time`,`start_time`,`quick_time` FROM `role_uranium` where rid=~p">>).
-define(SQL_ROLE_URANIUM_GET, <<"SELECT `grade`,`lv`,`have_energy` FROM `role_uranium` where rid=~p">>).
% -define(SQL_ROLE_URANIUM_REPLACE,<<"replace into `role_uranium` (`rid`,`grade`,`lv`,`init_time`,`start_time`,`quick_time`) VALUES (~p,~p,~p,~p,~p,~p)">>).
-define(SQL_ROLE_URANIUM_REPLACE,<<"replace into `role_uranium` (`rid`,`grade`,`lv`,`have_energy`) VALUES (~p,~p,~p,~p)">>).

%%铀能
-record(role_uranium, {
	grade = 1,
	lv    = 0,
	power = 0,
	% init_time = 0,  %%初始时间
	% start_time = 0, %%时间头
	% quick_time = 0,
	have_energy = 0%当前等级已经拥有的能量
}).

-record(base_uranium_lv, {
	grade = 0,
	lv = 0,
	% need = 0,
	% total = 0,
	attrs = [],
	energy = 0
}).


-record(base_uranium_grade, {
	grade = 0,
	name  = "",
	skills = [],
	condition = []
}).

% -record(base_uranium_good,{
% 	goodtypeid_and_power = []
% 	% description
% }).