Edit: Found the issue! If anyone finds this 7 years from now and wants to know the solution here it is:
Originally I had been saving the table like this:
{
--pet 1
n1 = "alien",
r1 = "common",
c1 = 75,
--pet2
n2 = "dragon",
r2 = "unique",
c2 = 25,
}
But it turns out I had to store it this way
{
--pet 1
"alien",
"common",
75,
--pet2
"dragon",
"unique",
25,
}
simple problem simple fix, somehow took me half an hour to figure out.
