some changes to stats wrapper

This commit is contained in:
Absurdon 2023-03-10 15:03:51 +00:00
parent 55d5da71aa
commit e2fa5bf313
1 changed files with 2 additions and 5 deletions

View File

@ -7,13 +7,10 @@ import { stat } from "fs";
const StatAttributes = {
level: (stats, apiValue) => { stats['level'] = 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_offset: (stats, apiValue) => { stats['skill_offset'] = apiValue },
comm_skill: (stats, apiValue) => { stats['comm_skill'] = apiValue },
td_total_time_player: (stats, apiValue) => { stats['player_time'] = apiValue },
td_total_time_commander: (stats, apiValue) => { stats['commander_time'] = apiValue },
comm_skill_offset: (stats, apiValue) => { stats['comm_offset'] = apiValue },
};
const NoopSetter = (_stats, _apiValue) => { };