From f26fa714541b6f34b2829aa02b5159fcfaace177 Mon Sep 17 00:00:00 2001 From: He-Man Date: Wed, 1 Nov 2017 17:08:45 +0100 Subject: [PATCH] Added FuelTank to Loot / Crafting / Pricing Thanks @DB for reporting! --- Sources/epoch_config/Configs/CfgCrafting.hpp | 11 +++++++++-- Sources/epoch_config/Configs/CfgItemSort.hpp | 1 + Sources/epoch_config/Configs/CfgPricing.hpp | 4 ++++ Sources/epoch_server_settings/configs/CfgLootTable.h | 1 + .../epoch_server_settings/configs/CfgLootTable_CUP.h | 1 + .../epoch_server_settings/configs/CfgLootTable_MAD.h | 1 + .../configs/CfgLootTable_MADCUP.h | 1 + 7 files changed, 18 insertions(+), 2 deletions(-) diff --git a/Sources/epoch_config/Configs/CfgCrafting.hpp b/Sources/epoch_config/Configs/CfgCrafting.hpp index 54005af5..63b83877 100644 --- a/Sources/epoch_config/Configs/CfgCrafting.hpp +++ b/Sources/epoch_config/Configs/CfgCrafting.hpp @@ -424,7 +424,7 @@ class CfgCrafting }; class ItemCorrugated : Item { - usedIn[] = {"KitShelf","ItemCorrugatedLg","VehicleRepairLg","EngineParts","KitSink","KitFieldToilet","KitWaterPump","KitLightPole"}; + usedIn[] = {"KitShelf","ItemCorrugatedLg","VehicleRepairLg","EngineParts","KitSink","KitFieldToilet","KitWaterPump","KitLightPole","FuelTank"}; nearby[] = {{"Fire","","fire",{1,{"ALL"}},3,1,1,0}}; recipe[] = {{"ItemScraps",2}}; previewPosition[] = {0.791088,1,0.300004}; @@ -452,7 +452,7 @@ class CfgCrafting }; class VehicleRepair : Part { - usedIn[] = {"VehicleRepairLg","EngineParts","SpareTire","KitVehicleUpgradeI_200_EPOCH"}; + usedIn[] = {"VehicleRepairLg","EngineParts","SpareTire","KitVehicleUpgradeI_200_EPOCH","FuelTank"}; previewPosition[] = {0.787659,1,0.30098}; previewScale = 0.45; previewVector = 1.5; @@ -493,6 +493,13 @@ class CfgCrafting previewScale = 0.2; previewVector = 0.5; }; + class FuelTank : Item + { + recipe[] = {{"ItemCorrugated",1},{"VehicleRepair",1} }; + previewPosition[] = {0.8,1,0.26}; + previewScale = 0.4; + previewVector = 1; + }; class EpochRadio0 : Part { usedIn[] = {"EpochRadio1"}; diff --git a/Sources/epoch_config/Configs/CfgItemSort.hpp b/Sources/epoch_config/Configs/CfgItemSort.hpp index 39c2b031..ff070a82 100644 --- a/Sources/epoch_config/Configs/CfgItemSort.hpp +++ b/Sources/epoch_config/Configs/CfgItemSort.hpp @@ -1041,6 +1041,7 @@ class CfgItemSort "ItemGlass", "ItemDuctTape", "ItemRotor", + "FuelTank", "VehicleRepair", "VehicleRepairLg", "ItemDocument", diff --git a/Sources/epoch_config/Configs/CfgPricing.hpp b/Sources/epoch_config/Configs/CfgPricing.hpp index 96ce45e3..19ecf509 100644 --- a/Sources/epoch_config/Configs/CfgPricing.hpp +++ b/Sources/epoch_config/Configs/CfgPricing.hpp @@ -410,6 +410,10 @@ class CfgPricing { price = 40; }; + class FuelTank + { + price = 48; + }; class WhiskeyNoodle { price = 80; diff --git a/Sources/epoch_server_settings/configs/CfgLootTable.h b/Sources/epoch_server_settings/configs/CfgLootTable.h index 96e1b34a..32c03c45 100644 --- a/Sources/epoch_server_settings/configs/CfgLootTable.h +++ b/Sources/epoch_server_settings/configs/CfgLootTable.h @@ -89,6 +89,7 @@ class CfgLootTable { { "EngineBlock", "magazine" }, 10 }, { { "ItemGlass", "magazine" }, 15 }, { { "ItemDuctTape", "magazine" }, 20 }, + { { "FuelTank", "magazine" }, 4 }, { { "ItemRotor", "magazine" }, 5 } }; }; diff --git a/Sources/epoch_server_settings/configs/CfgLootTable_CUP.h b/Sources/epoch_server_settings/configs/CfgLootTable_CUP.h index 799baad4..58942d55 100644 --- a/Sources/epoch_server_settings/configs/CfgLootTable_CUP.h +++ b/Sources/epoch_server_settings/configs/CfgLootTable_CUP.h @@ -89,6 +89,7 @@ class CfgLootTable_CUP { { "EngineBlock", "magazine" }, 10 }, { { "ItemGlass", "magazine" }, 15 }, { { "ItemDuctTape", "magazine" }, 20 }, + { { "FuelTank", "magazine" }, 4 }, { { "ItemRotor", "magazine" }, 5 } }; }; diff --git a/Sources/epoch_server_settings/configs/CfgLootTable_MAD.h b/Sources/epoch_server_settings/configs/CfgLootTable_MAD.h index f75ec112..fee62f99 100644 --- a/Sources/epoch_server_settings/configs/CfgLootTable_MAD.h +++ b/Sources/epoch_server_settings/configs/CfgLootTable_MAD.h @@ -89,6 +89,7 @@ class CfgLootTable_MAD { { "EngineBlock", "magazine" }, 10 }, { { "ItemGlass", "magazine" }, 15 }, { { "ItemDuctTape", "magazine" }, 20 }, + { { "FuelTank", "magazine" }, 4 }, { { "ItemRotor", "magazine" }, 5 } }; }; diff --git a/Sources/epoch_server_settings/configs/CfgLootTable_MADCUP.h b/Sources/epoch_server_settings/configs/CfgLootTable_MADCUP.h index 2e4b79f1..be9c497d 100644 --- a/Sources/epoch_server_settings/configs/CfgLootTable_MADCUP.h +++ b/Sources/epoch_server_settings/configs/CfgLootTable_MADCUP.h @@ -89,6 +89,7 @@ class CfgLootTable_MADCUP { { "EngineBlock", "magazine" }, 10 }, { { "ItemGlass", "magazine" }, 15 }, { { "ItemDuctTape", "magazine" }, 20 }, + { { "FuelTank", "magazine" }, 4 }, { { "ItemRotor", "magazine" }, 5 } }; };