+ mytype = POTION;
+
+ // Grab the item's id
+ temp = strtok(NULL, "~");
+ id = stringtoint(temp);
+
+ // Grab the item's name
+ temp = strtok(NULL, "~");
+ myname = temp;
+
+ // Grab the item's price
+ temp = strtok(NULL, "~");
+ myprice = stringtoint(temp);
+
+ // Grab the item's uses
+ temp = strtok(NULL, "~");
+ myuses = stringtoint(temp);
+
+ // Grab the item's modifiers
+ for (int x = 0; x < 8; x++)
+ {
+ temp = strtok(NULL, "~");
+ myranges[x].low = stringtoint(temp);
+ temp = strtok(NULL, "~");
+ myranges[x].high = stringtoint(temp);
+ }
+ }
+ catch(char *str)