Rename plot pole from "30m_plot_kit" to "plot_pole_kit"

Sanity change since the plot pole is not fixed at 30 meters and is
configurable.
This commit is contained in:
oiad
2016-10-08 12:51:21 +13:00
parent 8a2d95295b
commit 5bc36166a7
6 changed files with 17 additions and 8 deletions

View File

@@ -288,7 +288,7 @@ class ItemPlotDeed: CA_Magazine {
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {"workshop"};
requiretools[] = {"ItemToolbox"};
output[] = {{"30m_plot_kit",1}};
output[] = {{"plot_pole_kit",1}};
input[] = {{"ItemPlotDeed",1},{"ItemGoldBar10oz",2}};
};
};
@@ -407,4 +407,4 @@ class ItemBloodbag: CA_Magazine
script = "spawn player_useMeds;";
};
};
};
};

View File

@@ -375,7 +375,7 @@ class wood_ramp_kit: CA_Magazine
};
};
};
class 30m_plot_kit: CA_Magazine
class plot_pole_kit: CA_Magazine
{
scope = public;
count = 1;

View File

@@ -99,7 +99,7 @@ class Category_678 {
buy[] = {2,"ItemGoldBar"};
sell[] = {1,"ItemGoldBar"};
};
class 30m_plot_kit {
class plot_pole_kit {
type = "trade_items";
buy[] = {6,"ItemGoldBar10oz"};
sell[] = {6,"ItemGoldBar10oz"};

View File

@@ -458,9 +458,9 @@ class Plastic_Pole_EP1_DZ: Sign_1L_Noentry_EP1
scope = public;
offset[] = {0,2.5,0.3};
displayName = "30m Plot Pole";
displayName = $STR_EPOCH_PLAYER_246;
vehicleClass = "Fortifications";
removeoutput[] = {{"30m_plot_kit",1}};
removeoutput[] = {{"plot_pole_kit",1}};
requireplot = 0;
nounderground = 0;
};

View File

@@ -167,7 +167,7 @@ class PartWoodLumber
{
weight = 2;
};
class 30m_plot_kit
class plot_pole_kit
{
weight = 0.02;
};
@@ -226,4 +226,4 @@ class ItemFuelBarrelEmpty
class ItemOilBarrel
{
weight = 140;
};
};

View File

@@ -214,6 +214,15 @@ UPDATE character_data SET Backpack = REPLACE(Backpack, '"cinder_wall_kit"', '"ha
UPDATE character_data SET Inventory = REPLACE(Inventory, '"cinder_wall_kit"', '"half_cinder_wall_kit"') WHERE INSTR(Inventory, '"cinder_wall_kit"') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, '"cinder_wall_kit"', '"half_cinder_wall_kit"') WHERE INSTR(Inventory, '"cinder_wall_kit"') > 0;
-- ----------------------------
-- 30m_plot_kit was renamed to plot_pole_kit for sanity
-- ----------------------------
UPDATE `Traders_DATA` SET `item` = '["plot_pole_kit",1]' WHERE `item` = '["30m_plot_kit",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, '"30m_plot_kit"', '"plot_pole_kit"') WHERE INSTR(Backpack, '"30m_plot_kit"') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, '"30m_plot_kit"', '"plot_pole_kit"') WHERE INSTR(Inventory, '"30m_plot_kit"') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, '"30m_plot_kit"', '"plot_pole_kit"') WHERE INSTR(Inventory, '"30m_plot_kit"') > 0;
-- ----------------------------
-- Updated shotgun ammo names from 1.8.7
-- ----------------------------