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.
- data/lib/bindata_ext/mod_code.rb +3 -2
- data/lib/d3_mpq/analyzer.rb +9 -0
- data/lib/d3_mpq/commands.rb +3 -0
- data/lib/d3_mpq/core_data/game_balance/item_enhancements.rb +14 -5
- data/lib/d3_mpq/core_data/game_balance/recipes.rb +23 -0
- data/lib/d3_mpq/core_data/game_balance.rb +1 -0
- data/lib/d3_mpq/csv_generator/affix_list.rb +1 -1
- data/lib/d3_mpq/csv_generator/item_enhancements.rb +34 -0
- data/lib/d3_mpq/csv_generator/recipe_details.rb +23 -0
- data/lib/d3_mpq/csv_generator/recipes.rb +24 -0
- data/lib/d3_mpq/csv_generator.rb +4 -1
- data/lib/d3_mpq/recipe.rb +19 -0
- data/lib/d3_mpq/version.rb +1 -1
- data/lib/d3_mpq/version.rb~ +1 -1
- data/lib/d3_mpq.rb +1 -0
- data/spec/fixtures/Recipe/Axe Bad Data.rcp +0 -0
- data/spec/fixtures/Recipe/Convert_Tier_01A_Tier_02A.rcp +0 -0
- data/spec/fixtures/Recipe/Convert_Tier_01B_Tier_02B.rcp +0 -0
- data/spec/fixtures/Recipe/Convert_Tier_01C_Tier_02C.rcp +0 -0
- data/spec/fixtures/Recipe/Convert_Tier_01D_Tier_02D.rcp +0 -0
- data/spec/fixtures/Recipe/Convert_Tier_02A_Tier_03A.rcp +0 -0
- data/spec/fixtures/Recipe/Convert_Tier_02B_Tier_03B.rcp +0 -0
- data/spec/fixtures/Recipe/Convert_Tier_02C_Tier_03C.rcp +0 -0
- data/spec/fixtures/Recipe/Convert_Tier_02D_Tier_03D.rcp +0 -0
- data/spec/fixtures/Recipe/Convert_Tier_03A_Tier_04A.rcp +0 -0
- data/spec/fixtures/Recipe/Convert_Tier_03B_Tier_04B.rcp +0 -0
- data/spec/fixtures/Recipe/Convert_Tier_03C_Tier_04C.rcp +0 -0
- data/spec/fixtures/Recipe/Convert_Tier_03D_Tier_04D.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Amethyst_01_02.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Amethyst_02_03.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Amethyst_03_04.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Amethyst_04_05.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Amethyst_05_06.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Amethyst_06_07.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Amethyst_07_08.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Amethyst_08_09.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Amethyst_09_10.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Amethyst_10_11.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Amethyst_11_12.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Amethyst_12_13.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Amethyst_13_14.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Emerald_01_02.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Emerald_02_03.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Emerald_03_04.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Emerald_04_05.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Emerald_05_06.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Emerald_06_07.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Emerald_07_08.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Emerald_08_09.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Emerald_09_10.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Emerald_10_11.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Emerald_11_12.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Emerald_12_13.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Emerald_13_14.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Ruby_01_02.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Ruby_02_03.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Ruby_03_04.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Ruby_04_05.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Ruby_05_06.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Ruby_06_07.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Ruby_07_08.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Ruby_08_09.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Ruby_09_10.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Ruby_10_11.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Ruby_11_12.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Ruby_12_13.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Ruby_13_14.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Topaz_01_02.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Topaz_02_03.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Topaz_03_04.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Topaz_04_05.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Topaz_05_06.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Topaz_06_07.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Topaz_07_08.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Topaz_08_09.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Topaz_09_10.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Topaz_10_11.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Topaz_11_12.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Topaz_12_13.rcp +0 -0
- data/spec/fixtures/Recipe/GemCombine_Topaz_13_14.rcp +0 -0
- data/spec/fixtures/Recipe/Quest_Act1_Blacksmith_AllReward.rcp +0 -0
- data/spec/fixtures/Recipe/Quest_Act1_NephPower_AllReward.rcp +0 -0
- data/spec/fixtures/Recipe/Quest_Act1_SkeletonKing_BarbReward.rcp +0 -0
- data/spec/fixtures/Recipe/Quest_Act1_SkeletonKing_DHReward.rcp +0 -0
- data/spec/fixtures/Recipe/Quest_Act1_SkeletonKing_MonkReward.rcp +0 -0
- data/spec/fixtures/Recipe/Quest_Act1_SkeletonKing_WDReward.rcp +0 -0
- data/spec/fixtures/Recipe/Quest_Act1_SkeletonKing_WizReward.rcp +0 -0
- data/spec/fixtures/Recipe/Quest_Act1_Town_BarbReward.rcp +0 -0
- data/spec/fixtures/Recipe/Quest_Act1_Town_DHReward.rcp +0 -0
- data/spec/fixtures/Recipe/Quest_Act1_Town_MonkReward.rcp +0 -0
- data/spec/fixtures/Recipe/Quest_Act1_Town_WDReward.rcp +0 -0
- data/spec/fixtures/Recipe/Quest_Act1_Town_WizReward.rcp +0 -0
- data/spec/fixtures/Recipe/Quest_RespecTome_Reward.rcp +0 -0
- data/spec/fixtures/Recipe/Quest_StoneofRecall.rcp +0 -0
- data/spec/fixtures/Recipe/Quest_UnlockBlacksmithing.rcp +0 -0
- data/spec/fixtures/Recipe/Rune_01_02.rcp +0 -0
- data/spec/fixtures/Recipe/Rune_02_03.rcp +0 -0
- data/spec/fixtures/Recipe/Rune_03_04.rcp +0 -0
- data/spec/fixtures/Recipe/Rune_04_05.rcp +0 -0
- data/spec/fixtures/Recipe/Rune_05_06.rcp +0 -0
- data/spec/fixtures/Recipe/Rune_06_07.rcp +0 -0
- data/spec/fixtures/Recipe/Smith_StaffofCow.rcp +0 -0
- data/spec/fixtures/Recipe/Smith_StaffofCow_Hell.rcp +0 -0
- data/spec/fixtures/Recipe/Smith_StaffofCow_Inferno.rcp +0 -0
- data/spec/fixtures/Recipe/Smith_StaffofCow_Nightmare.rcp +0 -0
- data/spec/fixtures/Recipe/StoneOfWealth_Reward.rcp +0 -0
- data/spec/fixtures/Recipe/T01_Armor_Belt.rcp +0 -0
- data/spec/fixtures/Recipe/T01_Armor_Boots.rcp +0 -0
- data/spec/fixtures/Recipe/T01_Armor_Bracers.rcp +0 -0
- data/spec/fixtures/Recipe/T01_Armor_ChampionsBelt.rcp +0 -0
- data/spec/fixtures/Recipe/T01_Armor_Chest.rcp +0 -0
- data/spec/fixtures/Recipe/T01_Armor_Cloak.rcp +0 -0
- data/spec/fixtures/Recipe/T01_Armor_Gloves.rcp +0 -0
- data/spec/fixtures/Recipe/T01_Armor_Helm.rcp +0 -0
- data/spec/fixtures/Recipe/T01_Armor_Pants.rcp +0 -0
- data/spec/fixtures/Recipe/T01_Armor_Shield.rcp +0 -0
- data/spec/fixtures/Recipe/T01_Armor_Shoulders.rcp +0 -0
- data/spec/fixtures/Recipe/T01_Armor_SpiritStone.rcp +0 -0
- data/spec/fixtures/Recipe/T01_Armor_VoodooMask.rcp +0 -0
- data/spec/fixtures/Recipe/T01_Armor_WizardHat.rcp +0 -0
- data/spec/fixtures/Recipe/T01_Weapon_Axe_1H.rcp +0 -0
- data/spec/fixtures/Recipe/T01_Weapon_Axe_2H.rcp +0 -0
- data/spec/fixtures/Recipe/T01_Weapon_Bow.rcp +0 -0
- data/spec/fixtures/Recipe/T01_Weapon_Crossbow.rcp +0 -0
- data/spec/fixtures/Recipe/T01_Weapon_Dagger.rcp +0 -0
- data/spec/fixtures/Recipe/T01_Weapon_Fist.rcp +0 -0
- data/spec/fixtures/Recipe/T01_Weapon_HandCrossbow.rcp +0 -0
- data/spec/fixtures/Recipe/T01_Weapon_Mace_1H.rcp +0 -0
- data/spec/fixtures/Recipe/T01_Weapon_Mace_2H.rcp +0 -0
- data/spec/fixtures/Recipe/T01_Weapon_Quiver.rcp +0 -0
- data/spec/fixtures/Recipe/T01_Weapon_Sword_1H.rcp +0 -0
- data/spec/fixtures/Recipe/T01_Weapon_Sword_2H.rcp +0 -0
- data/spec/fixtures/Recipe/T01_Weapon_Wand.rcp +0 -0
- data/spec/fixtures/Recipe/T02_Armor_Boots.rcp +0 -0
- data/spec/fixtures/Recipe/T02_Armor_Bracers.rcp +0 -0
- data/spec/fixtures/Recipe/T02_Armor_ChampionsBelt.rcp +0 -0
- data/spec/fixtures/Recipe/T02_Armor_Cloak.rcp +0 -0
- data/spec/fixtures/Recipe/T02_Armor_Gloves.rcp +0 -0
- data/spec/fixtures/Recipe/T02_Armor_Helm.rcp +0 -0
- data/spec/fixtures/Recipe/T02_Armor_Pants.rcp +0 -0
- data/spec/fixtures/Recipe/T02_Armor_Shield.rcp +0 -0
- data/spec/fixtures/Recipe/T02_Armor_Shoulders.rcp +0 -0
- data/spec/fixtures/Recipe/T02_Armor_SpiritStone.rcp +0 -0
- data/spec/fixtures/Recipe/T02_Armor_VoodooMask.rcp +0 -0
- data/spec/fixtures/Recipe/T02_Armor_WizardHat.rcp +0 -0
- data/spec/fixtures/Recipe/T02_Weapon_Axe_1H.rcp +0 -0
- data/spec/fixtures/Recipe/T02_Weapon_CeremonialKnife.rcp +0 -0
- data/spec/fixtures/Recipe/T02_Weapon_CombatStaff.rcp +0 -0
- data/spec/fixtures/Recipe/T02_Weapon_HandCrossbow.rcp +0 -0
- data/spec/fixtures/Recipe/T02_Weapon_MightyWeapon_1H.rcp +0 -0
- data/spec/fixtures/Recipe/T02_Weapon_Orb.rcp +0 -0
- data/spec/fixtures/Recipe/T02_Weapon_Quiver.rcp +0 -0
- data/spec/fixtures/Recipe/T02_Weapon_Sword_2H.rcp +0 -0
- data/spec/fixtures/Recipe/T02_Weapon_Wand.rcp +0 -0
- data/spec/fixtures/Recipe/T03_Armor_Belt.rcp +0 -0
- data/spec/fixtures/Recipe/T03_Armor_Boots.rcp +0 -0
- data/spec/fixtures/Recipe/T03_Armor_Bracers.rcp +0 -0
- data/spec/fixtures/Recipe/T03_Armor_Chest.rcp +0 -0
- data/spec/fixtures/Recipe/T03_Armor_Gloves.rcp +0 -0
- data/spec/fixtures/Recipe/T03_Armor_Helm.rcp +0 -0
- data/spec/fixtures/Recipe/T03_Armor_Pants.rcp +0 -0
- data/spec/fixtures/Recipe/T03_Armor_Shield.rcp +0 -0
- data/spec/fixtures/Recipe/T03_Armor_Shoulders.rcp +0 -0
- data/spec/fixtures/Recipe/T03_Weapon_Axe_1H.rcp +0 -0
- data/spec/fixtures/Recipe/T03_Weapon_Bow.rcp +0 -0
- data/spec/fixtures/Recipe/T03_Weapon_CombatStaff.rcp +0 -0
- data/spec/fixtures/Recipe/T03_Weapon_Dagger.rcp +0 -0
- data/spec/fixtures/Recipe/T03_Weapon_Fist.rcp +0 -0
- data/spec/fixtures/Recipe/T03_Weapon_Mace_1H.rcp +0 -0
- data/spec/fixtures/Recipe/T03_Weapon_Mace_2H.rcp +0 -0
- data/spec/fixtures/Recipe/T03_Weapon_Mojo.rcp +0 -0
- data/spec/fixtures/Recipe/T03_Weapon_Orb.rcp +0 -0
- data/spec/fixtures/Recipe/T03_Weapon_Quiver.rcp +0 -0
- data/spec/fixtures/Recipe/T03_Weapon_Sword_2H.rcp +0 -0
- data/spec/fixtures/Recipe/T03_Weapon_Wand.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Armor_Belt.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Armor_Boots.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Armor_Bracers.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Armor_Chest.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Armor_Gloves.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Armor_Helm.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Armor_Pants.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Armor_Shield.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Armor_Shoulders.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Legendary_Armor_Belt.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Legendary_Armor_Shield.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Legendary_Set_Normal_001_Chest.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Legendary_Set_Normal_001_Shoulders.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Legendary_Set_Normal_001_Sword_1H.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Legendary_Set_Normal_002_Boots.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Legendary_Set_Normal_002_Gloves.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Legendary_Set_Normal_002_Helm.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Legendary_Set_Normal_002_Pants.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Legendary_Weapon_Bow.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Legendary_Weapon_CeremonialDagger.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Legendary_Weapon_CombatStaff.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Legendary_Weapon_MightyWeapon2H.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Legendary_Weapon_Wand.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Weapon_Axe_1H.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Weapon_Axe_2H.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Weapon_CombatStaff.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Weapon_Crossbow.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Weapon_Dagger.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Weapon_Fist.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Weapon_HandCrossbow.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Weapon_Mace_1H.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Weapon_Mojo.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Weapon_Quiver.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Weapon_Staff.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Weapon_Sword_1H.rcp +0 -0
- data/spec/fixtures/Recipe/T04_Weapon_Wand.rcp +0 -0
- data/spec/fixtures/Recipe/T05_Armor_Boots.rcp +0 -0
- data/spec/fixtures/Recipe/T05_Armor_Bracers.rcp +0 -0
- data/spec/fixtures/Recipe/T05_Armor_ChampionsBelt.rcp +0 -0
- data/spec/fixtures/Recipe/T05_Armor_Chest.rcp +0 -0
- data/spec/fixtures/Recipe/T05_Armor_Cloak.rcp +0 -0
- data/spec/fixtures/Recipe/T05_Armor_Gloves.rcp +0 -0
- data/spec/fixtures/Recipe/T05_Armor_Helm.rcp +0 -0
- data/spec/fixtures/Recipe/T05_Armor_Pants.rcp +0 -0
- data/spec/fixtures/Recipe/T05_Armor_Shield.rcp +0 -0
- data/spec/fixtures/Recipe/T05_Armor_Shoulders.rcp +0 -0
- data/spec/fixtures/Recipe/T05_Armor_WizardHat.rcp +0 -0
- data/spec/fixtures/Recipe/T05_Legendary_Set_Nightmare_001_Belt.rcp +0 -0
- data/spec/fixtures/Recipe/T05_Legendary_Set_Nightmare_001_Boots.rcp +0 -0
- data/spec/fixtures/Recipe/T05_Legendary_Set_Nightmare_001_Pants.rcp +0 -0
- data/spec/fixtures/Recipe/T05_Legendary_Weapon_Axe_1H.rcp +0 -0
- data/spec/fixtures/Recipe/T05_Legendary_Weapon_Mojo.rcp +0 -0
- data/spec/fixtures/Recipe/T05_Legendary_Weapon_Staff.rcp +0 -0
- data/spec/fixtures/Recipe/T05_Legendary_Weapon_Sword_2H.rcp +0 -0
- data/spec/fixtures/Recipe/T05_Weapon_Axe_1H.rcp +0 -0
- data/spec/fixtures/Recipe/T05_Weapon_Bow.rcp +0 -0
- data/spec/fixtures/Recipe/T05_Weapon_CeremonialKnife.rcp +0 -0
- data/spec/fixtures/Recipe/T05_Weapon_CombatStaff.rcp +0 -0
- data/spec/fixtures/Recipe/T05_Weapon_Dagger.rcp +0 -0
- data/spec/fixtures/Recipe/T05_Weapon_Fist.rcp +0 -0
- data/spec/fixtures/Recipe/T05_Weapon_Mace_1H.rcp +0 -0
- data/spec/fixtures/Recipe/T05_Weapon_MightyWeapon_2H.rcp +0 -0
- data/spec/fixtures/Recipe/T05_Weapon_Quiver.rcp +0 -0
- data/spec/fixtures/Recipe/T05_Weapon_Wand.rcp +0 -0
- data/spec/fixtures/Recipe/T06_Armor_Belt.rcp +0 -0
- data/spec/fixtures/Recipe/T06_Armor_Boots.rcp +0 -0
- data/spec/fixtures/Recipe/T06_Armor_Bracers.rcp +0 -0
- data/spec/fixtures/Recipe/T06_Armor_Chest.rcp +0 -0
- data/spec/fixtures/Recipe/T06_Armor_Gloves.rcp +0 -0
- data/spec/fixtures/Recipe/T06_Armor_Helm.rcp +0 -0
- data/spec/fixtures/Recipe/T06_Armor_Pants.rcp +0 -0
- data/spec/fixtures/Recipe/T06_Armor_Shield.rcp +0 -0
- data/spec/fixtures/Recipe/T06_Armor_Shoulders.rcp +0 -0
- data/spec/fixtures/Recipe/T06_Armor_SpiritStone.rcp +0 -0
- data/spec/fixtures/Recipe/T06_Armor_VoodooMask.rcp +0 -0
- data/spec/fixtures/Recipe/T06_Armor_WizardHat.rcp +0 -0
- data/spec/fixtures/Recipe/T06_Legendary_Armor_Gloves.rcp +0 -0
- data/spec/fixtures/Recipe/T06_Legendary_Set_Nightmare_002_Bracers.rcp +0 -0
- data/spec/fixtures/Recipe/T06_Legendary_Set_Nightmare_002_Chest.rcp +0 -0
- data/spec/fixtures/Recipe/T06_Legendary_Set_Nightmare_002_Helm.rcp +0 -0
- data/spec/fixtures/Recipe/T06_Legendary_Set_Nightmare_002_Shoulders.rcp +0 -0
- data/spec/fixtures/Recipe/T06_Legendary_Weapon_HandCrossbow.rcp +0 -0
- data/spec/fixtures/Recipe/T06_Weapon_Axe_2H.rcp +0 -0
- data/spec/fixtures/Recipe/T06_Weapon_Dagger.rcp +0 -0
- data/spec/fixtures/Recipe/T06_Weapon_Fist.rcp +0 -0
- data/spec/fixtures/Recipe/T06_Weapon_HandCrossbow.rcp +0 -0
- data/spec/fixtures/Recipe/T06_Weapon_MightyWeapon_1H.rcp +0 -0
- data/spec/fixtures/Recipe/T06_Weapon_Mojo.rcp +0 -0
- data/spec/fixtures/Recipe/T06_Weapon_Orb.rcp +0 -0
- data/spec/fixtures/Recipe/T06_Weapon_Staff.rcp +0 -0
- data/spec/fixtures/Recipe/T06_Weapon_Sword_1H.rcp +0 -0
- data/spec/fixtures/Recipe/T06_Weapon_Sword_2H.rcp +0 -0
- data/spec/fixtures/Recipe/T07_Armor_Belt.rcp +0 -0
- data/spec/fixtures/Recipe/T07_Armor_Boots.rcp +0 -0
- data/spec/fixtures/Recipe/T07_Armor_Bracers.rcp +0 -0
- data/spec/fixtures/Recipe/T07_Armor_Chest.rcp +0 -0
- data/spec/fixtures/Recipe/T07_Armor_Cloak.rcp +0 -0
- data/spec/fixtures/Recipe/T07_Armor_Gloves.rcp +0 -0
- data/spec/fixtures/Recipe/T07_Armor_Helm.rcp +0 -0
- data/spec/fixtures/Recipe/T07_Armor_Pants.rcp +0 -0
- data/spec/fixtures/Recipe/T07_Armor_Shield.rcp +0 -0
- data/spec/fixtures/Recipe/T07_Armor_Shoulders.rcp +0 -0
- data/spec/fixtures/Recipe/T07_Legendary_Set_Hell_001_Boots.rcp +0 -0
- data/spec/fixtures/Recipe/T07_Legendary_Set_Hell_001_Gloves.rcp +0 -0
- data/spec/fixtures/Recipe/T07_Legendary_Set_Hell_001_Pants.rcp +0 -0
- data/spec/fixtures/Recipe/T07_Legendary_Set_Hell_001_Shoulders.rcp +0 -0
- data/spec/fixtures/Recipe/T07_Legendary_Weapon_Fist.rcp +0 -0
- data/spec/fixtures/Recipe/T07_Legendary_Weapon_Mace_2H.rcp +0 -0
- data/spec/fixtures/Recipe/T07_Legendary_Weapon_MightyWeapon_1H.rcp +0 -0
- data/spec/fixtures/Recipe/T07_Legendary_Weapon_Orb.rcp +0 -0
- data/spec/fixtures/Recipe/T07_Weapon_Axe_1H.rcp +0 -0
- data/spec/fixtures/Recipe/T07_Weapon_Bow.rcp +0 -0
- data/spec/fixtures/Recipe/T07_Weapon_CeremonialKnife.rcp +0 -0
- data/spec/fixtures/Recipe/T07_Weapon_CombatStaff.rcp +0 -0
- data/spec/fixtures/Recipe/T07_Weapon_Crossbow.rcp +0 -0
- data/spec/fixtures/Recipe/T07_Weapon_Dagger.rcp +0 -0
- data/spec/fixtures/Recipe/T07_Weapon_Mace_1H.rcp +0 -0
- data/spec/fixtures/Recipe/T07_Weapon_Mace_2H.rcp +0 -0
- data/spec/fixtures/Recipe/T07_Weapon_Quiver.rcp +0 -0
- data/spec/fixtures/Recipe/T07_Weapon_Sword_2H.rcp +0 -0
- data/spec/fixtures/Recipe/T07_Weapon_Wand.rcp +0 -0
- data/spec/fixtures/Recipe/T08_Armor_Belt.rcp +0 -0
- data/spec/fixtures/Recipe/T08_Armor_Boots.rcp +0 -0
- data/spec/fixtures/Recipe/T08_Armor_Bracers.rcp +0 -0
- data/spec/fixtures/Recipe/T08_Armor_ChampionsBelt.rcp +0 -0
- data/spec/fixtures/Recipe/T08_Armor_Chest.rcp +0 -0
- data/spec/fixtures/Recipe/T08_Armor_Cloak.rcp +0 -0
- data/spec/fixtures/Recipe/T08_Armor_Gloves.rcp +0 -0
- data/spec/fixtures/Recipe/T08_Armor_Helm.rcp +0 -0
- data/spec/fixtures/Recipe/T08_Armor_Pants.rcp +0 -0
- data/spec/fixtures/Recipe/T08_Armor_Shield.rcp +0 -0
- data/spec/fixtures/Recipe/T08_Armor_Shoulders.rcp +0 -0
- data/spec/fixtures/Recipe/T08_Armor_SpiritStone.rcp +0 -0
- data/spec/fixtures/Recipe/T08_Armor_VoodooMask.rcp +0 -0
- data/spec/fixtures/Recipe/T08_Armor_WizardHat.rcp +0 -0
- data/spec/fixtures/Recipe/T08_Legendary_Armor_Boots.rcp +0 -0
- data/spec/fixtures/Recipe/T08_Legendary_Set_Hell_002_Belt.rcp +0 -0
- data/spec/fixtures/Recipe/T08_Legendary_Set_Hell_002_Bracers.rcp +0 -0
- data/spec/fixtures/Recipe/T08_Legendary_Set_Hell_002_Helm.rcp +0 -0
- data/spec/fixtures/Recipe/T08_Legendary_Weapon_Crossbow.rcp +0 -0
- data/spec/fixtures/Recipe/T08_Weapon_Axe_2H.rcp +0 -0
- data/spec/fixtures/Recipe/T08_Weapon_Crossbow.rcp +0 -0
- data/spec/fixtures/Recipe/T08_Weapon_Dagger.rcp +0 -0
- data/spec/fixtures/Recipe/T08_Weapon_Fist.rcp +0 -0
- data/spec/fixtures/Recipe/T08_Weapon_HandCrossbow.rcp +0 -0
- data/spec/fixtures/Recipe/T08_Weapon_Mace_1H.rcp +0 -0
- data/spec/fixtures/Recipe/T08_Weapon_MightyWeapon_2H.rcp +0 -0
- data/spec/fixtures/Recipe/T08_Weapon_Mojo.rcp +0 -0
- data/spec/fixtures/Recipe/T08_Weapon_Sword_1H.rcp +0 -0
- data/spec/fixtures/Recipe/T09_Armor_Belt.rcp +0 -0
- data/spec/fixtures/Recipe/T09_Armor_Boots.rcp +0 -0
- data/spec/fixtures/Recipe/T09_Armor_Bracers.rcp +0 -0
- data/spec/fixtures/Recipe/T09_Armor_Chest.rcp +0 -0
- data/spec/fixtures/Recipe/T09_Armor_Gloves.rcp +0 -0
- data/spec/fixtures/Recipe/T09_Armor_Helm.rcp +0 -0
- data/spec/fixtures/Recipe/T09_Armor_Pants.rcp +0 -0
- data/spec/fixtures/Recipe/T09_Armor_Shield.rcp +0 -0
- data/spec/fixtures/Recipe/T09_Armor_Shoulders.rcp +0 -0
- data/spec/fixtures/Recipe/T09_Weapon_Axe_1H.rcp +0 -0
- data/spec/fixtures/Recipe/T09_Weapon_Bow.rcp +0 -0
- data/spec/fixtures/Recipe/T09_Weapon_CeremonialKnife.rcp +0 -0
- data/spec/fixtures/Recipe/T09_Weapon_CombatStaff.rcp +0 -0
- data/spec/fixtures/Recipe/T09_Weapon_Mace_2H.rcp +0 -0
- data/spec/fixtures/Recipe/T09_Weapon_MightyWeapon_1H.rcp +0 -0
- data/spec/fixtures/Recipe/T09_Weapon_Orb.rcp +0 -0
- data/spec/fixtures/Recipe/T09_Weapon_Quiver.rcp +0 -0
- data/spec/fixtures/Recipe/T09_Weapon_Staff.rcp +0 -0
- data/spec/fixtures/Recipe/T09_Weapon_Wand.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_Belt_04.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_Belt_05.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_Belt_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_Boots_04.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_Boots_05.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_Boots_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_Bracers_04.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_Bracers_05.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_Bracers_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_ChampionsBelt_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_Chest_04.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_Chest_05.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_Chest_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_Cloak_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_Gloves_04.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_Gloves_05.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_Gloves_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_Helm_04.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_Helm_05.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_Helm_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_Pants_04.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_Pants_05.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_Pants_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_Shield_04.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_Shield_05.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_Shield_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_Shoulders_04.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_Shoulders_05.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_Shoulders_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_SpiritStone_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_VoodooMask_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Armor_WizardHat_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Legendary_Armor_Bracers.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Legendary_Armor_Chest.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Legendary_Armor_Helm.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Legendary_Armor_Pants.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Legendary_Armor_Shoulders.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Legendary_Set_Inferno_001_Belt.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Legendary_Set_Inferno_001_Bracers.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Legendary_Set_Inferno_001_Chest.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Legendary_Set_Inferno_001_Pants.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Legendary_Set_Inferno_001_Shoulders.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Legendary_Set_Inferno_002_Boots.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Legendary_Set_Inferno_002_Gloves.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Legendary_Set_Inferno_002_Helm.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Legendary_Set_Inferno_003_Axe_1H.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Legendary_Set_Inferno_003_CeremonialKnife.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Legendary_Set_Inferno_003_Fist.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Legendary_Set_Inferno_003_HandCrossbow.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Legendary_Set_Inferno_003_MightyWeapon_1H.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Legendary_Set_Inferno_003_Shield.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Legendary_Set_Inferno_003_Wand.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Legendary_Weapon_Axe_2H.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Legendary_Weapon_Bow.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Legendary_Weapon_CombatStaff.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Legendary_Weapon_Dagger.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Legendary_Weapon_Mace_1H.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Legendary_Weapon_Quiver.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Legendary_Weapon_Sword_1H.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Legendary_Weapon_Wand.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Axe_1H_04.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Axe_1H_05.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Axe_1H_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Axe_2H_04.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Axe_2H_05.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Axe_2H_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Bow_04.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Bow_05.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Bow_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_CeremonialKnife_04.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_CeremonialKnife_05.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_CeremonialKnife_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_CombatStaff_04.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_CombatStaff_05.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_CombatStaff_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Crossbow_04.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Crossbow_05.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Crossbow_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Dagger_04.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Dagger_05.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Dagger_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Fist_04.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Fist_05.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Fist_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_HandCrossbow_04.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_HandCrossbow_05.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_HandCrossbow_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Mace_1H_04.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Mace_1H_05.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Mace_1H_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Mace_2H_04.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Mace_2H_05.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Mace_2H_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_MightyWeapon_1H_04.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_MightyWeapon_1H_05.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_MightyWeapon_1H_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_MightyWeapon_2H_04.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_MightyWeapon_2H_05.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_MightyWeapon_2H_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Mojo_04.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Mojo_05.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Mojo_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Orb_04.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Orb_05.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Orb_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Quiver_04.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Quiver_05.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Quiver_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Staff_04.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Staff_05.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Staff_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Sword_1H_04.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Sword_1H_05.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Sword_1H_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Sword_2H_04.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Sword_2H_05.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Sword_2H_06.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Wand_04.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Wand_05.rcp +0 -0
- data/spec/fixtures/Recipe/T10_Weapon_Wand_06.rcp +0 -0
- data/spec/integration/actor_spec.rb +15 -36
- data/spec/integration/recipe_spec.rb +36 -0
- data/spec/integration/string_list_spec.rb +26 -18
- data/spec/unit/core_data/game_balance/recipes_spec.rb +14 -0
- data/spec/unit/csv_generator/csv_generator_spec.rb +5 -5
- data/spec/unit/csv_generator/item_enhancements_spec.rb +11 -0
- data/spec/unit/csv_generator/item_spec.rb +1 -1
- data/spec/unit/csv_generator/recipe_details_spec.rb +12 -0
- data/spec/unit/csv_generator/recipes_spec.rb +17 -0
- data/spec/unit/csv_generator/string_list_spec.rb +12 -0
- data/spec/unit/recipe_spec.rb +13 -0
- metadata +928 -13
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -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
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
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
|
-
|
35
|
-
|
36
|
-
|
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
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
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
|
|
@@ -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:
|
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
|
+
|