RocketBot icon indicating copy to clipboard operation
RocketBot copied to clipboard

TransferType still don't work, wrong values in switchs

Open onomatopejaeselu opened this issue 10 years ago • 4 comments

Config:

Code: switch (ClientSettings.TransferType) { case "Leave Strongest": await TransferAllButStrongestUnwantedPokemon(client); break;

ClientSettings.TransferType need to be setted as "Leave Strongest" instead "leaveStrongest" and there is problem from setting this from GUI.

onomatopejaeselu avatar Jul 31 '16 10:07 onomatopejaeselu

thanks for the report, will fix in the next build

brianzhouzc avatar Jul 31 '16 10:07 brianzhouzc

how about multi evo/transfer like previous version? @1461748123

brad0pitt avatar Jul 31 '16 13:07 brad0pitt

@onomatopejaeselu I didn't see a problem in the code. Can you give more specific information to help me locate the bug?

brianzhouzc avatar Jul 31 '16 23:07 brianzhouzc

Config suggest to use fallowing transfer types

(App.config): none/cp/iv/leaveStrongest/duplicate/all Whitelists/blackslists

This setting is mapped to string in (Settings.cs) public string TransferType => GetSetting() != string.Empty ? GetSetting() : "none";

Then it is compared to values in switch-case in MainForm.cs at 324 and 489. Comparsions of strings is case sensitive and whitespaces sensitive so eg. "leaveStrongest" setting does not match case in code: "case "Leave Strongest":"

Also values setted by SettingsForm using whitespaces and capital letters does not match this two cases (in MainForm.cs at 324 and 489).

onomatopejaeselu avatar Aug 01 '16 05:08 onomatopejaeselu