Farrier

Palworld Crafting Calculator

Mar 19th, 2024
1,188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 29.24 KB | Source Code | 0 0
  1. <?php
  2. $buildables = [
  3.  
  4. "Alarm Bell" => ["Paldium Fragment" => 5, "Stone" => 20],
  5. "Amusement Furniture Set" => ["Polymer" => 1],
  6. "Antique Bath Set" => ["Cloth" => 1, "Ingot" => 1, "Stone" => 20],
  7. "Antique Chair Set" => ["Wood" => 10],
  8. "Antique Couch Set" => ["Cloth" => 2, "Flame Organ" => 1, "Wood" => 10],
  9. "Antique Desk Set" => ["Fiber" => 5, "Stone" => 5, "Wood" => 25],
  10. "Antique High Quality Furniture Set" =>  ["Cloth" => 3, "Ingot" => 1, "Wood" => 10],
  11. "Antique Lamp Set" => ["Electric Organ" => 3, "Nail" => 3, "Wood" => 30],
  12. "Antique Mirror Set" => ["Paldium Fragment" => 2, "Stone" => 10, "Wood" => 10],
  13. "Antique Storage Cabinet Set" => ["Fiber" => 10, "Wood" => 30],
  14. "Antique Storage Set" => ["Nail" => 2, "Wood" => 40],
  15. "Aquadon Terra Saddle" => ["Ingot" => 6, "Leather" => 6, "Paldium Fragment" => 12],
  16. "Arrow" => ["Stone" => 1, "Wood" => 1],
  17. "Arsox Saddle" => ["Fiber" => 25, "Flame Organ" => 10, "Leather" => 15, "Paldium Fragment" => 15],
  18. "Assault Rifle Ammo" => ["Gunpowder" => 2, "Refined Ingot" => 1],
  19. "Assault Rifle" => ["Carbon Fiber" => 30, "Polymer" => 10, "Refined Ingot" => 40],
  20. "Astegon Saddle" => ["Ingot" => 50, "Leather" => 30, "Paldium Fragment" => 55, "Refined Ingot" => 50],
  21. "Average Feed Bag" => ["Fiber" => 30, "Leather" => 10, "Wood" => 10],
  22. "Azurobe Saddle" => ["Cloth" => 10, "Fiber" => 30, "Leather" => 25, "Pal Fluid" => 10, "Paldium Fragment" => 25],
  23. "Barricade Set" => ["Ingot" => 5],
  24. "Bat" => ["Stone" => 10, "Wood" => 30],
  25. "Bathroom Set" => ["Ingot" => 2, "Stone" => 20, "Wood" => 5],
  26. "Beakon Saddle" => ["Cloth" => 10, "Electric Organ" => 20, "Ingot" => 20, "Leather" => 20, "Paldium Fragment" => 25],
  27. "Bear Trap (Large)" => ["Ingot" => 20],
  28. "Bear Trap (Small)" => ["Ingot" => 5],
  29. "Berry Plantation" => ["Berry Seed" => 3, "Stone" => 20, "Wood" => 20],
  30. "Blazamut Saddle" => ["Ingot" => 20, "Leather" => 30, "Paldium Fragment" => 40, "Refined Ingot" => 30],
  31. "Blazehowl Noct Saddle" => ["Fiber" => 60, "Flame Organ" => 24, "Ingot" => 36, "Leather" => 36, "Paldium Fragment" => 36],
  32. "Blazehowl Saddle" => ["Fiber" => 50, "Flame Organ" => 20, "Ingot" => 30, "Leather" => 30, "Paldium Fragment" => 30],
  33. "Bowler Hat" => ["Cloth" => 15],
  34. "Breeding Farm" => ["Fiber" => 20, "Stone" => 20, "Wood" => 100],
  35. "Broncherry Saddle" => ["Fiber" => 30, "Ingot" => 15, "Leather" => 20, "Paldium Fragment" => 20],
  36. "Campfire" => ["Wood" => 10],
  37. "Carbon Fiber (alt)" => ["Charcoal" => 5],
  38. "Carbon Fiber" => ["Coal" => 2],
  39. "Carpet Set" => ["Cloth" => 3, "Venom Gland" => 1],
  40. "Ceiling Lamp" => ["Electric Organ" => 3, "Ingot" => 20, "Nail" => 3],
  41. "Celaray’s Gloves" => ["Cloth" => 5, "Pal Fluid" => 3, "Paldium Fragment" => 10],
  42. "Cement" => ["Bone" => 1, "Pal Fluid" => 1, "Stone" => 50],
  43. "Chillet Saddle" => ["Cloth" => 5, "Fiber" => 20, "Leather" => 10, "Paldium Fragment" => 20],
  44. "Circuit Board" => ["Polymer" => 2, "Pure Quartz" => 4],
  45. "Clock Set" => ["Ingot" => 5, "Paldium Fragment" => 2],
  46. "Cloth Outfit" => ["Cloth" => 2],
  47. "Cloth" => ["Wool" => 2],
  48. "Coarse Ammo" => ["Gunpowder" => 1, "Ingot" => 1],
  49. "Cold Resistant Armor" => ["Ice Organ" => 4, "Leather" => 15],
  50. "Cold Resistant Metal Armor" => ["Cloth" => 8, "Ice Organ" => 8, "Ingot" => 40, "Leather" => 13],
  51. "Cold Resistant Pal Metal Armor" => ["High Quality Cloth" => 6, "Ice Organ" => 16, "Leather" => 30, "Pal Metal Ingot" => 30],
  52. "Cold Resistant Pelt Armor" => ["Ice Organ" => 4, "Leather" => 15],
  53. "Cold Resistant Refined Metal Armor" => ["High Quality Cloth" => 3, "Ice Organ" => 12, "Leather" => 20, "Refined Ingot" => 40],
  54. "Common Shield" => ["Fiber" => 10, "Paldium Fragment" => 10, "Stone" => 20, "Wood" => 20],
  55. "Cooking Pot" => ["Flame Organ" => 5, "Ingot" => 15, "Wood" => 20],
  56. "Cooler Box" => ["Ice Organ" => 5, "Ingot" => 20, "Stone" => 20],
  57. "Cooler" => ["Ice Organ" => 5, "Ingot" => 20, "Stone" => 20],
  58. "Crossbow" => ["Ingot" => 10, "Nail" => 5, "Stone" => 40, "Wood" => 50],
  59. "Crusher" => ["Paldium Fragment" => 10, "Stone" => 20, "Wood" => 50],
  60. "Daedream’s Necklace" => ["Fiber" => 10, "Leather" => 5, "Paldium Fragment" => 10],
  61. "Dazzi’s Necklace" => ["Fiber" => 15, "Ingot" => 10, "Leather" => 15, "Paldium Fragment" => 20],
  62. "Decal Gun Set" => ["Ancient Civilization Part" => 3, "Ingot" => 30, "Paldium Fragment" => 15, "Polymer" => 10],
  63. "Decal Ink" => ["High Quality Pal Oil" => 1, "Pal Fluid" => 1],
  64. "Defensive Wall" => ["Cement" => 1, "Stone" => 10],
  65. "Digtoise’s Headband" => ["Fiber" => 30, "Ingot" => 10, "Leather" => 20, "Paldium Fragment" => 20, "Stone" => 50],
  66. "Dinossom Lux Saddle" => ["Fiber" => 36, "Ingot" => 12, "Leather" => 18, "Paldium Fragment" => 23],
  67. "Dinossom Saddle" => ["Fiber" => 30, "Ingot" => 10, "Leather" => 15, "Paldium Fragment" => 20],
  68. "Direhowl’s Saddled Harness" => ["Fiber" => 15, "Leather" => 10, "Paldium Fragment" => 10, "Wood" => 20],
  69. "Double-barreled Shotgun" => ["Polymer" => 7, "Refined Ingot" => 30],
  70. "Egg Incubator" => ["Ancient Civilization Part" => 2, "Cloth" => 5, "Paldium Fragment" => 10, "Stone" => 30],
  71. "Eikthyrdeer Saddle" => ["Fiber" => 20, "Horn" => 3, "Ingot" => 10, "Leather" => 5, "Paldium Fragment" => 15],
  72. "Eikthyrdeer Terra Saddle" => ["Fiber" => 24, "Horn" => 3, "Ingot" => 12, "Leather" => 6, "Paldium Fragment" => 18],
  73. "Electric Cooler" => ["Circuit Board" => 10, "Ice Organ" => 10, "Ingot" => 30, "Refined Ingot" => 30],
  74. "Electric Furnace" => ["Carbon Fiber" => 20, "Circuit Board" => 10, "Polymer" => 20, "Refined Ingot" => 40],
  75. "Electric Heater" => ["Circuit Board" => 10, "Flame Organ" => 10, "Ingot" => 30, "Refined Ingot" => 30],
  76. "Electric Kitchen" => ["Charcoal" => 20, "Circuit Board" => 5, "Flame Organ" => 5, "Refined Ingot" => 30],
  77. "Electric Medicine Workbench" => ["Carbon Fiber" => 20, "Circuit Board" => 10, "Refined Ingot" => 40],
  78. "Electric Mine" => ["Electric Organ" => 2, "Ingot" => 5],
  79. "Electric Pylon" => ["Circuit Board" => 20, "Electric Organ" => 30, "Ingot" => 100],
  80. "Elphidran Saddle" => ["Fiber" => 20, "Ingot" => 15, "Leather" => 20, "Paldium Fragment" => 20],
  81. "Emergency Exit Sign" => ["Electric Organ" => 1, "Polymer" => 1],
  82. "Explorer Cap" => ["Cloth" => 10, "Ingot" => 2, "Leather" => 3],
  83. "Faleris Saddle" => ["Cloth" => 10, "Flame Organ" => 25, "Leather" => 30, "Paldium Fragment" => 30, "Refined Ingot" => 30],
  84. "Farming Hat" => ["Fiber" => 30, "Wood" => 10],
  85. "Feathered Hair Band" => ["Fiber" => 10, "Paldium Fragment" => 5],
  86. "Feed Box" => ["Wood" => 20],
  87. "Fenglope Saddle" => ["Cloth" => 20, "Fiber" => 30, "Ingot" => 20, "Leather" => 30, "Paldium Fragment" => 40],
  88. "Fine Bed" => ["Cloth" => 10, "Fiber" => 20, "Nail" => 10, "Wood" => 50],
  89. "Fire Arrow Crossbow" => ["Flame Organ" => 5, "Ingot" => 15, "Nail" => 5, "Stone" => 50, "Wood" => 50],
  90. "Fire Arrow" => ["Flame Organ" => 1, "Stone" => 3, "Wood" => 3],
  91. "Fire Bow" => ["Fiber" => 20, "Flame Organ" => 2, "Stone" => 8, "Wood" => 40],
  92. "Fireplace Set" => ["Charcoal" => 5, "Stone" => 15, "Wood" => 30],
  93. "Flame Cauldron" => ["Flame Organ" => 20, "Ingot" => 50, "Wood" => 100],
  94. "Flopie’s Necklace" => ["Fiber" => 20, "Ingot" => 5, "Leather" => 10, "Paldium Fragment" => 15],
  95. "Flower Bed" => ["Beautiful Flower" => 20, "Cement" => 40, "Stone" => 100, "Wood" => 50],
  96. "Fluffy Pal Bed" => ["Cloth" => 10, "Fiber" => 10, "Nail" => 5, "Wood" => 30],
  97. "Foxparks’s Harness" => ["Flame Organ" => 5, "Leather" => 3, "Paldium Fragment" => 5],
  98. "Frag Grenade" => ["Fiber" => 10, "Gunpowder" => 1, "Stone" => 10],
  99. "Frostallion Noct Saddle" => ["Leather" => 120, "Paldium Fragment" => 90, "Refined Ingot" => 240, "Venom Gland" => 60],
  100. "Frostallion Saddle" => ["Ice Organ" => 50, "Leather" => 100, "Paldium Fragment" => 75, "Refined Ingot" => 200],
  101. "Galeclaw’s Gloves" => ["Cloth" => 20, "Fiber" => 30, "Leather" => 20, "Paldium Fragment" => 30],
  102. "Giant Feed Bag" => ["Carbon Fiber" => 20, "Fiber" => 200, "Leather" => 50, "Wood" => 50],
  103. "Giga Glider" => ["Carbon Fiber" => 20, "High Quality Cloth" => 10, "Refined Ingot" => 20, "Wood" => 100],
  104. "Giga Grappling Gun" => ["Ancient Civilization Part" => 8, "Fiber" => 80, "Ingot" => 30, "Paldium Fragment" => 30],
  105. "Giga Shield" => ["Ancient Civilization Part" => 15, "Paldium Fragment" => 50],
  106. "Giga Sphere" => ["Ingot" => 2, "Paldium Fragment" => 2, "Stone" => 7, "Wood" => 7],
  107. "Golden Crown" => ["Ingot" => 25],
  108. "Graduation Cap" => ["Cloth" => 20, "Fiber" => 10],
  109. "Grappling Gun" => ["Ancient Civilization Part" => 1, "Fiber" => 30, "Ingot" => 10, "Paldium Fragment" => 10],
  110. "Grinning Tocotoco Cap" => ["Tocotoco Feather" => 5],
  111. "Grintail Saddle" => ["Leather" => 10, "Paldium Fragment" => 10],
  112. "Grizzbolt’s Minigun" => ["High Quality Pal Oil" => 10, "Paldium Fragment" => 75, "Polymer" => 20, "Refined Ingot" => 50],
  113. "Gumoss Cap" => ["Gumoss Leaf" => 5],
  114. "Gunpowder" => ["Charcoal" => 2, "Sulfur" => 1],
  115. "Handgun Ammo" => ["Gunpowder" => 1, "Ingot" => 1],
  116. "Handgun" => ["High Quality Pal Oil" => 15, "Ingot" => 50],
  117. "Hand-held Torch" => ["Stone" => 2, "Wood" => 2],
  118. "Hanging Trap" => ["Stone" => 5, "Wood" => 10],
  119. "Hangyu Cryst’s Gloves" => ["Cloth" => 6, "Fiber" => 12, "Ingot" => 3, "Leather" => 3, "Paldium Fragment" => 12],
  120. "Hangyu’s Gloves" => ["Cloth" => 5, "Fiber" => 10, "Ingot" => 3, "Leather" => 3, "Paldium Fragment" => 10],
  121. "Heat Resistant Metal Armor" => ["Cloth" => 8, "Flame Organ" => 8, "Ingot" => 40, "Leather" => 13],
  122. "Heat Resistant Pal Metal Armor" => ["Flame Organ" => 16, "High Quality Cloth" => 6, "Leather" => 30, "Pal Metal Ingot" => 30],
  123. "Heat Resistant Pelt Armor" => ["Flame Organ" => 4, "Leather" => 15],
  124. "Heat Resistant Refined Metal Armor" => ["Flame Organ" => 12, "High Quality Cloth" => 3, "Leather" => 20, "Refined Ingot" => 40],
  125. "Heater" => ["Charcoal" => 10, "Flame Organ" => 5, "Ingot" => 20],
  126. "Helmet" => ["Ingot" => 20, "Wool" => 5],
  127. "Helzephyr Saddle" => ["Cloth" => 10, "Electric Organ" => 20, "Leather" => 30, "Paldium Fragment" => 30, "Refined Ingot" => 30],
  128. "High Grade Medical Supplies" => ["Bone" => 2, "Horn" => 5, "Ingot" => 5],
  129. "High Quality Cloth" => ["Wool" => 10],
  130. "High Quality Hot Spring" => ["Cement" => 20, "Paldium Fragment" => 30, "Stone" => 100, "Wood" => 100],
  131. "High Quality Workbench" => ["Ingots " => 15, "Nail" => 10, "Wood" => 50],
  132. "Hip Lantern" => ["Ancient Civilization Part" => 10, "Flame Organ" => 10, "Ingot" => 20, "Wood" => 10],
  133. "Homing Sphere Launcher" => ["Ancient Civilization Part" => 20, "Carbon Fiber" => 50, "Pal Metal Ingot" => 100, "Paldium Fragment" => 200, "Polymer" => 50],
  134. "Hot Spring" => ["Paldium Fragment" => 10, "Stone" => 15, "Wood" => 30],
  135. "Houseplant Set" => ["Fiber" => 5, "Wood" => 10],
  136. "Huge Feed Bag" => ["Carbon Fiber" => 10, "Fiber" => 90, "Leather" => 35, "Wood" => 30],
  137. "Hyper Grappling Gun" => ["Ancient Civilization Part" => 15, "Carbon Fiber" => 20, "Paldium Fragment" => 40, "Polymer" => 20, "Refined Ingot" => 30],
  138. "Hyper Shield" => ["Ancient Civilization Part" => 30, "Paldium Fragment" => 100],
  139. "Hyper Sphere" => ["Cement" => 2, "Ingot" => 3, "Paldium Fragment" => 3, "Wood" => 10],
  140. "Ice Grenade" => ["Fiber" => 10, "Ice Organ" => 1, "Stone" => 10],
  141. "Ice Kingpaca Saddle" => ["Fiber" => 24, "Ingot" => 18, "Leather" => 24, "Paldium Fragment" => 24, "Wool" => 36],
  142. "Ice Mine" => ["Ice Organ" => 2, "Ingot" => 5],
  143. "Ice Reptyro Saddle" => ["Ice Organ" => 24, "Ingot" => 24, "Leather" => 24, "Paldium Fragment" => 24],
  144. "Improved Furnace" => ["Cement" => 30, "Flame Organ" => 15, "Stone" => 100],
  145. "Incendiary Grenade" => ["Fiber" => 10, "Flame Organ" => 1, "Stone" => 10],
  146. "Iron Gate" => ["Cement" => 1, "Ingot" => 10],
  147. "Ironwood Table Set" => ["Ingot" => 2, "Wood" => 10],
  148. "Jetragon’s Missile Launcher" => ["Circuit Board" => 50, "Leather" => 100, "Paldium Fragment" => 140, "Refined Ingot" => 200],
  149. "Jolthog Cryst’s Gloves" => ["Cloth" => 6, "Ice Organ" => 6, "Paldium Fragment" => 6],
  150. "Jolthog’s Gloves" => ["Cloth" => 5, "Electric Organ" => 5, "Paldium Fragment" => 5],
  151. "Jormuntide Ignis Saddle" => ["Fiber" => 60, "Flame Organ" => 24, "Ingot" => 60, "Leather" => 36, "Paldium Fragment" => 48],
  152. "Jormuntide Saddle" => ["Fiber" => 50, "Ingot" => 50, "Leather" => 30, "Pal Fluid" => 20, "Paldium Fragment" => 40],
  153. "Katress Cap" => ["Katress Hair" => 5],
  154. "Killamari’s Gloves" => ["Cloth" => 5, "Paldium Fragment" => 10, "Venom Gland" => 5],
  155. "Kingpaca Saddle" => ["Fiber" => 20, "Ingot" => 15, "Leather" => 20, "Paldium Fragment" => 20, "Wool" => 30],
  156. "Kitsun Saddle" => ["Cloth" => 10, "Flame Organ" => 15, "Leather" => 24, "Paldium Fragment" => 20],
  157. "Lamp" => ["Electric Organ" => 3, "Ingot" => 10, "Nail" => 3, "Wood" => 20],
  158. "Large Ceiling Lamp" => ["Circuit Board" => 5, "Ingot" => 50, "Nail" => 5],
  159. "Large Feed Bag" => ["Fiber" => 50, "Leather" => 20, "Wood" => 20],
  160. "Large Mounted Lamp" => ["Circuit Board" => 5, "Ingot" => 50, "Nail" => 5],
  161. "Large Pal Bed" => ["Fiber" => 30, "High Quality Cloth" => 10, "Nail" => 20, "Wood" => 60],
  162. "Large Toolbox" => ["Ingot" => 40, "Nail" => 15, "Wood" => 100],
  163. "Leather Chair Set" => ["Cloth" => 1, "Leather" => 2, "Wood" => 10],
  164. "Legendary Assault Rifle" => ["Ancient Civilization Part" => 30, "Carbon Fiber" => 202, "Polymer" => 67, "Refined Ingot" => 270],
  165. "Legendary Cloth Outfit" => ["Ancient Civilization Part" => 10, "Cloth" => 13],
  166. "Legendary Cold Resistant Pal Metal Armor" => ["Ancient Civilization Part" => 19, "High Quality Cloth" => 40, "Ice Organ" => 108, "Leather" => 202, "Pal Metal Ingot" => 202],
  167. "Legendary Cold Resistant Refined Metal Armor" => ["Ancient Civilization Part" => 17, "High Quality Cloth" => 19, "Ice Organ" => 81, "Leather" => 135, "Refined Ingot" => 270],
  168. "Legendary Crossbow" => ["Ancient Civilization Part" => 12, "Ingot" => 67, "Nail" => 33, "Stone" => 270, "Wood" => 337],
  169. "Legendary Feathered Hair Band" => ["Ancient Civilization Part" => 13, "Fiber" => 67, "Paldium Fragment" => 33],
  170. "Legendary Handgun" => ["Ancient Civilization Part" => 14, "High Quality Pal Oil" => 100, "Ingot" => 337],
  171. "Legendary Heat Resistant Pal Metal Armor" => ["Ancient Civilization Part" => 19, "Flame Organ" => 108, "High Quality Cloth" => 40, "Leather" => 202, "Pal Metal Ingot" => 202],
  172. "Legendary Heat Resistant Refined Metal Armor" => ["Ancient Civilization Part" => 17, "Flame Organ" => 81, "High Quality Cloth" => 19, "Leather" => 135, "Refined Ingot" => 270],
  173. "Legendary Metal Armor" => ["Ancient Civilization Part" => 14, "Cloth" => 33, "Ingot" => 202, "Leather" => 67],
  174. "Legendary Metal Helm" => ["Ancient Civilization Part" => 135, "Ingot" => 67, "Paldium Fragment" => 14],
  175. "Legendary Old Bow" => ["Ancient Civilization Part" => 10, "Fiber" => 100, "Stone" => 33, "Wood" => 202],
  176. "Legendary Pal Metal Helmet" => ["Ancient Civilization Part" => 19, "Pal Metal Ingot" => 135, "Paldium Fragment" => 135],
  177. "Legendary Pelt Armor" => ["Ancient Civilization Part" => 13, "Leather" => 67],
  178. "Legendary Pump-action Shotgun" => ["Ancient Civilization Part" => 30, "Carbon Fiber" => 270, "Polymer" => 135, "Refined Ingot" => 202],
  179. "Legendary Refined Metal Helm" => ["Ancient Civilization Part" => 17, "Paldium Fragment" => 100, "Refined Ingot" => 135],
  180. "Legendary Rocket Launcher" => ["Ancient Civilization Part" => 40, "Carbon Fiber" => 337, "Pal Metal Ingot" => 505, "Polymer" => 202],
  181. "Legendary Sphere" => ["Carbon Fiber" => 3, "Cement" => 5, "Pal Metal Ingot" => 5, "Paldium Fragment" => 10],
  182. "Lettuce Plantation" => ["Lettuce Seed" => 3, "Pal Fluid" => 10, "Stone" => 70, "Wood" => 100],
  183. "Lifmunk’s Submachine Gun" => ["Ingot" => 5, "Paldium Fragment" => 10, "Stone" => 10, "Wood" => 20],
  184. "Lily" => ["Ancient Civilization Part" => 20, "High Quality Cloth" => 20, "Paldium Fragment" => 20, "Refined Ingot" => 30, "Wood" => 50],
  185. "Lily’s Spear" => ["Ancient Civilization Part" => 20, "High Quality Cloth" => 20, "Paldium Fragment" => 20, "Refined Ingot" => 30, "Wood" => 50],
  186. "Logging Site" => ["Paldium Fragment" => 10, "Stone" => 20, "Wood" => 50],
  187. "Long-eared Headband" => ["Cloth" => 12, "Ingot" => 2],
  188. "Low Grade Medical Supplies" => ["Horn" => 2, "Red Berries" => 5],
  189. "Makeshift Handgun" => ["Fiber" => 30, "High Quality Pal Oil" => 10, "Ingot" => 35],
  190. "Mammorest Cryst Saddle" => ["Fiber" => 84, "High Quality Pal Oil" => 12, "Leather" => 60, "Paldium Fragment" => 72, "Wood" => 120],
  191. "Mammorest Saddle" => ["Fiber" => 70, "High Quality Pal Oil" => 10, "Leather" => 50, "Paldium Fragment" => 60, "Wood" => 100],
  192. "Maraith Saddle" => ["Fiber" => 25, "Ingot" => 10, "Leather" => 15, "Paldium Fragment" => 20],
  193. "Meat Cleaver" => ["Ingot" => 5, "Stone" => 5, "Wood" => 20],
  194. "Medical Supplies" => ["Bone" => 1, "Horn" => 3, "Ingot" => 3],
  195. "Medieval Medicine Workbench" => ["Nail" => 5, "Paldium Fragment" => 10, "Wood" => 20],
  196. "Mega Glider" => ["Bone" => 10, "Cloth" => 20, "Wood" => 50],
  197. "Mega Grappling Gun" => ["Ancient Civilization Part" => 4, "Fiber" => 50, "Ingot" => 20, "Paldium Fragment" => 20],
  198. "Mega Shield" => ["Ancient Civilization Part" => 5, "Paldium Fragment" => 30],
  199. "Mega Sphere" => ["Ingot" => 1, "Paldium Fragment" => 1, "Stone" => 5, "Wood" => 5],
  200. "Melpaca Saddle" => ["Leather" => 3, "Paldium Fragment" => 5, "Wool" => 5],
  201. "Memory Wiping Medicine" => ["Beautiful Flower" => 99, "Bone" => 50, "Horn" => 50, "Pal Fluid" => 50],
  202. "Metal Armor" => ["Cloth" => 5, "Ingot" => 30, "Leather" => 10],
  203. "Metal Axe" => ["Ingot" => 5, "Stone" => 15, "Wood" => 20],
  204. "Metal Barrel Set" => ["Flame Organ" => 1, "Ingot" => 10],
  205. "Metal Chair and Desk Set" => ["Ingot" => 3],
  206. "Metal Chest" => ["Ingot" => 15, "Wood" => 30],
  207. "Metal Defensive Wall" => ["Cement" => 1, "Ingot" => 10],
  208. "Metal Helm" => ["Ingot" => 20, "Paldium Fragment" => 10],
  209. "Metal Pickaxe" => ["Ingot" => 5, "Stone" => 15, "Wood" => 20],
  210. "Metal Shelf Set" => ["Ingot" => 20, "Nail" => 1],
  211. "Metal Spear" => ["Ingot" => 10, "Stone" => 12, "Wood" => 27],
  212. "Metal Structure Set" => ["Ingot" => 1, "stone" => 2],
  213. "Mill" => ["Stone" => 40, "Wood" => 50],
  214. "Mind Control Meds" => ["Bone" => 5, "Horn" => 10, "Pal Fluid" => 3, "Refined Ingot" => 10],
  215. "Mine" => ["Flame Organ" => 2, "Ingot" => 5],
  216. "Monarch" => ["Cloth" => 3, "Ingot" => 20],
  217. "Monitoring Stand" => ["Stone" => 10, "Wood" => 30],
  218. "Mossanda Lux’s Grenade Launcher" => ["High Quality Pal Oil" => 24, "Ingot" => 60, "Paldium Fragment" => 48],
  219. "Mossanda’s Grenade Launcher" => ["High Quality Pal Oil" => 20, "Ingot" => 20, "Paldium Fragment" => 40],
  220. "Mounted Crossbow" => ["Ingot" => 30, "Nail" => 5, "Stone" => 15, "Wood" => 30],
  221. "Mounted Machine Gun" => ["Cement" => 15, "Ingot" => 30, "Nail" => 10],
  222. "Mounted Missile Launcher" => ["Cement" => 50, "Circuit Board" => 20, "Nail" => 20, "Refined Ingot" => 100],
  223. "Mounted Torch" => ["Stone" => 2, "Wood" => 5],
  224. "Musket" => ["High Quality Pal Oil" => 5, "Ingot" => 25, "Wood" => 30],
  225. "Nail" => ["Ingot" => 1],
  226. "Necromus Saddle" => ["Ingot" => 300, "Leather" => 100, "Paldium Fragment" => 85, "Refined Ingot" => 200],
  227. "Nitewing Saddle" => ["Cloth" => 10, "Fiber" => 20, "Ingot" => 15, "Leather" => 20, "Paldium Fragment" => 20],
  228. "Normal Parachute" => ["Cloth" => 2, "Wood" => 10],
  229. "Old Bow" => ["Fiber" => 15, "Stone" => 5, "Wood" => 30],
  230. "Outdoor Furniture Set" => ["Ingot" => 10, "Wood" => 20],
  231. "Pal Essence Condenser" => ["Ancient Civilization Part" => 5, "Ingot" => 20, "Paldium Fragment" => 20],
  232. "Pal Gear Workbench" => ["Cloth" => 2, "Paldium Fragment" => 10, "Wood" => 30],
  233. "Pal Metal Armor" => ["High Quality Cloth" => 4, "Leather" => 20, "Pal Metal Ingot" => 20],
  234. "Pal Metal Helm" => ["Pal Metal Ingot" => 20, "Paldium Fragment" => 20],
  235. "Pal Sphere" => ["Paldium Fragment" => 1, "Stone" => 3, "Wood" => 3],
  236. "Paladius Saddle" => ["Ingot" => 300, "Leather" => 100, "Paldium Fragment" => 85, "Refined Ingot" => 200],
  237. "Palbox " => ["Paldium Fragment" => 1, "Stone" => 3, "Wood" => 8],
  238. "Pelt Armor" => ["Leather" => 10],
  239. "Pengullet’s Rocket Launcher" => ["Ingot" => 20, "Paldium Fragment" => 20, "Stone" => 20, "Wood" => 30],
  240. "Penking Cap" => ["Penking Plume" => 5],
  241. "Piano Furniture Set" => ["Ingot" => 5, "Fiber" => 20, "Wood" => 100],
  242. "Pickaxe and Helmet" => ["Ingot" => 50, "Stone" => 50, "Wood" => 50],
  243. "Poison Arrow Crossbow" => ["Ingot" => 15, "Nail" => 5, "Stone" => 50, "Venom Gland" => 5, "Wood" => 50],
  244. "Poison Arrow" => ["Stone" => 3, "Venom Gland" => 1, "Wood" => 3],
  245. "Poison Bow" => ["Fiber" => 20, "Stone" => 8, "Venom Gland" => 2, "Wood" => 40],
  246. "Polymer" => ["High Quality Pal Oil" => 2],
  247. "Power Generator" => ["Electric Organ" => 20, "Ingot" => 50],
  248. "Primitive Furnace" => ["Flame Organ" => 3, "Stone" => 50, "Wood" => 20],
  249. "Primitive Workbench" => ["Wood" => 2],
  250. "Production Assembly Line II" => ["Circuit Board" => 10, "Nail" => 30, "Refined Ingot" => 100],
  251. "Production Assembly Line" => ["Cement" => 10, "Ingot" => 10, "Nail" => 20, "Wood" => 50],
  252. "Pump-action Shotgun" => ["Carbon Fiber" => 40, "Polymer" => 20, "Refined Ingot" => 30],
  253. "Pyrin Noct Saddle" => ["Fiber" => 36, "Flame Organ" => 24, "Ingot" => 18, "Leather" => 30, "Paldium Fragment" => 30],
  254. "Pyrin Saddle" => ["Fiber" => 30, "Flame Organ" => 20, "Ingot" => 15, "Leather" => 25, "Paldium Fragment" => 25],
  255. "Quivern Saddle" => ["Cloth" => 10, "Ingot" => 30, "Leather" => 30, "Paldium Fragment" => 30],
  256. "Ragnahawk Saddle" => ["Cloth" => 15, "Flame Organ" => 20, "Ingot" => 20, "Leather" => 25, "Paldium Fragment" => 25],
  257. "Ranch" => ["Fiber" => 30, "Stone" => 20, "Wood" => 50],
  258. "Rayhound Saddle" => ["Electric Organ" => 15, "Fiber" => 40, "Ingot" => 20, "Leather" => 20, "Paldium Fragment" => 25],
  259. "Refined Metal Armor" => ["High Quality Cloth" => 2, "Leather" => 15, "Refined Ingot" => 30],
  260. "Refined Metal Axe" => ["Refined Ingot" => 10, "Stone" => 30, "Wood" => 40],
  261. "Refined Metal Chest" => ["Nail" => 20, "Refined Ingot" => 20, "Wood" => 50],
  262. "Refined Metal Helm" => ["Paldium Fragment" => 15, "Refined Ingot" => 20],
  263. "Refined Metal Pickaxe" => ["Refined Ingot" => 10, "Stone" => 30, "Wood" => 40],
  264. "Refined Metal Spear" => ["Refined Ingot" => 10, "Stone" => 18, "Wood" => 36],
  265. "Refrigerator" => ["Circuit Board" => 5, "Ice Organ" => 15, "Polymer" => 20, "Refined Ingot" => 50],
  266. "Reindrix Saddle" => ["Horn" => 20, "Ice Organ" => 10, "Ingots " => 20, "Leather" => 25, "Paldium Fragment" => 15],
  267. "Relaxaurus Lux’s Missile Launcher" => ["Ingot" => 120, "Paldium Fragment" => 103, "Polymer" => 42, "Refined Ingot" => 120],
  268. "Relaxaurus’ Missile Launcher" => ["Ingot" => 100, "Paldium Fragment" => 85, "Polymer" => 35, "Refined Ingot" => 100],
  269. "Repair Bench" => ["Stone" => 10, "Wood" => 10],
  270. "Repair Kit" => ["Fiber" => 5, "Stone" => 5],
  271. "Reptyro Saddle" => ["Flame Organ" => 20, "Ingot" => 20, "Leather" => 20, "Paldium Fragment" => 20],
  272. "Rifle Ammo" => ["Gunpowder" => 2, "Refined Ingot" => 1],
  273. "Road Sign Set" => ["Ingot" => 5],
  274. "Rocket Ammo" => ["Gunpowder" => 5, "Pal Metal Ingot" => 1],
  275. "Rocket Launcher" => ["Carbon Fiber" => 50, "Pal Metal Ingot" => 75, "Polymer" => 30],
  276. "Rushoar’s Saddle" => ["Leather" => 3, "Paldium Fragment" => 5, "Stone" => 10],
  277. "Sand Bag" => ["Stone" => 10, "Wood" => 10],
  278. "Scatter Sphere Launcher" => ["Ancient Civilization Part" => 10, "Carbon Fiber" => 30, "Paldium Fragment" => 50, "Polymer" => 15, "Refined Ingot" => 50],
  279. "Shadowbeak Saddle" => ["Leather" => 50, "Paldium Fragment" => 45, "Refined Ingot" => 40, "Venom Gland" => 25],
  280. "Shock Grenade" => ["Electric Organ" => 1, "Fiber" => 10, "Stone" => 10],
  281. "Shoddy Bed" => ["Fiber" => 5, "Wood" => 20, "Wool" => 1],
  282. "Shotgun Shells" => ["Gunpowder" => 3, "Refined Ingot" => 1],
  283. "Sign" => ["Wood" => 10],
  284. "Silk Hat" => ["Cloth" => 15],
  285. "Silo" => ["Fiber" => 100, "Stone" => 100, "Wood" => 300],
  286. "Single Shot Sphere Launcher" => ["Ancient Civilization Part" => 5, "Ingot" => 50, "Paldium Fragment" => 50, "Stone" => 100],
  287. "Single-shot Rifle" => ["Polymer" => 5, "Refined Ingot" => 20],
  288. "Single-shot Sphere Launcher" => ["Ancient Civilization Part" => 5, "Ingot" => 50, "Paldium Fragment" => 50, "Stone" => 100],
  289. "Small Feed Bag" => ["Fiber" => 10, "Leather" => 3, "Wood" => 5],
  290. "Snowman" => ["Cloth" => 20, "Ice Organ" => 50, "Wood" => 50],
  291. "Soft Hat" => ["Cloth" => 10, "Fiber" => 10],
  292. "Sphere Assembly Line II" => ["Circuit Board" => 10, "Nail" => 30, "Paldium Fragment" => 50, "Refined Ingot" => 100],
  293. "Sphere Assembly Line" => ["Ingot" => 100, "Nail" => 20, "Paldium Fragment" => 30, "Wood" => 50],
  294. "Sphere Workbench" => ["Nail" => 10, "Paldium Fragment" => 10, "Wood" => 30],
  295. "Statue of Power" => ["Paldium Fragment" => 10, "Stone" => 20],
  296. "Stone Axe" => ["Stone" => 5, "Wood" => 5],
  297. "Stone Gate" => ["Cement" => 1, "Stone" => 10],
  298. "Stone Pickaxe" => ["Stone" => 5, "Wood" => 5],
  299. "Stone Pit" => ["Paldium Fragment" => 10, "Stone" => 50, "Wood" => 20],
  300. "Stone Spear" => ["Stone" => 6, "Wood" => 18],
  301. "Stone Structure Set" => ["Stone" => 3],
  302. "Storage Container Set" => ["Ingot" => 100],
  303. "Strange Juice" => ["Beautiful Flower" => 5, "Bone" => 2, "Horn" => 5, "Pal Fluid" => 2],
  304. "Straw Pal Bed" => ["Fiber" => 5, "Wood" => 10],
  305. "Street Lamp Set" => ["Electric Organ" => 3, "Ingot" => 20, "Nail" => 3],
  306. "Stump and Axe" => ["Ingot" => 40, "Stone" => 30, "Wood" => 150],
  307. "Stun Baton" => ["Electric Organ" => 20, "Ingot" => 20],
  308. "Surfent Saddle" => ["Leather" => 5, "Pal Fluid" => 5, "Paldium Fragment" => 10],
  309. "Suspicious Juice" => ["Beautiful Flower" => 3, "Bone" => 1, "Horn" => 3, "Pal Fluid" => 1],
  310. "Suzaku Aqua Saddle" => ["Leather" => 24, "Pal Fluid" => 24, "Paldium Fragment" => 48, "Refined Ingot" => 30],
  311. "Suzaku Saddle" => ["Flame Organ" => 20, "Leather" => 20, "Paldium Fragment" => 40, "Refined Ingot" => 25],
  312. "Sweepa Saddle" => ["Cloth" => 8, "Leather" => 3, "Paldium Fragment" => 10],
  313. "Sword" => ["Refined Ingot" => 30, "Stone" => 20, "Wood" => 20],
  314. "Tanzee’s Assault Rifle" => ["Ingot" => 5, "Paldium Fragment" => 10, "Stone" => 15, "Wood" => 15],
  315. "Three Shot Bow" => ["Fiber" => 30, "Stone" => 12, "Wood" => 50],
  316. "Tocotoco Cap" => ["Tocotoco Feather" => 5],
  317. "Tocotoco’s Gloves" => ["Cloth" => 10, "Fiber" => 15, "Flame Organ" => 10, "Leather" => 10, "Paldium Fragment" => 15],
  318. "Tomato Plantation" => ["Pal Fluid" => 5, "Stone" => 50, "Tomato Seed" => 3, "Wood" => 70],
  319. "Traffic Control Set" => ["Polymer" => 1],
  320. "Training Dummy" => ["Fiber" => 5, "Paldium Fragment" => 5, "Wood" => 20],
  321. "Tricorne" => ["Leather" => 10],
  322. "Tropical Outfit" => ["Cloth" => 3, "Flame Organ" => 2],
  323. "Tundra Outfit" => ["Cloth" => 3, "Ice Organ" => 2],
  324. "Ultra Sphere" => ["Carbon Fiber" => 2, "Cement" => 3, "Paldium Fragment" => 5, "Refined Ingot" => 5],
  325. "Univolt Saddle" => ["Electric Organ" => 10, "Ingot" => 5, "Leather" => 10, "Paldium Fragment" => 15],
  326. "Vanwyrm Cryst Saddle" => ["Fiber" => 36, "Ice Organ" => 12, "Ingot" => 18, "Leather" => 24, "Paldium Fragment" => 24],
  327. "Vanwyrm Saddle" => ["Fiber" => 30, "Flame Organ" => 10, "Ingot" => 15, "Leather" => 20, "Paldium Fragment" => 20],
  328. "Viewing Cage" => ["Paldium Fragment" => 10, "Stone" => 20, "Wood" => 10],
  329. "Wall Mounted Houseplant Set" => ["Fiber" => 10],
  330. "Wall Torch" => ["Stone" => 2, "Wood" => 5],
  331. "Water Broncherry Saddle" => ["Fiber" => 36, "Ingot" => 18, "Leather" => 24, "Paldium Fragment" => 24],
  332. "Water Elphidran Saddle" => ["Fiber" => 24, "Ingot" => 18, "Leather" => 24, "Paldium Fragment" => 24],
  333. "Water Fountain" => ["Ingot" => 100, "Pal Fluid" => 20, "Stone" => 200],
  334. "Weapon Assembly Line II" => ["Circuit Board" => 10, "Nail" => 30, "Refined Ingot" => 100],
  335. "Weapon Workbench" => ["Ingot" => 15, "Nail" => 10, "Wood" => 50],
  336. "Wheat Plantation" => ["Stone" => 35, "Wheat Seed" => 3, "Wood" => 35],
  337. "Witch Cauldron" => ["High Quality Pal Oil" => 15, "Ingot" => 50, "Pal Fluid" => 15, "Stone" => 50],
  338. "Witch Hat" => ["Cloth" => 10, "Ingot" => 3],
  339. "Wooden Chest" => ["Stone" => 5, "Wood" => 15],
  340. "Wooden Club" => ["Wood" => 5],
  341. "Wooden Defensive Wall" => ["Wood" => 10],
  342. "Wooden Gate" => ["Wood" => 10],
  343. "Wooden Living Room Furniture Set" => ["Red Berries" => 5, "Wood" => 20],
  344. "Wooden Structure Set" => ["Wood" => 2],
  345. "Wooden Tavern Cabinet Furniture Set" => ["Stone" => 5, "Wood" => 30],
  346. "Wooden Tavern Furniture Set" => ["Stone" => 5, "Wood" => 30],
  347. "Wumpo Botan Saddle" => ["Beautiful Flower" => 24, "Fiber" => 60, "Leather" => 36, "Paldium Fragment" => 48, "Refined Ingot" => 12],
  348. "Wumpo Saddle" => ["Fiber" => 50, "Ice Organ" => 20, "Leather" => 30, "Paldium Fragment" => 40, "Refined Ingot" => 10],
  349. ];
  350.  
  351.  
  352. // Neaten up the above array.
  353. //foreach ($buildables as $key => $arr) {
  354.     //$str = '"' . $key . '" => [';
  355.     //ksort($arr);
  356.     //foreach ($arr as $name => $qty) {
  357.         //$str .= '"' . $name . '" => ' . $qty . ', ';
  358.     //}
  359.     //echo rtrim($str, ", ") . "],\n";    
  360. //}
  361. //exit;
  362.  
  363.  
  364. // Print the above array as a CSV ("Top Level Ingredients" tab).
  365. //foreach ($buildables as $key => $arr) {
  366.     //$str = "$key,";
  367.     //ksort($arr);
  368.     //foreach ($arr as $name => $qty) {
  369.         //$str .= "$name,$qty,";
  370.     //}
  371.     //echo rtrim($str, ",")."\n";    
  372. //}
  373. //exit;
  374.  
  375. // Recursively expand the above array and output as CSV ("Base Ingredients" tab).
  376. function expandIngredients(string $name, int $quantity) {
  377.     global $buildables;
  378.     if (array_key_exists($name, $buildables)) {
  379.         $outArray = [];
  380.         foreach ($buildables[$name] as $ingredient => $qty) {
  381.             $newList = expandIngredients($ingredient, $qty * $quantity);
  382.             foreach ($newList as $newKey => $newValue) {
  383.                 $outArray[$newKey] = array_key_exists($newKey, $outArray) ? $outArray[$newKey] + $newValue : $newValue;
  384.             }
  385.         }
  386.         return $outArray;
  387.     } else {
  388.         return [$name => $quantity];
  389.     }
  390. }
  391. $output = [];
  392. foreach ($buildables as $name => $list) {
  393.     $output[$name] = expandIngredients($name, 1);
  394. }
  395. ksort($output);
  396. foreach ($output as $name => $list) {
  397.     $str = "$name,";
  398.     ksort($list);
  399.     foreach ($list as $item => $qty) {
  400.         $str .= "$item,$qty,";
  401.     }
  402.     echo rtrim($str, ",") . "\n";
  403. }
  404.  
Tags: Gaming
Advertisement
Add Comment
Please, Sign In to add comment