xKiv
Active member
Here are a few things I noticed:
1) the familiar dropMatcher thing with trying one regex and if that fails trying another seems wasteful; I have the following regex there and it seems to work:
Note the \s* for any amount of whitespace and (\?: ) for a non-capturing group
2) the following switch ( myfam ) doesn't seem to have an option for blavious kloop (that should be info = "Folio: " + info
3) the script doesn't seem observe familiar weight cap (makes difference for hatrack and pantsrack); I have this at the end of the famWeight block:
1) the familiar dropMatcher thing with trying one regex and if that fails trying another seems wasteful; I have the following regex there and it seems to work:
Code:
matcher dropMatcher = create_matcher("<b\>Familiar:</b\>\s*(\?:<br\>)?\s*\\((.*?)\\)</font\>", source);
2) the following switch ( myfam ) doesn't seem to have an option for blavious kloop (that should be info = "Folio: " + info
3) the script doesn't seem observe familiar weight cap (makes difference for hatrack and pantsrack); I have this at the end of the famWeight block:
Code:
int fwcap = numeric_modifier("Familiar Weight Cap");
if (fwcap > 0 && fwcap < to_int(famweight)) {
famweight = to_string(fwcap);
}
famweight = famweight + " (" + to_string((familiar_weight(my_effective_familiar()))) + ")";