MadCoder253 / GCA5Roll20Exporter

GCA5 Plugin for Exporting to Roll20
MIT License
0 stars 1 forks source link

Update ConvertToRoll20Character.cs #2

Closed ArminSykes closed 2 years ago

ArminSykes commented 2 years ago

It seems that .Net Framework 4 really hates the way you were using type.TryParse(). I have no idea why, since I checked the docs and you seem to do what it says there. Anyway, I simplified to do something like this:

int campaignTl;
bool result = int.TryParse(currentCharacter.Campaign.BaseTL, out campaignTl);
if (result)

and that seemed to make the Error List and the compiler happy, so I did that in a bunch more places.

MadCoder253 commented 2 years ago

Thanks! Probably because I have a new version of C#.