Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Note: THIS IS PSEUDOCODE, it is meant to give those with programming knowledge a quickly glance-worthy
- // way to review the information in the object file. It is NOT meant to be compiled. It won't harm your
- // system if you try, but it won't work, either.
- int itemIndex; // this is the "key" value in the Dictionary<int,string>
- string itemType = Regex.Replace(values[3],"/\-[0-9]+$/","");
- string flag = Regex.Match(values[3],"/\-[0-9]+$/").ToString();
- string flagType = "";
- string[] headers = new string[7];
- switch (itemType) {
- case "Arch" : {
- headers = new [] { "Name", "Sell Price", "-300", "Item Type", "Description", "Drop rates", "Dwarf Location / Item Pointer" };
- // no flags
- break;
- }
- case "Seeds":
- case "Quest":
- case "Minerals":
- case "asdf": {
- headers = new [] { "Name", "Sell Price", "-300", "Item Type", "Description", "", "", "" };
- if (itemType == "asdf") {
- switch (values[0]) {
- case "Lost Book": { headers[5] = "Drop Rates"; break; }
- case "Artifact Spot": { headers[5] = "Item Pointer"; headers[6] = "Drop Rates"; }
- }
- }
- // asdf: No flags
- // Minerals: -2: Gems, -12: (assumption) Stones
- // Quest: No flags
- // Seeds: Everything is -74, and using the assumption for Crafting below, I'd say it's to signify that it can be planted.
- }
- case "Basic": {
- headers = new [] { "Name", "Sell Price", "Buff on consume", "Item Type", "Description", "drink/item list (geodes)/treasure chest requirements", "Stat modifiers", "Buff duration" };
- switch (flag) {
- case "-5": { flagType = "Egg"; break; }
- case "-6": { flagType = "Milk"; break; }
- case "-18": { flagType = "Animal product"; break; }
- case "-75": { flagType = "Vegetables"; break; }
- case "-79": { flagType = "Fruit"; break; }
- case "-80": { flagType = "Flower"; break; }
- case "": { flagType = "None"; break; }
- default: { flagType = "Currently unknown"; break; }
- }
- break;
- }
- case "Cooking": {
- headers = new [] { "Name", "Sell Price", "Buff Indicator", "Item Type", "Description", "Food", "Stat modifiers", "Buff Duration" };
- // all Cooking type items have a flag of -7, this is where I think the 2nd index holds more than just whether or not it gives a buff...
- // the number at this index for the cooking stuff ranges from 20 to 105, so if it only indicates whether or not the food gives a buff
- // (a boolean value), then why not use -1 and 1, or 0 and 1, etc? There's more to this number than I'm currently aware of. That's why
- // I call it an "indicator" here instead of "Buff on consume".
- break;
- }
- case "Crafting": {
- headers = new [] { "Name", "Sell Price", "Buff Indicator", "Item Type", "Description", "drink", "Stat Modifiers", "Buff Duration" };
- // various flags, all of which I know nothing about from source.. making assumptions, these are my best guess:
- // -24: flooring, -74: plantables, -8: all ideas I quickly come up with are negated by other items not having this flag
- break;
- }
- case "Fish": {
- headers = new [] { "Name", "Sell Price", "Buff Indicator", "Item Type", "Description", "Fish requirements (day/night/etc)", "Stat modifiers", "Buff Duration" };
- // Only Joja Cola gives a buff, and the modifiers and duration are all zeroed out, which means it's not really a buff..
- // flags: -4 = "flopping", -20 = (assumption) "trash"
- break;
- }
- case "Ring": {
- header = new [] { "Name", "Description", "Price", "Ring" };
- // No flags
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement