d3_mpq 0.0.7 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (475) hide show
  1. data/lib/bindata_ext/mod_code.rb +3 -2
  2. data/lib/d3_mpq/analyzer.rb +9 -0
  3. data/lib/d3_mpq/commands.rb +3 -0
  4. data/lib/d3_mpq/core_data/game_balance/item_enhancements.rb +14 -5
  5. data/lib/d3_mpq/core_data/game_balance/recipes.rb +23 -0
  6. data/lib/d3_mpq/core_data/game_balance.rb +1 -0
  7. data/lib/d3_mpq/csv_generator/affix_list.rb +1 -1
  8. data/lib/d3_mpq/csv_generator/item_enhancements.rb +34 -0
  9. data/lib/d3_mpq/csv_generator/recipe_details.rb +23 -0
  10. data/lib/d3_mpq/csv_generator/recipes.rb +24 -0
  11. data/lib/d3_mpq/csv_generator.rb +4 -1
  12. data/lib/d3_mpq/recipe.rb +19 -0
  13. data/lib/d3_mpq/version.rb +1 -1
  14. data/lib/d3_mpq/version.rb~ +1 -1
  15. data/lib/d3_mpq.rb +1 -0
  16. data/spec/fixtures/Recipe/Axe Bad Data.rcp +0 -0
  17. data/spec/fixtures/Recipe/Convert_Tier_01A_Tier_02A.rcp +0 -0
  18. data/spec/fixtures/Recipe/Convert_Tier_01B_Tier_02B.rcp +0 -0
  19. data/spec/fixtures/Recipe/Convert_Tier_01C_Tier_02C.rcp +0 -0
  20. data/spec/fixtures/Recipe/Convert_Tier_01D_Tier_02D.rcp +0 -0
  21. data/spec/fixtures/Recipe/Convert_Tier_02A_Tier_03A.rcp +0 -0
  22. data/spec/fixtures/Recipe/Convert_Tier_02B_Tier_03B.rcp +0 -0
  23. data/spec/fixtures/Recipe/Convert_Tier_02C_Tier_03C.rcp +0 -0
  24. data/spec/fixtures/Recipe/Convert_Tier_02D_Tier_03D.rcp +0 -0
  25. data/spec/fixtures/Recipe/Convert_Tier_03A_Tier_04A.rcp +0 -0
  26. data/spec/fixtures/Recipe/Convert_Tier_03B_Tier_04B.rcp +0 -0
  27. data/spec/fixtures/Recipe/Convert_Tier_03C_Tier_04C.rcp +0 -0
  28. data/spec/fixtures/Recipe/Convert_Tier_03D_Tier_04D.rcp +0 -0
  29. data/spec/fixtures/Recipe/GemCombine_Amethyst_01_02.rcp +0 -0
  30. data/spec/fixtures/Recipe/GemCombine_Amethyst_02_03.rcp +0 -0
  31. data/spec/fixtures/Recipe/GemCombine_Amethyst_03_04.rcp +0 -0
  32. data/spec/fixtures/Recipe/GemCombine_Amethyst_04_05.rcp +0 -0
  33. data/spec/fixtures/Recipe/GemCombine_Amethyst_05_06.rcp +0 -0
  34. data/spec/fixtures/Recipe/GemCombine_Amethyst_06_07.rcp +0 -0
  35. data/spec/fixtures/Recipe/GemCombine_Amethyst_07_08.rcp +0 -0
  36. data/spec/fixtures/Recipe/GemCombine_Amethyst_08_09.rcp +0 -0
  37. data/spec/fixtures/Recipe/GemCombine_Amethyst_09_10.rcp +0 -0
  38. data/spec/fixtures/Recipe/GemCombine_Amethyst_10_11.rcp +0 -0
  39. data/spec/fixtures/Recipe/GemCombine_Amethyst_11_12.rcp +0 -0
  40. data/spec/fixtures/Recipe/GemCombine_Amethyst_12_13.rcp +0 -0
  41. data/spec/fixtures/Recipe/GemCombine_Amethyst_13_14.rcp +0 -0
  42. data/spec/fixtures/Recipe/GemCombine_Emerald_01_02.rcp +0 -0
  43. data/spec/fixtures/Recipe/GemCombine_Emerald_02_03.rcp +0 -0
  44. data/spec/fixtures/Recipe/GemCombine_Emerald_03_04.rcp +0 -0
  45. data/spec/fixtures/Recipe/GemCombine_Emerald_04_05.rcp +0 -0
  46. data/spec/fixtures/Recipe/GemCombine_Emerald_05_06.rcp +0 -0
  47. data/spec/fixtures/Recipe/GemCombine_Emerald_06_07.rcp +0 -0
  48. data/spec/fixtures/Recipe/GemCombine_Emerald_07_08.rcp +0 -0
  49. data/spec/fixtures/Recipe/GemCombine_Emerald_08_09.rcp +0 -0
  50. data/spec/fixtures/Recipe/GemCombine_Emerald_09_10.rcp +0 -0
  51. data/spec/fixtures/Recipe/GemCombine_Emerald_10_11.rcp +0 -0
  52. data/spec/fixtures/Recipe/GemCombine_Emerald_11_12.rcp +0 -0
  53. data/spec/fixtures/Recipe/GemCombine_Emerald_12_13.rcp +0 -0
  54. data/spec/fixtures/Recipe/GemCombine_Emerald_13_14.rcp +0 -0
  55. data/spec/fixtures/Recipe/GemCombine_Ruby_01_02.rcp +0 -0
  56. data/spec/fixtures/Recipe/GemCombine_Ruby_02_03.rcp +0 -0
  57. data/spec/fixtures/Recipe/GemCombine_Ruby_03_04.rcp +0 -0
  58. data/spec/fixtures/Recipe/GemCombine_Ruby_04_05.rcp +0 -0
  59. data/spec/fixtures/Recipe/GemCombine_Ruby_05_06.rcp +0 -0
  60. data/spec/fixtures/Recipe/GemCombine_Ruby_06_07.rcp +0 -0
  61. data/spec/fixtures/Recipe/GemCombine_Ruby_07_08.rcp +0 -0
  62. data/spec/fixtures/Recipe/GemCombine_Ruby_08_09.rcp +0 -0
  63. data/spec/fixtures/Recipe/GemCombine_Ruby_09_10.rcp +0 -0
  64. data/spec/fixtures/Recipe/GemCombine_Ruby_10_11.rcp +0 -0
  65. data/spec/fixtures/Recipe/GemCombine_Ruby_11_12.rcp +0 -0
  66. data/spec/fixtures/Recipe/GemCombine_Ruby_12_13.rcp +0 -0
  67. data/spec/fixtures/Recipe/GemCombine_Ruby_13_14.rcp +0 -0
  68. data/spec/fixtures/Recipe/GemCombine_Topaz_01_02.rcp +0 -0
  69. data/spec/fixtures/Recipe/GemCombine_Topaz_02_03.rcp +0 -0
  70. data/spec/fixtures/Recipe/GemCombine_Topaz_03_04.rcp +0 -0
  71. data/spec/fixtures/Recipe/GemCombine_Topaz_04_05.rcp +0 -0
  72. data/spec/fixtures/Recipe/GemCombine_Topaz_05_06.rcp +0 -0
  73. data/spec/fixtures/Recipe/GemCombine_Topaz_06_07.rcp +0 -0
  74. data/spec/fixtures/Recipe/GemCombine_Topaz_07_08.rcp +0 -0
  75. data/spec/fixtures/Recipe/GemCombine_Topaz_08_09.rcp +0 -0
  76. data/spec/fixtures/Recipe/GemCombine_Topaz_09_10.rcp +0 -0
  77. data/spec/fixtures/Recipe/GemCombine_Topaz_10_11.rcp +0 -0
  78. data/spec/fixtures/Recipe/GemCombine_Topaz_11_12.rcp +0 -0
  79. data/spec/fixtures/Recipe/GemCombine_Topaz_12_13.rcp +0 -0
  80. data/spec/fixtures/Recipe/GemCombine_Topaz_13_14.rcp +0 -0
  81. data/spec/fixtures/Recipe/Quest_Act1_Blacksmith_AllReward.rcp +0 -0
  82. data/spec/fixtures/Recipe/Quest_Act1_NephPower_AllReward.rcp +0 -0
  83. data/spec/fixtures/Recipe/Quest_Act1_SkeletonKing_BarbReward.rcp +0 -0
  84. data/spec/fixtures/Recipe/Quest_Act1_SkeletonKing_DHReward.rcp +0 -0
  85. data/spec/fixtures/Recipe/Quest_Act1_SkeletonKing_MonkReward.rcp +0 -0
  86. data/spec/fixtures/Recipe/Quest_Act1_SkeletonKing_WDReward.rcp +0 -0
  87. data/spec/fixtures/Recipe/Quest_Act1_SkeletonKing_WizReward.rcp +0 -0
  88. data/spec/fixtures/Recipe/Quest_Act1_Town_BarbReward.rcp +0 -0
  89. data/spec/fixtures/Recipe/Quest_Act1_Town_DHReward.rcp +0 -0
  90. data/spec/fixtures/Recipe/Quest_Act1_Town_MonkReward.rcp +0 -0
  91. data/spec/fixtures/Recipe/Quest_Act1_Town_WDReward.rcp +0 -0
  92. data/spec/fixtures/Recipe/Quest_Act1_Town_WizReward.rcp +0 -0
  93. data/spec/fixtures/Recipe/Quest_RespecTome_Reward.rcp +0 -0
  94. data/spec/fixtures/Recipe/Quest_StoneofRecall.rcp +0 -0
  95. data/spec/fixtures/Recipe/Quest_UnlockBlacksmithing.rcp +0 -0
  96. data/spec/fixtures/Recipe/Rune_01_02.rcp +0 -0
  97. data/spec/fixtures/Recipe/Rune_02_03.rcp +0 -0
  98. data/spec/fixtures/Recipe/Rune_03_04.rcp +0 -0
  99. data/spec/fixtures/Recipe/Rune_04_05.rcp +0 -0
  100. data/spec/fixtures/Recipe/Rune_05_06.rcp +0 -0
  101. data/spec/fixtures/Recipe/Rune_06_07.rcp +0 -0
  102. data/spec/fixtures/Recipe/Smith_StaffofCow.rcp +0 -0
  103. data/spec/fixtures/Recipe/Smith_StaffofCow_Hell.rcp +0 -0
  104. data/spec/fixtures/Recipe/Smith_StaffofCow_Inferno.rcp +0 -0
  105. data/spec/fixtures/Recipe/Smith_StaffofCow_Nightmare.rcp +0 -0
  106. data/spec/fixtures/Recipe/StoneOfWealth_Reward.rcp +0 -0
  107. data/spec/fixtures/Recipe/T01_Armor_Belt.rcp +0 -0
  108. data/spec/fixtures/Recipe/T01_Armor_Boots.rcp +0 -0
  109. data/spec/fixtures/Recipe/T01_Armor_Bracers.rcp +0 -0
  110. data/spec/fixtures/Recipe/T01_Armor_ChampionsBelt.rcp +0 -0
  111. data/spec/fixtures/Recipe/T01_Armor_Chest.rcp +0 -0
  112. data/spec/fixtures/Recipe/T01_Armor_Cloak.rcp +0 -0
  113. data/spec/fixtures/Recipe/T01_Armor_Gloves.rcp +0 -0
  114. data/spec/fixtures/Recipe/T01_Armor_Helm.rcp +0 -0
  115. data/spec/fixtures/Recipe/T01_Armor_Pants.rcp +0 -0
  116. data/spec/fixtures/Recipe/T01_Armor_Shield.rcp +0 -0
  117. data/spec/fixtures/Recipe/T01_Armor_Shoulders.rcp +0 -0
  118. data/spec/fixtures/Recipe/T01_Armor_SpiritStone.rcp +0 -0
  119. data/spec/fixtures/Recipe/T01_Armor_VoodooMask.rcp +0 -0
  120. data/spec/fixtures/Recipe/T01_Armor_WizardHat.rcp +0 -0
  121. data/spec/fixtures/Recipe/T01_Weapon_Axe_1H.rcp +0 -0
  122. data/spec/fixtures/Recipe/T01_Weapon_Axe_2H.rcp +0 -0
  123. data/spec/fixtures/Recipe/T01_Weapon_Bow.rcp +0 -0
  124. data/spec/fixtures/Recipe/T01_Weapon_Crossbow.rcp +0 -0
  125. data/spec/fixtures/Recipe/T01_Weapon_Dagger.rcp +0 -0
  126. data/spec/fixtures/Recipe/T01_Weapon_Fist.rcp +0 -0
  127. data/spec/fixtures/Recipe/T01_Weapon_HandCrossbow.rcp +0 -0
  128. data/spec/fixtures/Recipe/T01_Weapon_Mace_1H.rcp +0 -0
  129. data/spec/fixtures/Recipe/T01_Weapon_Mace_2H.rcp +0 -0
  130. data/spec/fixtures/Recipe/T01_Weapon_Quiver.rcp +0 -0
  131. data/spec/fixtures/Recipe/T01_Weapon_Sword_1H.rcp +0 -0
  132. data/spec/fixtures/Recipe/T01_Weapon_Sword_2H.rcp +0 -0
  133. data/spec/fixtures/Recipe/T01_Weapon_Wand.rcp +0 -0
  134. data/spec/fixtures/Recipe/T02_Armor_Boots.rcp +0 -0
  135. data/spec/fixtures/Recipe/T02_Armor_Bracers.rcp +0 -0
  136. data/spec/fixtures/Recipe/T02_Armor_ChampionsBelt.rcp +0 -0
  137. data/spec/fixtures/Recipe/T02_Armor_Cloak.rcp +0 -0
  138. data/spec/fixtures/Recipe/T02_Armor_Gloves.rcp +0 -0
  139. data/spec/fixtures/Recipe/T02_Armor_Helm.rcp +0 -0
  140. data/spec/fixtures/Recipe/T02_Armor_Pants.rcp +0 -0
  141. data/spec/fixtures/Recipe/T02_Armor_Shield.rcp +0 -0
  142. data/spec/fixtures/Recipe/T02_Armor_Shoulders.rcp +0 -0
  143. data/spec/fixtures/Recipe/T02_Armor_SpiritStone.rcp +0 -0
  144. data/spec/fixtures/Recipe/T02_Armor_VoodooMask.rcp +0 -0
  145. data/spec/fixtures/Recipe/T02_Armor_WizardHat.rcp +0 -0
  146. data/spec/fixtures/Recipe/T02_Weapon_Axe_1H.rcp +0 -0
  147. data/spec/fixtures/Recipe/T02_Weapon_CeremonialKnife.rcp +0 -0
  148. data/spec/fixtures/Recipe/T02_Weapon_CombatStaff.rcp +0 -0
  149. data/spec/fixtures/Recipe/T02_Weapon_HandCrossbow.rcp +0 -0
  150. data/spec/fixtures/Recipe/T02_Weapon_MightyWeapon_1H.rcp +0 -0
  151. data/spec/fixtures/Recipe/T02_Weapon_Orb.rcp +0 -0
  152. data/spec/fixtures/Recipe/T02_Weapon_Quiver.rcp +0 -0
  153. data/spec/fixtures/Recipe/T02_Weapon_Sword_2H.rcp +0 -0
  154. data/spec/fixtures/Recipe/T02_Weapon_Wand.rcp +0 -0
  155. data/spec/fixtures/Recipe/T03_Armor_Belt.rcp +0 -0
  156. data/spec/fixtures/Recipe/T03_Armor_Boots.rcp +0 -0
  157. data/spec/fixtures/Recipe/T03_Armor_Bracers.rcp +0 -0
  158. data/spec/fixtures/Recipe/T03_Armor_Chest.rcp +0 -0
  159. data/spec/fixtures/Recipe/T03_Armor_Gloves.rcp +0 -0
  160. data/spec/fixtures/Recipe/T03_Armor_Helm.rcp +0 -0
  161. data/spec/fixtures/Recipe/T03_Armor_Pants.rcp +0 -0
  162. data/spec/fixtures/Recipe/T03_Armor_Shield.rcp +0 -0
  163. data/spec/fixtures/Recipe/T03_Armor_Shoulders.rcp +0 -0
  164. data/spec/fixtures/Recipe/T03_Weapon_Axe_1H.rcp +0 -0
  165. data/spec/fixtures/Recipe/T03_Weapon_Bow.rcp +0 -0
  166. data/spec/fixtures/Recipe/T03_Weapon_CombatStaff.rcp +0 -0
  167. data/spec/fixtures/Recipe/T03_Weapon_Dagger.rcp +0 -0
  168. data/spec/fixtures/Recipe/T03_Weapon_Fist.rcp +0 -0
  169. data/spec/fixtures/Recipe/T03_Weapon_Mace_1H.rcp +0 -0
  170. data/spec/fixtures/Recipe/T03_Weapon_Mace_2H.rcp +0 -0
  171. data/spec/fixtures/Recipe/T03_Weapon_Mojo.rcp +0 -0
  172. data/spec/fixtures/Recipe/T03_Weapon_Orb.rcp +0 -0
  173. data/spec/fixtures/Recipe/T03_Weapon_Quiver.rcp +0 -0
  174. data/spec/fixtures/Recipe/T03_Weapon_Sword_2H.rcp +0 -0
  175. data/spec/fixtures/Recipe/T03_Weapon_Wand.rcp +0 -0
  176. data/spec/fixtures/Recipe/T04_Armor_Belt.rcp +0 -0
  177. data/spec/fixtures/Recipe/T04_Armor_Boots.rcp +0 -0
  178. data/spec/fixtures/Recipe/T04_Armor_Bracers.rcp +0 -0
  179. data/spec/fixtures/Recipe/T04_Armor_Chest.rcp +0 -0
  180. data/spec/fixtures/Recipe/T04_Armor_Gloves.rcp +0 -0
  181. data/spec/fixtures/Recipe/T04_Armor_Helm.rcp +0 -0
  182. data/spec/fixtures/Recipe/T04_Armor_Pants.rcp +0 -0
  183. data/spec/fixtures/Recipe/T04_Armor_Shield.rcp +0 -0
  184. data/spec/fixtures/Recipe/T04_Armor_Shoulders.rcp +0 -0
  185. data/spec/fixtures/Recipe/T04_Legendary_Armor_Belt.rcp +0 -0
  186. data/spec/fixtures/Recipe/T04_Legendary_Armor_Shield.rcp +0 -0
  187. data/spec/fixtures/Recipe/T04_Legendary_Set_Normal_001_Chest.rcp +0 -0
  188. data/spec/fixtures/Recipe/T04_Legendary_Set_Normal_001_Shoulders.rcp +0 -0
  189. data/spec/fixtures/Recipe/T04_Legendary_Set_Normal_001_Sword_1H.rcp +0 -0
  190. data/spec/fixtures/Recipe/T04_Legendary_Set_Normal_002_Boots.rcp +0 -0
  191. data/spec/fixtures/Recipe/T04_Legendary_Set_Normal_002_Gloves.rcp +0 -0
  192. data/spec/fixtures/Recipe/T04_Legendary_Set_Normal_002_Helm.rcp +0 -0
  193. data/spec/fixtures/Recipe/T04_Legendary_Set_Normal_002_Pants.rcp +0 -0
  194. data/spec/fixtures/Recipe/T04_Legendary_Weapon_Bow.rcp +0 -0
  195. data/spec/fixtures/Recipe/T04_Legendary_Weapon_CeremonialDagger.rcp +0 -0
  196. data/spec/fixtures/Recipe/T04_Legendary_Weapon_CombatStaff.rcp +0 -0
  197. data/spec/fixtures/Recipe/T04_Legendary_Weapon_MightyWeapon2H.rcp +0 -0
  198. data/spec/fixtures/Recipe/T04_Legendary_Weapon_Wand.rcp +0 -0
  199. data/spec/fixtures/Recipe/T04_Weapon_Axe_1H.rcp +0 -0
  200. data/spec/fixtures/Recipe/T04_Weapon_Axe_2H.rcp +0 -0
  201. data/spec/fixtures/Recipe/T04_Weapon_CombatStaff.rcp +0 -0
  202. data/spec/fixtures/Recipe/T04_Weapon_Crossbow.rcp +0 -0
  203. data/spec/fixtures/Recipe/T04_Weapon_Dagger.rcp +0 -0
  204. data/spec/fixtures/Recipe/T04_Weapon_Fist.rcp +0 -0
  205. data/spec/fixtures/Recipe/T04_Weapon_HandCrossbow.rcp +0 -0
  206. data/spec/fixtures/Recipe/T04_Weapon_Mace_1H.rcp +0 -0
  207. data/spec/fixtures/Recipe/T04_Weapon_Mojo.rcp +0 -0
  208. data/spec/fixtures/Recipe/T04_Weapon_Quiver.rcp +0 -0
  209. data/spec/fixtures/Recipe/T04_Weapon_Staff.rcp +0 -0
  210. data/spec/fixtures/Recipe/T04_Weapon_Sword_1H.rcp +0 -0
  211. data/spec/fixtures/Recipe/T04_Weapon_Wand.rcp +0 -0
  212. data/spec/fixtures/Recipe/T05_Armor_Boots.rcp +0 -0
  213. data/spec/fixtures/Recipe/T05_Armor_Bracers.rcp +0 -0
  214. data/spec/fixtures/Recipe/T05_Armor_ChampionsBelt.rcp +0 -0
  215. data/spec/fixtures/Recipe/T05_Armor_Chest.rcp +0 -0
  216. data/spec/fixtures/Recipe/T05_Armor_Cloak.rcp +0 -0
  217. data/spec/fixtures/Recipe/T05_Armor_Gloves.rcp +0 -0
  218. data/spec/fixtures/Recipe/T05_Armor_Helm.rcp +0 -0
  219. data/spec/fixtures/Recipe/T05_Armor_Pants.rcp +0 -0
  220. data/spec/fixtures/Recipe/T05_Armor_Shield.rcp +0 -0
  221. data/spec/fixtures/Recipe/T05_Armor_Shoulders.rcp +0 -0
  222. data/spec/fixtures/Recipe/T05_Armor_WizardHat.rcp +0 -0
  223. data/spec/fixtures/Recipe/T05_Legendary_Set_Nightmare_001_Belt.rcp +0 -0
  224. data/spec/fixtures/Recipe/T05_Legendary_Set_Nightmare_001_Boots.rcp +0 -0
  225. data/spec/fixtures/Recipe/T05_Legendary_Set_Nightmare_001_Pants.rcp +0 -0
  226. data/spec/fixtures/Recipe/T05_Legendary_Weapon_Axe_1H.rcp +0 -0
  227. data/spec/fixtures/Recipe/T05_Legendary_Weapon_Mojo.rcp +0 -0
  228. data/spec/fixtures/Recipe/T05_Legendary_Weapon_Staff.rcp +0 -0
  229. data/spec/fixtures/Recipe/T05_Legendary_Weapon_Sword_2H.rcp +0 -0
  230. data/spec/fixtures/Recipe/T05_Weapon_Axe_1H.rcp +0 -0
  231. data/spec/fixtures/Recipe/T05_Weapon_Bow.rcp +0 -0
  232. data/spec/fixtures/Recipe/T05_Weapon_CeremonialKnife.rcp +0 -0
  233. data/spec/fixtures/Recipe/T05_Weapon_CombatStaff.rcp +0 -0
  234. data/spec/fixtures/Recipe/T05_Weapon_Dagger.rcp +0 -0
  235. data/spec/fixtures/Recipe/T05_Weapon_Fist.rcp +0 -0
  236. data/spec/fixtures/Recipe/T05_Weapon_Mace_1H.rcp +0 -0
  237. data/spec/fixtures/Recipe/T05_Weapon_MightyWeapon_2H.rcp +0 -0
  238. data/spec/fixtures/Recipe/T05_Weapon_Quiver.rcp +0 -0
  239. data/spec/fixtures/Recipe/T05_Weapon_Wand.rcp +0 -0
  240. data/spec/fixtures/Recipe/T06_Armor_Belt.rcp +0 -0
  241. data/spec/fixtures/Recipe/T06_Armor_Boots.rcp +0 -0
  242. data/spec/fixtures/Recipe/T06_Armor_Bracers.rcp +0 -0
  243. data/spec/fixtures/Recipe/T06_Armor_Chest.rcp +0 -0
  244. data/spec/fixtures/Recipe/T06_Armor_Gloves.rcp +0 -0
  245. data/spec/fixtures/Recipe/T06_Armor_Helm.rcp +0 -0
  246. data/spec/fixtures/Recipe/T06_Armor_Pants.rcp +0 -0
  247. data/spec/fixtures/Recipe/T06_Armor_Shield.rcp +0 -0
  248. data/spec/fixtures/Recipe/T06_Armor_Shoulders.rcp +0 -0
  249. data/spec/fixtures/Recipe/T06_Armor_SpiritStone.rcp +0 -0
  250. data/spec/fixtures/Recipe/T06_Armor_VoodooMask.rcp +0 -0
  251. data/spec/fixtures/Recipe/T06_Armor_WizardHat.rcp +0 -0
  252. data/spec/fixtures/Recipe/T06_Legendary_Armor_Gloves.rcp +0 -0
  253. data/spec/fixtures/Recipe/T06_Legendary_Set_Nightmare_002_Bracers.rcp +0 -0
  254. data/spec/fixtures/Recipe/T06_Legendary_Set_Nightmare_002_Chest.rcp +0 -0
  255. data/spec/fixtures/Recipe/T06_Legendary_Set_Nightmare_002_Helm.rcp +0 -0
  256. data/spec/fixtures/Recipe/T06_Legendary_Set_Nightmare_002_Shoulders.rcp +0 -0
  257. data/spec/fixtures/Recipe/T06_Legendary_Weapon_HandCrossbow.rcp +0 -0
  258. data/spec/fixtures/Recipe/T06_Weapon_Axe_2H.rcp +0 -0
  259. data/spec/fixtures/Recipe/T06_Weapon_Dagger.rcp +0 -0
  260. data/spec/fixtures/Recipe/T06_Weapon_Fist.rcp +0 -0
  261. data/spec/fixtures/Recipe/T06_Weapon_HandCrossbow.rcp +0 -0
  262. data/spec/fixtures/Recipe/T06_Weapon_MightyWeapon_1H.rcp +0 -0
  263. data/spec/fixtures/Recipe/T06_Weapon_Mojo.rcp +0 -0
  264. data/spec/fixtures/Recipe/T06_Weapon_Orb.rcp +0 -0
  265. data/spec/fixtures/Recipe/T06_Weapon_Staff.rcp +0 -0
  266. data/spec/fixtures/Recipe/T06_Weapon_Sword_1H.rcp +0 -0
  267. data/spec/fixtures/Recipe/T06_Weapon_Sword_2H.rcp +0 -0
  268. data/spec/fixtures/Recipe/T07_Armor_Belt.rcp +0 -0
  269. data/spec/fixtures/Recipe/T07_Armor_Boots.rcp +0 -0
  270. data/spec/fixtures/Recipe/T07_Armor_Bracers.rcp +0 -0
  271. data/spec/fixtures/Recipe/T07_Armor_Chest.rcp +0 -0
  272. data/spec/fixtures/Recipe/T07_Armor_Cloak.rcp +0 -0
  273. data/spec/fixtures/Recipe/T07_Armor_Gloves.rcp +0 -0
  274. data/spec/fixtures/Recipe/T07_Armor_Helm.rcp +0 -0
  275. data/spec/fixtures/Recipe/T07_Armor_Pants.rcp +0 -0
  276. data/spec/fixtures/Recipe/T07_Armor_Shield.rcp +0 -0
  277. data/spec/fixtures/Recipe/T07_Armor_Shoulders.rcp +0 -0
  278. data/spec/fixtures/Recipe/T07_Legendary_Set_Hell_001_Boots.rcp +0 -0
  279. data/spec/fixtures/Recipe/T07_Legendary_Set_Hell_001_Gloves.rcp +0 -0
  280. data/spec/fixtures/Recipe/T07_Legendary_Set_Hell_001_Pants.rcp +0 -0
  281. data/spec/fixtures/Recipe/T07_Legendary_Set_Hell_001_Shoulders.rcp +0 -0
  282. data/spec/fixtures/Recipe/T07_Legendary_Weapon_Fist.rcp +0 -0
  283. data/spec/fixtures/Recipe/T07_Legendary_Weapon_Mace_2H.rcp +0 -0
  284. data/spec/fixtures/Recipe/T07_Legendary_Weapon_MightyWeapon_1H.rcp +0 -0
  285. data/spec/fixtures/Recipe/T07_Legendary_Weapon_Orb.rcp +0 -0
  286. data/spec/fixtures/Recipe/T07_Weapon_Axe_1H.rcp +0 -0
  287. data/spec/fixtures/Recipe/T07_Weapon_Bow.rcp +0 -0
  288. data/spec/fixtures/Recipe/T07_Weapon_CeremonialKnife.rcp +0 -0
  289. data/spec/fixtures/Recipe/T07_Weapon_CombatStaff.rcp +0 -0
  290. data/spec/fixtures/Recipe/T07_Weapon_Crossbow.rcp +0 -0
  291. data/spec/fixtures/Recipe/T07_Weapon_Dagger.rcp +0 -0
  292. data/spec/fixtures/Recipe/T07_Weapon_Mace_1H.rcp +0 -0
  293. data/spec/fixtures/Recipe/T07_Weapon_Mace_2H.rcp +0 -0
  294. data/spec/fixtures/Recipe/T07_Weapon_Quiver.rcp +0 -0
  295. data/spec/fixtures/Recipe/T07_Weapon_Sword_2H.rcp +0 -0
  296. data/spec/fixtures/Recipe/T07_Weapon_Wand.rcp +0 -0
  297. data/spec/fixtures/Recipe/T08_Armor_Belt.rcp +0 -0
  298. data/spec/fixtures/Recipe/T08_Armor_Boots.rcp +0 -0
  299. data/spec/fixtures/Recipe/T08_Armor_Bracers.rcp +0 -0
  300. data/spec/fixtures/Recipe/T08_Armor_ChampionsBelt.rcp +0 -0
  301. data/spec/fixtures/Recipe/T08_Armor_Chest.rcp +0 -0
  302. data/spec/fixtures/Recipe/T08_Armor_Cloak.rcp +0 -0
  303. data/spec/fixtures/Recipe/T08_Armor_Gloves.rcp +0 -0
  304. data/spec/fixtures/Recipe/T08_Armor_Helm.rcp +0 -0
  305. data/spec/fixtures/Recipe/T08_Armor_Pants.rcp +0 -0
  306. data/spec/fixtures/Recipe/T08_Armor_Shield.rcp +0 -0
  307. data/spec/fixtures/Recipe/T08_Armor_Shoulders.rcp +0 -0
  308. data/spec/fixtures/Recipe/T08_Armor_SpiritStone.rcp +0 -0
  309. data/spec/fixtures/Recipe/T08_Armor_VoodooMask.rcp +0 -0
  310. data/spec/fixtures/Recipe/T08_Armor_WizardHat.rcp +0 -0
  311. data/spec/fixtures/Recipe/T08_Legendary_Armor_Boots.rcp +0 -0
  312. data/spec/fixtures/Recipe/T08_Legendary_Set_Hell_002_Belt.rcp +0 -0
  313. data/spec/fixtures/Recipe/T08_Legendary_Set_Hell_002_Bracers.rcp +0 -0
  314. data/spec/fixtures/Recipe/T08_Legendary_Set_Hell_002_Helm.rcp +0 -0
  315. data/spec/fixtures/Recipe/T08_Legendary_Weapon_Crossbow.rcp +0 -0
  316. data/spec/fixtures/Recipe/T08_Weapon_Axe_2H.rcp +0 -0
  317. data/spec/fixtures/Recipe/T08_Weapon_Crossbow.rcp +0 -0
  318. data/spec/fixtures/Recipe/T08_Weapon_Dagger.rcp +0 -0
  319. data/spec/fixtures/Recipe/T08_Weapon_Fist.rcp +0 -0
  320. data/spec/fixtures/Recipe/T08_Weapon_HandCrossbow.rcp +0 -0
  321. data/spec/fixtures/Recipe/T08_Weapon_Mace_1H.rcp +0 -0
  322. data/spec/fixtures/Recipe/T08_Weapon_MightyWeapon_2H.rcp +0 -0
  323. data/spec/fixtures/Recipe/T08_Weapon_Mojo.rcp +0 -0
  324. data/spec/fixtures/Recipe/T08_Weapon_Sword_1H.rcp +0 -0
  325. data/spec/fixtures/Recipe/T09_Armor_Belt.rcp +0 -0
  326. data/spec/fixtures/Recipe/T09_Armor_Boots.rcp +0 -0
  327. data/spec/fixtures/Recipe/T09_Armor_Bracers.rcp +0 -0
  328. data/spec/fixtures/Recipe/T09_Armor_Chest.rcp +0 -0
  329. data/spec/fixtures/Recipe/T09_Armor_Gloves.rcp +0 -0
  330. data/spec/fixtures/Recipe/T09_Armor_Helm.rcp +0 -0
  331. data/spec/fixtures/Recipe/T09_Armor_Pants.rcp +0 -0
  332. data/spec/fixtures/Recipe/T09_Armor_Shield.rcp +0 -0
  333. data/spec/fixtures/Recipe/T09_Armor_Shoulders.rcp +0 -0
  334. data/spec/fixtures/Recipe/T09_Weapon_Axe_1H.rcp +0 -0
  335. data/spec/fixtures/Recipe/T09_Weapon_Bow.rcp +0 -0
  336. data/spec/fixtures/Recipe/T09_Weapon_CeremonialKnife.rcp +0 -0
  337. data/spec/fixtures/Recipe/T09_Weapon_CombatStaff.rcp +0 -0
  338. data/spec/fixtures/Recipe/T09_Weapon_Mace_2H.rcp +0 -0
  339. data/spec/fixtures/Recipe/T09_Weapon_MightyWeapon_1H.rcp +0 -0
  340. data/spec/fixtures/Recipe/T09_Weapon_Orb.rcp +0 -0
  341. data/spec/fixtures/Recipe/T09_Weapon_Quiver.rcp +0 -0
  342. data/spec/fixtures/Recipe/T09_Weapon_Staff.rcp +0 -0
  343. data/spec/fixtures/Recipe/T09_Weapon_Wand.rcp +0 -0
  344. data/spec/fixtures/Recipe/T10_Armor_Belt_04.rcp +0 -0
  345. data/spec/fixtures/Recipe/T10_Armor_Belt_05.rcp +0 -0
  346. data/spec/fixtures/Recipe/T10_Armor_Belt_06.rcp +0 -0
  347. data/spec/fixtures/Recipe/T10_Armor_Boots_04.rcp +0 -0
  348. data/spec/fixtures/Recipe/T10_Armor_Boots_05.rcp +0 -0
  349. data/spec/fixtures/Recipe/T10_Armor_Boots_06.rcp +0 -0
  350. data/spec/fixtures/Recipe/T10_Armor_Bracers_04.rcp +0 -0
  351. data/spec/fixtures/Recipe/T10_Armor_Bracers_05.rcp +0 -0
  352. data/spec/fixtures/Recipe/T10_Armor_Bracers_06.rcp +0 -0
  353. data/spec/fixtures/Recipe/T10_Armor_ChampionsBelt_06.rcp +0 -0
  354. data/spec/fixtures/Recipe/T10_Armor_Chest_04.rcp +0 -0
  355. data/spec/fixtures/Recipe/T10_Armor_Chest_05.rcp +0 -0
  356. data/spec/fixtures/Recipe/T10_Armor_Chest_06.rcp +0 -0
  357. data/spec/fixtures/Recipe/T10_Armor_Cloak_06.rcp +0 -0
  358. data/spec/fixtures/Recipe/T10_Armor_Gloves_04.rcp +0 -0
  359. data/spec/fixtures/Recipe/T10_Armor_Gloves_05.rcp +0 -0
  360. data/spec/fixtures/Recipe/T10_Armor_Gloves_06.rcp +0 -0
  361. data/spec/fixtures/Recipe/T10_Armor_Helm_04.rcp +0 -0
  362. data/spec/fixtures/Recipe/T10_Armor_Helm_05.rcp +0 -0
  363. data/spec/fixtures/Recipe/T10_Armor_Helm_06.rcp +0 -0
  364. data/spec/fixtures/Recipe/T10_Armor_Pants_04.rcp +0 -0
  365. data/spec/fixtures/Recipe/T10_Armor_Pants_05.rcp +0 -0
  366. data/spec/fixtures/Recipe/T10_Armor_Pants_06.rcp +0 -0
  367. data/spec/fixtures/Recipe/T10_Armor_Shield_04.rcp +0 -0
  368. data/spec/fixtures/Recipe/T10_Armor_Shield_05.rcp +0 -0
  369. data/spec/fixtures/Recipe/T10_Armor_Shield_06.rcp +0 -0
  370. data/spec/fixtures/Recipe/T10_Armor_Shoulders_04.rcp +0 -0
  371. data/spec/fixtures/Recipe/T10_Armor_Shoulders_05.rcp +0 -0
  372. data/spec/fixtures/Recipe/T10_Armor_Shoulders_06.rcp +0 -0
  373. data/spec/fixtures/Recipe/T10_Armor_SpiritStone_06.rcp +0 -0
  374. data/spec/fixtures/Recipe/T10_Armor_VoodooMask_06.rcp +0 -0
  375. data/spec/fixtures/Recipe/T10_Armor_WizardHat_06.rcp +0 -0
  376. data/spec/fixtures/Recipe/T10_Legendary_Armor_Bracers.rcp +0 -0
  377. data/spec/fixtures/Recipe/T10_Legendary_Armor_Chest.rcp +0 -0
  378. data/spec/fixtures/Recipe/T10_Legendary_Armor_Helm.rcp +0 -0
  379. data/spec/fixtures/Recipe/T10_Legendary_Armor_Pants.rcp +0 -0
  380. data/spec/fixtures/Recipe/T10_Legendary_Armor_Shoulders.rcp +0 -0
  381. data/spec/fixtures/Recipe/T10_Legendary_Set_Inferno_001_Belt.rcp +0 -0
  382. data/spec/fixtures/Recipe/T10_Legendary_Set_Inferno_001_Bracers.rcp +0 -0
  383. data/spec/fixtures/Recipe/T10_Legendary_Set_Inferno_001_Chest.rcp +0 -0
  384. data/spec/fixtures/Recipe/T10_Legendary_Set_Inferno_001_Pants.rcp +0 -0
  385. data/spec/fixtures/Recipe/T10_Legendary_Set_Inferno_001_Shoulders.rcp +0 -0
  386. data/spec/fixtures/Recipe/T10_Legendary_Set_Inferno_002_Boots.rcp +0 -0
  387. data/spec/fixtures/Recipe/T10_Legendary_Set_Inferno_002_Gloves.rcp +0 -0
  388. data/spec/fixtures/Recipe/T10_Legendary_Set_Inferno_002_Helm.rcp +0 -0
  389. data/spec/fixtures/Recipe/T10_Legendary_Set_Inferno_003_Axe_1H.rcp +0 -0
  390. data/spec/fixtures/Recipe/T10_Legendary_Set_Inferno_003_CeremonialKnife.rcp +0 -0
  391. data/spec/fixtures/Recipe/T10_Legendary_Set_Inferno_003_Fist.rcp +0 -0
  392. data/spec/fixtures/Recipe/T10_Legendary_Set_Inferno_003_HandCrossbow.rcp +0 -0
  393. data/spec/fixtures/Recipe/T10_Legendary_Set_Inferno_003_MightyWeapon_1H.rcp +0 -0
  394. data/spec/fixtures/Recipe/T10_Legendary_Set_Inferno_003_Shield.rcp +0 -0
  395. data/spec/fixtures/Recipe/T10_Legendary_Set_Inferno_003_Wand.rcp +0 -0
  396. data/spec/fixtures/Recipe/T10_Legendary_Weapon_Axe_2H.rcp +0 -0
  397. data/spec/fixtures/Recipe/T10_Legendary_Weapon_Bow.rcp +0 -0
  398. data/spec/fixtures/Recipe/T10_Legendary_Weapon_CombatStaff.rcp +0 -0
  399. data/spec/fixtures/Recipe/T10_Legendary_Weapon_Dagger.rcp +0 -0
  400. data/spec/fixtures/Recipe/T10_Legendary_Weapon_Mace_1H.rcp +0 -0
  401. data/spec/fixtures/Recipe/T10_Legendary_Weapon_Quiver.rcp +0 -0
  402. data/spec/fixtures/Recipe/T10_Legendary_Weapon_Sword_1H.rcp +0 -0
  403. data/spec/fixtures/Recipe/T10_Legendary_Weapon_Wand.rcp +0 -0
  404. data/spec/fixtures/Recipe/T10_Weapon_Axe_1H_04.rcp +0 -0
  405. data/spec/fixtures/Recipe/T10_Weapon_Axe_1H_05.rcp +0 -0
  406. data/spec/fixtures/Recipe/T10_Weapon_Axe_1H_06.rcp +0 -0
  407. data/spec/fixtures/Recipe/T10_Weapon_Axe_2H_04.rcp +0 -0
  408. data/spec/fixtures/Recipe/T10_Weapon_Axe_2H_05.rcp +0 -0
  409. data/spec/fixtures/Recipe/T10_Weapon_Axe_2H_06.rcp +0 -0
  410. data/spec/fixtures/Recipe/T10_Weapon_Bow_04.rcp +0 -0
  411. data/spec/fixtures/Recipe/T10_Weapon_Bow_05.rcp +0 -0
  412. data/spec/fixtures/Recipe/T10_Weapon_Bow_06.rcp +0 -0
  413. data/spec/fixtures/Recipe/T10_Weapon_CeremonialKnife_04.rcp +0 -0
  414. data/spec/fixtures/Recipe/T10_Weapon_CeremonialKnife_05.rcp +0 -0
  415. data/spec/fixtures/Recipe/T10_Weapon_CeremonialKnife_06.rcp +0 -0
  416. data/spec/fixtures/Recipe/T10_Weapon_CombatStaff_04.rcp +0 -0
  417. data/spec/fixtures/Recipe/T10_Weapon_CombatStaff_05.rcp +0 -0
  418. data/spec/fixtures/Recipe/T10_Weapon_CombatStaff_06.rcp +0 -0
  419. data/spec/fixtures/Recipe/T10_Weapon_Crossbow_04.rcp +0 -0
  420. data/spec/fixtures/Recipe/T10_Weapon_Crossbow_05.rcp +0 -0
  421. data/spec/fixtures/Recipe/T10_Weapon_Crossbow_06.rcp +0 -0
  422. data/spec/fixtures/Recipe/T10_Weapon_Dagger_04.rcp +0 -0
  423. data/spec/fixtures/Recipe/T10_Weapon_Dagger_05.rcp +0 -0
  424. data/spec/fixtures/Recipe/T10_Weapon_Dagger_06.rcp +0 -0
  425. data/spec/fixtures/Recipe/T10_Weapon_Fist_04.rcp +0 -0
  426. data/spec/fixtures/Recipe/T10_Weapon_Fist_05.rcp +0 -0
  427. data/spec/fixtures/Recipe/T10_Weapon_Fist_06.rcp +0 -0
  428. data/spec/fixtures/Recipe/T10_Weapon_HandCrossbow_04.rcp +0 -0
  429. data/spec/fixtures/Recipe/T10_Weapon_HandCrossbow_05.rcp +0 -0
  430. data/spec/fixtures/Recipe/T10_Weapon_HandCrossbow_06.rcp +0 -0
  431. data/spec/fixtures/Recipe/T10_Weapon_Mace_1H_04.rcp +0 -0
  432. data/spec/fixtures/Recipe/T10_Weapon_Mace_1H_05.rcp +0 -0
  433. data/spec/fixtures/Recipe/T10_Weapon_Mace_1H_06.rcp +0 -0
  434. data/spec/fixtures/Recipe/T10_Weapon_Mace_2H_04.rcp +0 -0
  435. data/spec/fixtures/Recipe/T10_Weapon_Mace_2H_05.rcp +0 -0
  436. data/spec/fixtures/Recipe/T10_Weapon_Mace_2H_06.rcp +0 -0
  437. data/spec/fixtures/Recipe/T10_Weapon_MightyWeapon_1H_04.rcp +0 -0
  438. data/spec/fixtures/Recipe/T10_Weapon_MightyWeapon_1H_05.rcp +0 -0
  439. data/spec/fixtures/Recipe/T10_Weapon_MightyWeapon_1H_06.rcp +0 -0
  440. data/spec/fixtures/Recipe/T10_Weapon_MightyWeapon_2H_04.rcp +0 -0
  441. data/spec/fixtures/Recipe/T10_Weapon_MightyWeapon_2H_05.rcp +0 -0
  442. data/spec/fixtures/Recipe/T10_Weapon_MightyWeapon_2H_06.rcp +0 -0
  443. data/spec/fixtures/Recipe/T10_Weapon_Mojo_04.rcp +0 -0
  444. data/spec/fixtures/Recipe/T10_Weapon_Mojo_05.rcp +0 -0
  445. data/spec/fixtures/Recipe/T10_Weapon_Mojo_06.rcp +0 -0
  446. data/spec/fixtures/Recipe/T10_Weapon_Orb_04.rcp +0 -0
  447. data/spec/fixtures/Recipe/T10_Weapon_Orb_05.rcp +0 -0
  448. data/spec/fixtures/Recipe/T10_Weapon_Orb_06.rcp +0 -0
  449. data/spec/fixtures/Recipe/T10_Weapon_Quiver_04.rcp +0 -0
  450. data/spec/fixtures/Recipe/T10_Weapon_Quiver_05.rcp +0 -0
  451. data/spec/fixtures/Recipe/T10_Weapon_Quiver_06.rcp +0 -0
  452. data/spec/fixtures/Recipe/T10_Weapon_Staff_04.rcp +0 -0
  453. data/spec/fixtures/Recipe/T10_Weapon_Staff_05.rcp +0 -0
  454. data/spec/fixtures/Recipe/T10_Weapon_Staff_06.rcp +0 -0
  455. data/spec/fixtures/Recipe/T10_Weapon_Sword_1H_04.rcp +0 -0
  456. data/spec/fixtures/Recipe/T10_Weapon_Sword_1H_05.rcp +0 -0
  457. data/spec/fixtures/Recipe/T10_Weapon_Sword_1H_06.rcp +0 -0
  458. data/spec/fixtures/Recipe/T10_Weapon_Sword_2H_04.rcp +0 -0
  459. data/spec/fixtures/Recipe/T10_Weapon_Sword_2H_05.rcp +0 -0
  460. data/spec/fixtures/Recipe/T10_Weapon_Sword_2H_06.rcp +0 -0
  461. data/spec/fixtures/Recipe/T10_Weapon_Wand_04.rcp +0 -0
  462. data/spec/fixtures/Recipe/T10_Weapon_Wand_05.rcp +0 -0
  463. data/spec/fixtures/Recipe/T10_Weapon_Wand_06.rcp +0 -0
  464. data/spec/integration/actor_spec.rb +15 -36
  465. data/spec/integration/recipe_spec.rb +36 -0
  466. data/spec/integration/string_list_spec.rb +26 -18
  467. data/spec/unit/core_data/game_balance/recipes_spec.rb +14 -0
  468. data/spec/unit/csv_generator/csv_generator_spec.rb +5 -5
  469. data/spec/unit/csv_generator/item_enhancements_spec.rb +11 -0
  470. data/spec/unit/csv_generator/item_spec.rb +1 -1
  471. data/spec/unit/csv_generator/recipe_details_spec.rb +12 -0
  472. data/spec/unit/csv_generator/recipes_spec.rb +17 -0
  473. data/spec/unit/csv_generator/string_list_spec.rb +12 -0
  474. data/spec/unit/recipe_spec.rb +13 -0
  475. metadata +928 -13
@@ -6,48 +6,27 @@ describe D3MPQ::CoreData::Actor, :integration => true do
6
6
 
7
7
  actor_path = "spec/fixtures/CoreData/Actor/"
8
8
 
9
-
10
-
11
9
  dir = Dir.open(actor_path)
12
10
  actors = dir.entries
13
11
  actors = actors.delete_if{ |e| e == "." || e == ".."}
14
12
  actors = actors.map{ |a| "#{actor_path}#{a}" }
15
13
 
16
-
17
- # dir.entries.sort.each do |f|
18
- # next if f == "." || f == ".."
19
-
20
- actors.delete_if do |a|
21
- temp_file = File.new(a)
22
- size = temp_file.size
23
- temp_file.close
24
-
25
- if size == 0
26
- warn "[SKIP] #{a}"
27
- true
28
- else
29
- false
14
+ specify "Analyzer for D3MPQ::CoreData::Actor" do
15
+ actors.delete_if do |a|
16
+ temp_file = File.new(a)
17
+ size = temp_file.size
18
+ temp_file.close
19
+
20
+ if size == 0
21
+ warn "[SKIP] #{a}"
22
+ true
23
+ else
24
+ false
25
+ end
30
26
  end
31
- end
32
- # file = File.join(dir, f)
33
27
 
34
- # temp_file = File.new(file)
35
- # size = temp_file.size
36
- # temp_file.close
37
-
38
- # if size == 0
39
- # warn "[EMPTY FILE]#{f}"
40
- # next
41
- # end
42
-
43
- describe "Analyzer for #{parser.to_s}#" do
44
- subject { D3MPQ::Analyzer.new(parser, actors, nil) }
45
- specify { subject.write }
46
-
47
- # specify do
48
- # BinData::trace_reading { parser.read(File.open(file)) }
49
- # end
50
- end
51
- # end
28
+ parser = D3MPQ::Analyzer.new(parser, actors, nil)
29
+ parser.write
30
+ end
52
31
  end
53
32
 
@@ -0,0 +1,36 @@
1
+ require 'spec_helper'
2
+
3
+ # Run IntegrationTest against MPQ
4
+ describe D3MPQ::Recipe, :integration => true do
5
+ parser = D3MPQ::Recipe
6
+
7
+ specify "Analyzer for D3MPQ::Recipe" do
8
+ dir = Dir.open("spec/fixtures/Recipe/")
9
+ exceptions = []
10
+
11
+ dir.entries.each do |f|
12
+ next if f == "." || f == ".."
13
+
14
+ file = File.join(dir, f)
15
+ temp_file = File.new(file)
16
+ size = temp_file.size
17
+ temp_file.close
18
+
19
+ if size == 0
20
+ warn "[EMPTY FILE]#{f}"
21
+ next
22
+ end
23
+
24
+ analyzer = D3MPQ::Analyzer.new(parser, file)
25
+
26
+ begin
27
+ analyzer.write
28
+ rescue Exception => e
29
+ warn "[FAILED] #{f}\n#{e.inspect}"
30
+ exceptions << e
31
+ end
32
+ end
33
+ raise "#{exceptions.count} errors" unless exceptions.empty?
34
+ end
35
+ end
36
+
@@ -4,27 +4,35 @@ require 'spec_helper'
4
4
  describe D3MPQ::StringList, :integration => true do
5
5
  parser = D3MPQ::StringList
6
6
 
7
- dir = Dir.open("spec/fixtures/StringList/")
8
- dir.entries.each do |f|
9
- next if f == "." || f == ".."
10
-
11
- file = File.join(dir, f)
12
-
13
- temp_file = File.new(file)
14
- size = temp_file.size
15
- temp_file.close
16
-
17
- if size == 0
18
- # warn "[EMPTY FILE]#{f}"
19
- next
7
+ specify "Analyzer for D3MPQ::StringList" do
8
+ dir = Dir.open("spec/fixtures/StringList/")
9
+ exceptions = []
10
+
11
+ dir.entries.each do |f|
12
+ next if f == "." || f == ".."
13
+
14
+ file = File.join(dir, f)
15
+ temp_file = File.new(file)
16
+ size = temp_file.size
17
+ temp_file.close
18
+
19
+ if size == 0
20
+ warn "[EMPTY FILE]#{f}"
21
+ next
22
+ end
23
+
24
+ analyzer = D3MPQ::Analyzer.new(parser, file, nil)
25
+
26
+ begin
27
+ expect { analyzer.write }.to_not raise_error
28
+ rescue Exception => e
29
+ warn "[FAILED] #{f}\n#{e.inspect}"
30
+ exceptions << e
31
+ end
20
32
  end
21
33
 
34
+ raise "#{exceptions.count} errors" unless exceptions.empty?
22
35
 
23
-
24
- describe "Analyzer for #{parser.to_s}##{file}" do
25
- subject { D3MPQ::Analyzer.new(parser, file) }
26
- specify { expect { subject.write }.to_not raise_error }
27
- end
28
36
  end
29
37
  end
30
38
 
@@ -0,0 +1,14 @@
1
+ require 'spec_helper'
2
+
3
+ describe D3MPQ::CoreData::GameBalance::Recipes do
4
+ let(:io) { File.open("spec/fixtures/CoreData/GameBalance/RecipesBlacksmith.gam") }
5
+
6
+ before(:all) do
7
+ subject.read(io)
8
+ # BinData::trace_reading { subject.read(io) }
9
+ end
10
+
11
+ its(:variable_content) { subject.size.should == 0 }
12
+ its(:rest) { should == "" }
13
+ end
14
+
@@ -13,11 +13,11 @@ describe D3MPQ::CSVGenerator do
13
13
  end
14
14
  end
15
15
 
16
- describe "#write" do
17
- let(:entries) { Dir.open(dir).entries[0,10].map { |e| "spec/fixtures/StringList/#{e}" } }
18
- let(:generator) { D3MPQ::CSVGenerator::StringList.new(entries) }
16
+ # describe "#write" do
17
+ # let(:entries) { Dir.open(dir).entries[0,10].map { |e| "spec/fixtures/StringList/#{e}" } }
18
+ # let(:generator) { D3MPQ::CSVGenerator::StringList.new(entries) }
19
19
 
20
- specify { generator.write }
21
- end
20
+ # specify { generator.write }
21
+ # end
22
22
  end
23
23
 
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe D3MPQ::CSVGenerator::ItemEnhancements do
4
+ let(:dir) { "spec/fixtures/CoreData/GameBalance/ItemEnhancements.gam" }
5
+
6
+ specify "#write" do
7
+ subject.files = dir
8
+ subject.write
9
+ end
10
+ end
11
+
@@ -8,7 +8,7 @@ describe D3MPQ::CSVGenerator::Items do
8
8
  "Items_Other.gam",
9
9
  "Items_Quests_Beta.gam"
10
10
  ].each do |file_name|
11
- context "when called with: Items_Armor.gam" do
11
+ context "when called with: #{file_name}" do
12
12
  let(:input) { "spec/fixtures/CoreData/GameBalance/#{file_name}" }
13
13
  specify { subject.files = input; subject.write }
14
14
  end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ describe D3MPQ::CSVGenerator::RecipeDetails do
4
+ let(:dir) { "spec/fixtures/Recipe" }
5
+ let(:entries) { Dir.open(dir).entries[0,10].map { |e| "spec/fixtures/Recipe/#{e}" } }
6
+
7
+ specify "#write" do
8
+ subject.files = entries
9
+ subject.write
10
+ end
11
+ end
12
+
@@ -0,0 +1,17 @@
1
+ require 'spec_helper'
2
+
3
+ describe D3MPQ::CSVGenerator::Recipes do
4
+ describe "#write" do
5
+ [
6
+ "RecipesBlacksmith.gam",
7
+ "RecipesJeweler.gam",
8
+ "RecipesMystic.gam"
9
+ ].each do |file_name|
10
+ context "when called with: #{file_name}" do
11
+ let(:input) { "spec/fixtures/CoreData/GameBalance/#{file_name}" }
12
+ specify { subject.files = input; subject.write }
13
+ end
14
+ end
15
+ end
16
+ end
17
+
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ describe D3MPQ::CSVGenerator::StringList do
4
+ let(:dir) { "spec/fixtures/StringList" }
5
+ let(:entries) { Dir.open(dir).entries[0,10].map { |e| "spec/fixtures/StringList/#{e}" } }
6
+
7
+ specify "#write" do
8
+ subject.files = entries
9
+ subject.write
10
+ end
11
+ end
12
+
@@ -0,0 +1,13 @@
1
+ require 'spec_helper'
2
+
3
+ describe D3MPQ::Recipe do
4
+ let(:io) { File.open("spec/fixtures/Recipe/T01_Armor_Belt.rcp") }
5
+
6
+ before(:all) do
7
+ subject.read(io)
8
+ # BinData::trace_reading { subject.read(io) }
9
+ end
10
+
11
+ specify { subject.rest.length.should == 0 }
12
+ end
13
+