mirror of https://github.com/ENSL/ensl_gathers.git
some changes to stats wrapper
This commit is contained in:
parent
55d5da71aa
commit
e2fa5bf313
|
@ -7,13 +7,10 @@ import { stat } from "fs";
|
||||||
const StatAttributes = {
|
const StatAttributes = {
|
||||||
level: (stats, apiValue) => { stats['level'] = apiValue },
|
level: (stats, apiValue) => { stats['level'] = apiValue },
|
||||||
score: (stats, apiValue) => { stats['score'] = apiValue },
|
score: (stats, apiValue) => { stats['score'] = apiValue },
|
||||||
skill: (stats, apiValue) => { stats['score'] = apiValue },
|
|
||||||
td_rounds_won_player: (stats, apiValue) => { stats['player_wins'] = apiValue },
|
|
||||||
td_rounds_won_commander: (stats, apiValue) => { stats['comm_wins'] = apiValue },
|
|
||||||
skill: (stats, apiValue) => { stats['skill'] = apiValue },
|
skill: (stats, apiValue) => { stats['skill'] = apiValue },
|
||||||
|
skill_offset: (stats, apiValue) => { stats['skill_offset'] = apiValue },
|
||||||
comm_skill: (stats, apiValue) => { stats['comm_skill'] = apiValue },
|
comm_skill: (stats, apiValue) => { stats['comm_skill'] = apiValue },
|
||||||
td_total_time_player: (stats, apiValue) => { stats['player_time'] = apiValue },
|
comm_skill_offset: (stats, apiValue) => { stats['comm_offset'] = apiValue },
|
||||||
td_total_time_commander: (stats, apiValue) => { stats['commander_time'] = apiValue },
|
|
||||||
};
|
};
|
||||||
const NoopSetter = (_stats, _apiValue) => { };
|
const NoopSetter = (_stats, _apiValue) => { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue