diff --git a/Barotrauma/Content/Items/Artifacts/artifacts.xml b/Barotrauma/Content/Items/Artifacts/artifacts.xml
index ba1631cc6..01b7b8f47 100644
--- a/Barotrauma/Content/Items/Artifacts/artifacts.xml
+++ b/Barotrauma/Content/Items/Artifacts/artifacts.xml
@@ -4,7 +4,7 @@
name="Skyholder Artifact"
category="Alien"
Tags="alien"
- pickdistance="150">
+ >
@@ -26,7 +26,7 @@
name="Thermal Artifact"
category="Alien"
Tags="alien"
- pickdistance="150">
+ >
@@ -49,7 +49,7 @@
-
+ >
@@ -68,7 +68,7 @@
-
@@ -88,7 +88,7 @@
-
@@ -113,7 +113,7 @@
name="Ancient Weapon"
category="Alien"
Tags="alien,smallitem"
- pickdistance="200">
+ >
@@ -164,7 +164,7 @@
category="Alien"
Tags="alien"
linkable="true"
- pickdistance="150.0">
+ >
@@ -186,7 +186,7 @@
category="Alien"
linkable="true"
Tags="alien"
- pickdistance="150.0">
+ >
@@ -208,7 +208,7 @@
linkable="true"
category="Alien"
Tags="alien"
- pickdistance="150.0">
+ >
@@ -225,7 +225,7 @@
linkable="true"
category="Alien"
Tags="alien"
- pickdistance="150.0">
+ >
diff --git a/Barotrauma/Content/Items/Button/button.xml b/Barotrauma/Content/Items/Button/button.xml
index 35954a92c..3a4fcde6f 100644
--- a/Barotrauma/Content/Items/Button/button.xml
+++ b/Barotrauma/Content/Items/Button/button.xml
@@ -3,7 +3,7 @@
category="Electrical"
linkable="true"
tags="smallitem"
- pickdistance="150.0"
+
price="10">
diff --git a/Barotrauma/Content/Items/Diving/divinggear.xml b/Barotrauma/Content/Items/Diving/divinggear.xml
index d537af6c2..be3e97cd8 100644
--- a/Barotrauma/Content/Items/Diving/divinggear.xml
+++ b/Barotrauma/Content/Items/Diving/divinggear.xml
@@ -4,7 +4,7 @@
name="Oxygen Tank"
category="Equipment,Misc"
Tags="smallitem"
- pickdistance="150"
+
price="50">
@@ -26,7 +26,7 @@
name="Diving Mask"
category="Equipment"
Tags="smallitem,diving"
- pickdistance="200"
+
price="50"
description="Small enough to carry around in case of need, but won't protect you from the water pressure in the event of a full-blown hull breach.">
@@ -63,7 +63,7 @@
name="Diving Suit"
category="Equipment"
tags="diving"
- pickdistance="200"
+
price="200"
fireproof="true"
description="An atmospheric diving suit capable of withstanding the immense pressure under Europa's crust.">
@@ -113,7 +113,7 @@
name="Underwater Scooter"
category="Equipment"
Tags="smallitem"
- pickdistance="200"
+
price="50"
description="A battery-powered underwater propulsion device.">
diff --git a/Barotrauma/Content/Items/Door/doors.xml b/Barotrauma/Content/Items/Door/doors.xml
index 9587ecf87..a90974cfa 100644
--- a/Barotrauma/Content/Items/Door/doors.xml
+++ b/Barotrauma/Content/Items/Door/doors.xml
@@ -2,7 +2,7 @@
-
+ >
@@ -30,7 +30,7 @@
-
+ >
@@ -58,7 +58,7 @@
-
+ >
@@ -86,7 +86,7 @@
-
+ >
@@ -117,7 +117,7 @@
-
+ >
diff --git a/Barotrauma/Content/Items/Electricity/lights.xml b/Barotrauma/Content/Items/Electricity/lights.xml
index 04e0f4f93..b3a87ee2f 100644
--- a/Barotrauma/Content/Items/Electricity/lights.xml
+++ b/Barotrauma/Content/Items/Electricity/lights.xml
@@ -6,7 +6,7 @@
name="Lamp"
category="Electrical"
Tags="smallitem"
- pickdistance="150">
+ >
@@ -26,7 +26,7 @@
name="Emergency Light"
category="Electrical"
Tags="smallitem"
- pickdistance="150">
+ >
diff --git a/Barotrauma/Content/Items/Electricity/monitors.xml b/Barotrauma/Content/Items/Electricity/monitors.xml
index 2ec8eeb98..251937672 100644
--- a/Barotrauma/Content/Items/Electricity/monitors.xml
+++ b/Barotrauma/Content/Items/Electricity/monitors.xml
@@ -2,7 +2,7 @@
-
+ >
diff --git a/Barotrauma/Content/Items/Electricity/poweritems.xml b/Barotrauma/Content/Items/Electricity/poweritems.xml
index bc2d764bc..c8d0e8e48 100644
--- a/Barotrauma/Content/Items/Electricity/poweritems.xml
+++ b/Barotrauma/Content/Items/Electricity/poweritems.xml
@@ -4,7 +4,7 @@
name="Junction Box"
category="Electrical"
linkable="true"
- pickdistance="150"
+
description="Serves as a hub for power distribution and relaying signals between devices.">
@@ -40,7 +40,7 @@
name="Battery"
category="Electrical"
linkable="true"
- pickdistance="150"
+
description="Generally used for storing backup power in case of a reactor failure.">
@@ -68,7 +68,7 @@
name="Supercapacitor"
category="Electrical"
linkable="true"
- pickdistance="150"
+
description="Can deliver charge much faster than batteries.">
diff --git a/Barotrauma/Content/Items/Electricity/signalitems.xml b/Barotrauma/Content/Items/Electricity/signalitems.xml
index 597fce51b..5914f3b77 100644
--- a/Barotrauma/Content/Items/Electricity/signalitems.xml
+++ b/Barotrauma/Content/Items/Electricity/signalitems.xml
@@ -6,7 +6,7 @@
name="Wire"
category="Electrical"
Tags="smallitem,wire"
- pickdistance="150"
+
linkable="true"
canbepicked="true"
price="10">
@@ -29,7 +29,7 @@
category="Electrical"
Tags="smallitem,wire"
spritecolor="1.0,0.0,0.0,1.0"
- pickdistance="150"
+
linkable="true"
canbepicked="true"
price="10">
@@ -51,7 +51,7 @@
category="Electrical"
Tags="smallitem,wire"
spritecolor="0.0,0.6,1.0,1.0"
- pickdistance="150"
+
linkable="true"
canbepicked="true"
price="10">
@@ -73,7 +73,7 @@
category="Electrical"
Tags="smallitem,wire"
spritecolor="1.0,0.5,0.0,1.0"
- pickdistance="150"
+
linkable="true"
canbepicked="true"
price="10">
@@ -94,7 +94,7 @@
name="FPGA Circuit"
category="Electrical"
Tags="smallitem"
- pickdistance="150"
+
linkable="true"
price="100"
description="Field-programmable gate array - a multi-purpose circuit which can be reconfigured for use in a large variety of electrical devices.">
@@ -110,7 +110,7 @@
name="And Component"
category="Electrical"
Tags="smallitem"
- pickdistance="150"
+
linkable="true"
price="10"
description="Sends a signal when both inputs receive a signal within a set period of each other.">
@@ -145,7 +145,7 @@
name="Or Component"
category="Electrical"
Tags="smallitem"
- pickdistance="150"
+
linkable="true"
price="10"
description="Sends a signal if either of the inputs receive a signal.">
@@ -179,7 +179,7 @@
name="Not Component"
category="Electrical"
Tags="smallitem"
- pickdistance="150"
+
linkable="true"
price="10"
description="Sends a signal when the input is NOT receiving a signal.">
@@ -211,7 +211,7 @@
name="Relay Component"
category="Electrical"
Tags="smallitem"
- pickdistance="150"
+
linkable="true"
price="10"
description="When switched on, forwards all received signals from the input connections to the outputs.">
@@ -257,7 +257,7 @@
name="Delay Component"
category="Electrical"
Tags="smallitem"
- pickdistance="150"
+
linkable="true"
price="10"
description="Delays all received signals for a specific amount of time.">
@@ -289,7 +289,7 @@
name="Light Component"
category="Electrical"
Tags="smallitem"
- pickdistance="150"
+
linkable="true"
price="10">
@@ -324,7 +324,7 @@
name="Oxygen Detector"
category="Electrical"
Tags="smallitem"
- pickdistance="150"
+
linkable="true"
price="10"
description="Sends out a value between 0-100 depending on the quality of the surrounding air.">
@@ -355,7 +355,7 @@
name="Water Detector"
category="Electrical"
Tags="smallitem"
- pickdistance="150"
+
linkable="true"
price="10"
description="Sends out a signal when the detector is submerged.">
@@ -386,7 +386,7 @@
name="Signal Check Component"
category="Electrical"
Tags="smallitem"
- pickdistance="150"
+
linkable="true"
price="10"
description="Sends a signal when a signal matching a specific value is received.">
@@ -420,7 +420,7 @@
name="RegEx Find Component"
category="Electrical"
Tags="smallitem"
- pickdistance="150"
+
linkable="true"
price="10"
description="Sends a signal if the received signal matches a specific regular expression pattern.">
@@ -452,7 +452,7 @@
name="Wifi Component"
category="Electrical"
Tags="smallitem"
- pickdistance="150"
+
linkable="true"
price="20"
description="Allows remote communication between other Wifi Components that are using the same channel.">
@@ -484,7 +484,7 @@
name="Emergency Siren"
category="Electrical"
Tags="smallitem"
- pickdistance="150"
+
linkable="true"
price="10">
@@ -517,7 +517,7 @@
name="Alarm Buzzer"
category="Electrical"
Tags="smallitem"
- pickdistance="150"
+
linkable="true"
price="10">
@@ -550,7 +550,7 @@
name="Camera"
category="Electrical"
Tags="smallitem"
- pickdistance="150"
+
focusonselected="true"
offsetonselected="500"
linkable="true"
diff --git a/Barotrauma/Content/Items/Engine/engine.xml b/Barotrauma/Content/Items/Engine/engine.xml
index 41600d1c0..aedcec445 100644
--- a/Barotrauma/Content/Items/Engine/engine.xml
+++ b/Barotrauma/Content/Items/Engine/engine.xml
@@ -6,7 +6,7 @@
linkable="true"
category="Machine"
pickthroughwalls="true"
- pickdistance="150">
+ >
@@ -34,7 +34,7 @@
linkable="true"
category="Machine"
pickthroughwalls="true"
- pickdistance="150">
+ >
@@ -60,7 +60,7 @@
name="Navigation Terminal"
linkable="true"
category="Machine"
- pickdistance="150">
+ >
@@ -96,7 +96,7 @@
name="Sonar Monitor"
linkable="true"
category="Machine"
- pickdistance="150">
+ >
diff --git a/Barotrauma/Content/Items/Fabricators/fabricators.xml b/Barotrauma/Content/Items/Fabricators/fabricators.xml
index f3f5e6952..e90a36068 100644
--- a/Barotrauma/Content/Items/Fabricators/fabricators.xml
+++ b/Barotrauma/Content/Items/Fabricators/fabricators.xml
@@ -3,7 +3,7 @@
-
@@ -84,7 +84,7 @@
-
@@ -157,7 +157,7 @@
-
diff --git a/Barotrauma/Content/Items/Fabricators/materials.xml b/Barotrauma/Content/Items/Fabricators/materials.xml
index 32c8e39a6..489349d65 100644
--- a/Barotrauma/Content/Items/Fabricators/materials.xml
+++ b/Barotrauma/Content/Items/Fabricators/materials.xml
@@ -4,7 +4,7 @@
name="Steel Bar"
category="Material"
Tags="smallitem"
- pickdistance="150"
+
canbepicked="true"
price="50">
@@ -24,7 +24,7 @@
name="Uranium Bar"
category="Material"
Tags="smallitem"
- pickdistance="150"
+
spritecolor="0.2,0.35,0.06,1.0"
canbepicked="true"
price="100">
@@ -45,7 +45,7 @@
name="Copper Bar"
category="Material"
Tags="smallitem"
- pickdistance="150"
+
spritecolor="0.78,0.55,0.2,1.0"
canbepicked="true"
price="50">
@@ -61,7 +61,7 @@
name="Polycarbonate Bar"
category="Material"
Tags="smallitem"
- pickdistance="150"
+
spritecolor="0.9,0.9,1.0,0.9"
canbepicked="true"
price="50">
@@ -77,7 +77,7 @@
name="Incendium Bar"
category="Material"
Tags="smallitem"
- pickdistance="150"
+
spritecolor="0.5,0.0,0.0,1.0"
canbepicked="true">
@@ -97,7 +97,7 @@
name="Fulgurium Bar"
category="Material"
Tags="smallitem"
- pickdistance="150"
+
spritecolor="1.0,0.7,0.05,1.0"
canbepicked="true">
diff --git a/Barotrauma/Content/Items/Jobgear/captaingear.xml b/Barotrauma/Content/Items/Jobgear/captaingear.xml
index 86f6c402b..d01749550 100644
--- a/Barotrauma/Content/Items/Jobgear/captaingear.xml
+++ b/Barotrauma/Content/Items/Jobgear/captaingear.xml
@@ -2,7 +2,7 @@
-
@@ -18,7 +18,7 @@
-
@@ -39,7 +39,7 @@
-
diff --git a/Barotrauma/Content/Items/Jobgear/doctorgear.xml b/Barotrauma/Content/Items/Jobgear/doctorgear.xml
index 12ce2e492..d8b3bb6e7 100644
--- a/Barotrauma/Content/Items/Jobgear/doctorgear.xml
+++ b/Barotrauma/Content/Items/Jobgear/doctorgear.xml
@@ -2,7 +2,7 @@
-
@@ -20,7 +20,7 @@
-
@@ -45,7 +45,7 @@
-
diff --git a/Barotrauma/Content/Items/Jobgear/engigear.xml b/Barotrauma/Content/Items/Jobgear/engigear.xml
index ce7f89054..a4281f7e1 100644
--- a/Barotrauma/Content/Items/Jobgear/engigear.xml
+++ b/Barotrauma/Content/Items/Jobgear/engigear.xml
@@ -2,7 +2,7 @@
-
@@ -30,7 +30,7 @@
-
diff --git a/Barotrauma/Content/Items/Jobgear/misc.xml b/Barotrauma/Content/Items/Jobgear/misc.xml
index d3ac00fb2..5a8c593f1 100644
--- a/Barotrauma/Content/Items/Jobgear/misc.xml
+++ b/Barotrauma/Content/Items/Jobgear/misc.xml
@@ -2,7 +2,7 @@
-
@@ -28,7 +28,7 @@
-
@@ -44,7 +44,7 @@
-
diff --git a/Barotrauma/Content/Items/Jobgear/securitygear.xml b/Barotrauma/Content/Items/Jobgear/securitygear.xml
index 1fb1e62e4..804017f10 100644
--- a/Barotrauma/Content/Items/Jobgear/securitygear.xml
+++ b/Barotrauma/Content/Items/Jobgear/securitygear.xml
@@ -2,7 +2,7 @@
-
@@ -20,7 +20,7 @@
-
@@ -41,7 +41,7 @@
-
diff --git a/Barotrauma/Content/Items/Medical/medical.xml b/Barotrauma/Content/Items/Medical/medical.xml
index 8b1585312..bc86ed1ee 100644
--- a/Barotrauma/Content/Items/Medical/medical.xml
+++ b/Barotrauma/Content/Items/Medical/medical.xml
@@ -4,7 +4,7 @@
name="Medical Syringe"
category="Equipment"
Tags="smallitem,medical"
- pickdistance="150"
+
price="50"
canuseonself="true"
description="Injection is often a much more effective method of administering drugs than taking them orally.">
@@ -31,7 +31,7 @@
name="Bandage"
category="Equipment"
Tags="smallitem,medical"
- pickdistance="150"
+
canuseonself="true"
price="20"
description="Treated with a hemostatic agent that quickly seals most minor wounds.">
@@ -51,7 +51,7 @@
name="Iron Powder"
category="Material"
Tags="smallitem,chem"
- pickdistance="150"
+
price="5">
@@ -66,7 +66,7 @@
category="Material"
spritecolor="1.0,1.0,0.7,1.0"
Tags="smallitem,chem,medical"
- pickdistance="150"
+
description="A mild stimulant which is used as an incredient in the manufacture of various medicines."
price="10">
@@ -91,7 +91,7 @@
category="Material"
spritecolor="0.5,0.5,1.0,1.0"
Tags="smallitem,chem,medical"
- pickdistance="150"
+
canuseonself="true"
description="Most commonly used for treating oxygen deprivation."
price="50">
@@ -112,7 +112,7 @@
category="Material"
spritecolor="0.6,0.4,0.2,1.0"
Tags="smallitem,chem,medical"
- pickdistance="150"
+
canuseonself="true"
description="A hemostatic agent that slows down bleeding."
price="50">
@@ -138,7 +138,7 @@
category="Material"
spritecolor="0.8,0.0,0.0,1.0"
Tags="smallitem,chem,medical"
- pickdistance="150"
+
canuseonself="true"
description="Highly effective at treating various types of physical trauma."
price="50">
@@ -164,7 +164,7 @@
category="Material"
spritecolor="1.0,1.0,0.0,1.0"
Tags="smallitem,chem,medical"
- pickdistance="150"
+
description="A highly potent corrigodone-based stimulant."
price="150">
@@ -184,7 +184,7 @@
category="Material"
spritecolor="1.0,1.0,1.0,0.6"
Tags="smallitem,chem,medical"
- pickdistance="150"
+
price="20">
@@ -204,7 +204,7 @@
spritecolor="0.0,0.9,0.1,1.0"
Tags="smallitem,chem,medical"
canuseonself="true"
- pickdistance="150"
+
price="20">
@@ -228,7 +228,7 @@
category="Material"
spritecolor="0.7,0.7,0.7,1.0"
Tags="smallitem,chem,medical"
- pickdistance="150"
+
price="20">
@@ -247,7 +247,7 @@
category="Material"
spritecolor="0.8,0.8,0.8,1.0"
Tags="smallitem,chem,medical"
- pickdistance="150"
+
price="20">
@@ -266,7 +266,7 @@
category="Material"
spritecolor="0.1,0.1,0.1,1.0"
Tags="smallitem,chem,explosive"
- pickdistance="150"
+
price="50">
@@ -287,7 +287,7 @@
category="Material"
spritecolor="1.0,1.0,1.0,0.8"
Tags="smallitem,chem,medical"
- pickdistance="150"
+
price="20">
@@ -306,7 +306,7 @@
category="Material"
spritecolor="0.5,0.0,0.0,1.0"
Tags="smallitem,chem,medical"
- pickdistance="150"
+
price="20">
@@ -325,7 +325,7 @@
category="Material"
spritecolor="0.5,0.0,0.0,1.0"
Tags="smallitem,chem,medical"
- pickdistance="150"
+
price="50">
@@ -344,7 +344,7 @@
category="Material"
spritecolor="0.2,0.35,0.06,1.0"
Tags="smallitem,chem,medical"
- pickdistance="150"
+
price="50">
@@ -363,7 +363,7 @@
category="Material"
spritecolor="0.8,0.3,0.8,1.0"
Tags="smallitem,chem,medical"
- pickdistance="150"
+
description="A potent muscle stimulant."
price="50">
@@ -383,7 +383,7 @@
category="Material"
spritecolor="0.0,0.0,0.0,1.0"
Tags="smallitem,chem,medical"
- pickdistance="150"
+
description="A highly potent neurotoxin."
price="200">
@@ -403,7 +403,7 @@
category="Material"
spritecolor="0.0,0.0,0.0,1.0"
Tags="smallitem,chem,medical"
- pickdistance="150"
+
description="Dormant eggs of the Europan lifeform colloquially referred to as 'husk parasite'."
price="200">
@@ -423,7 +423,7 @@
category="Material"
spritecolor="0.0,0.0,0.0,1.0"
Tags="smallitem,chem,medical"
- pickdistance="150"
+
description="An antiparasitic drug used in the treatment of husk parasite infections."
price="300">
@@ -443,7 +443,7 @@
category="Material"
spritecolor="0.6,0.8,1.0,1.0"
Tags="smallitem,chem,medical"
- pickdistance="150"
+
canuseonself="true"
description="A mildy toxic solution that slowly releases oxygen into the bloodstream when injected.">
diff --git a/Barotrauma/Content/Items/MiniMap/item.xml b/Barotrauma/Content/Items/MiniMap/item.xml
index b4cea1c25..62ad09905 100644
--- a/Barotrauma/Content/Items/MiniMap/item.xml
+++ b/Barotrauma/Content/Items/MiniMap/item.xml
@@ -3,7 +3,7 @@
aliases="MiniMap"
category="Machine"
linkable="true"
- pickdistance="150">
+ >
diff --git a/Barotrauma/Content/Items/Pump/pump.xml b/Barotrauma/Content/Items/Pump/pump.xml
index 9b957be14..491974dec 100644
--- a/Barotrauma/Content/Items/Pump/pump.xml
+++ b/Barotrauma/Content/Items/Pump/pump.xml
@@ -3,7 +3,7 @@
name="Pump"
linkable="true"
category="Machine"
- pickdistance="200">
+ >
@@ -26,7 +26,7 @@
name="Small Pump"
linkable="true"
category="Machine"
- pickdistance="150">
+ >
diff --git a/Barotrauma/Content/Items/Reactor/reactor.xml b/Barotrauma/Content/Items/Reactor/reactor.xml
index fd01c2165..80fbf39b4 100644
--- a/Barotrauma/Content/Items/Reactor/reactor.xml
+++ b/Barotrauma/Content/Items/Reactor/reactor.xml
@@ -55,7 +55,7 @@
-
@@ -73,7 +73,7 @@
-
@@ -92,7 +92,7 @@
-
+ >
diff --git a/Barotrauma/Content/Items/Tools/tools.xml b/Barotrauma/Content/Items/Tools/tools.xml
index 1b53bfdbc..cc5f710f6 100644
--- a/Barotrauma/Content/Items/Tools/tools.xml
+++ b/Barotrauma/Content/Items/Tools/tools.xml
@@ -4,7 +4,7 @@
name="Welding Tool"
category="Equipment"
Tags="smallitem"
- pickdistance="200"
+
price="100"
description="One of the most crucial tools on board the submarine. Also works underwater.">
@@ -60,7 +60,7 @@
name="Plasma Cutter"
category="Equipment"
Tags="smallitem"
- pickdistance="200"
+
price="100"
description="Cuts through various materials using a jet of ionized oxygen.">
@@ -105,7 +105,7 @@
name="Welding Fuel Tank"
category="Equipment"
Tags="smallitem"
- pickdistance="150"
+
price="50">
@@ -127,7 +127,7 @@
name="Fire Extinguisher"
category="Equipment"
Tags="smallitem"
- pickdistance="200"
+
price="100"
description="A handheld carbon dioxide extinguisher.">
@@ -156,7 +156,7 @@
name="Screwdriver"
category="Equipment"
Tags="smallitem"
- pickdistance="200"
+
price="10">
@@ -171,7 +171,7 @@
name="Wrench"
category="Equipment"
Tags="smallitem"
- pickdistance="200"
+
price="10">
@@ -188,7 +188,7 @@
name="Handheld Sonar"
category="Equipment"
Tags="smallitem"
- pickdistance="200"
+
price="10">
@@ -218,7 +218,7 @@
name="Flashlight"
category="Equipment"
Tags="smallitem"
- pickdistance="200"
+
price="10">
@@ -249,7 +249,7 @@
-
diff --git a/Barotrauma/Content/Items/Weapons/depthcharge.xml b/Barotrauma/Content/Items/Weapons/depthcharge.xml
index c3c31176c..58663800c 100644
--- a/Barotrauma/Content/Items/Weapons/depthcharge.xml
+++ b/Barotrauma/Content/Items/Weapons/depthcharge.xml
@@ -6,7 +6,7 @@
focusonselected="true"
offsetonselected="700"
linkable="true"
- pickdistance="150">
+ >
@@ -24,7 +24,7 @@
name="Depth Charge Loader"
category="Machine"
linkable="true"
- pickdistance="150">
+ >
@@ -37,7 +37,7 @@
-
@@ -65,7 +65,7 @@
-
diff --git a/Barotrauma/Content/Items/Weapons/explosives.xml b/Barotrauma/Content/Items/Weapons/explosives.xml
index 57c683c19..09d6b74b7 100644
--- a/Barotrauma/Content/Items/Weapons/explosives.xml
+++ b/Barotrauma/Content/Items/Weapons/explosives.xml
@@ -4,7 +4,7 @@
name="C-4 Block"
category="Equipment"
Tags="smallitem,explosive"
- pickdistance="150"
+
price="100">
@@ -22,7 +22,7 @@
name="Compound N"
category="Equipment"
Tags="smallitem,explosive"
- pickdistance="150">
+ >
@@ -40,7 +40,7 @@
name="Volatile Compound N"
category="Equipment"
Tags="smallitem,explosive"
- pickdistance="150">
+ >
@@ -60,7 +60,7 @@
description="A compound made of C-4 and incendium."
category="Equipment"
Tags="smallitem,explosive"
- pickdistance="150">
+ >
@@ -80,7 +80,7 @@
description="A device that detonates any contained explosive when receiving a signal."
category="Equipment"
Tags="smallitem"
- pickdistance="150"
+
price="50">
@@ -109,7 +109,7 @@
description="A highly unstable liquid that may explode when subjected to heat or physical shock."
spritecolor="1.0,1.0,1.0,1.0"
Tags="smallitem,chem,medical"
- pickdistance="150"
+
impacttolerance="4">
diff --git a/Barotrauma/Content/Items/Weapons/railgun.xml b/Barotrauma/Content/Items/Weapons/railgun.xml
index ec3636731..77eba067f 100644
--- a/Barotrauma/Content/Items/Weapons/railgun.xml
+++ b/Barotrauma/Content/Items/Weapons/railgun.xml
@@ -5,7 +5,7 @@
focusonselected="true"
offsetonselected="700"
linkable="true"
- pickdistance="150">
+ >
@@ -30,7 +30,7 @@
category="Machine"
type="Controller"
linkable="true"
- pickdistance="150">
+ >
@@ -53,7 +53,7 @@
name="Railgun Loader"
category="Machine"
linkable="true"
- pickdistance="150">
+ >
@@ -67,7 +67,7 @@
-
@@ -98,7 +98,7 @@
-
diff --git a/Barotrauma/Content/Items/Weapons/weapons.xml b/Barotrauma/Content/Items/Weapons/weapons.xml
index 5b80c984d..9b78208f0 100644
--- a/Barotrauma/Content/Items/Weapons/weapons.xml
+++ b/Barotrauma/Content/Items/Weapons/weapons.xml
@@ -4,7 +4,7 @@
-
@@ -25,7 +25,7 @@
-
@@ -57,7 +57,7 @@
-
@@ -75,7 +75,7 @@
-
@@ -94,7 +94,7 @@
name="Stun Baton"
category="Equipment"
Tags="smallitem,weapon"
- pickdistance="150"
+
price="100"
description="If verbal orders are insufficient, a high-voltage shock from a Stun Baton may be enough to beat an unruly crew member into submission.">
@@ -129,7 +129,7 @@
-
@@ -150,7 +150,7 @@
-
@@ -170,7 +170,7 @@
-
diff --git a/Barotrauma/Content/Items/idcard.xml b/Barotrauma/Content/Items/idcard.xml
index dfafdd8e7..1c2d8c62e 100644
--- a/Barotrauma/Content/Items/idcard.xml
+++ b/Barotrauma/Content/Items/idcard.xml
@@ -4,7 +4,7 @@
name="ID Card"
category="Equipment"
Tags="smallitem"
- pickdistance="150">
+ >
diff --git a/Barotrauma/Source/Characters/AI/IndoorsSteeringManager.cs b/Barotrauma/Source/Characters/AI/IndoorsSteeringManager.cs
index b446539ad..58dd11178 100644
--- a/Barotrauma/Source/Characters/AI/IndoorsSteeringManager.cs
+++ b/Barotrauma/Source/Characters/AI/IndoorsSteeringManager.cs
@@ -141,7 +141,7 @@ namespace Barotrauma
{
if (character.SelectedConstruction != currentPath.CurrentNode.Ladders.Item && currentPath.CurrentNode.Ladders.Item.IsInsideTrigger(character.WorldPosition))
{
- currentPath.CurrentNode.Ladders.Item.Pick(character, false, true);
+ currentPath.CurrentNode.Ladders.Item.TryInteract(character, false, true);
}
}
@@ -239,7 +239,7 @@ namespace Barotrauma
foreach (Controller controller in buttons)
{
float dist = Vector2.Distance(controller.Item.WorldPosition, character.WorldPosition);
- if (dist > controller.Item.PickDistance * 2.0f) continue;
+ if (dist > controller.Item.InteractDistance * 2.0f) continue;
if (dist < closestDist || closestButton == null)
{
@@ -256,7 +256,7 @@ namespace Barotrauma
return;
}
- closestButton.Item.Pick(character, false, true);
+ closestButton.Item.TryInteract(character, false, true);
break;
}
}
diff --git a/Barotrauma/Source/Characters/AI/Objectives/AIObjectiveContainItem.cs b/Barotrauma/Source/Characters/AI/Objectives/AIObjectiveContainItem.cs
index cad9038cc..2888964f1 100644
--- a/Barotrauma/Source/Characters/AI/Objectives/AIObjectiveContainItem.cs
+++ b/Barotrauma/Source/Characters/AI/Objectives/AIObjectiveContainItem.cs
@@ -64,7 +64,7 @@ namespace Barotrauma
}
else
{
- if (Vector2.Distance(character.Position, container.Item.Position) > container.Item.PickDistance
+ if (Vector2.Distance(character.Position, container.Item.Position) > container.Item.InteractDistance
&& !container.Item.IsInsideTrigger(character.Position))
{
AddSubObjective(new AIObjectiveGoTo(container.Item, character));
diff --git a/Barotrauma/Source/Characters/AI/Objectives/AIObjectiveGetItem.cs b/Barotrauma/Source/Characters/AI/Objectives/AIObjectiveGetItem.cs
index ab2ce3af0..d3d04d326 100644
--- a/Barotrauma/Source/Characters/AI/Objectives/AIObjectiveGetItem.cs
+++ b/Barotrauma/Source/Characters/AI/Objectives/AIObjectiveGetItem.cs
@@ -57,7 +57,7 @@ namespace Barotrauma
FindTargetItem();
if (targetItem == null || moveToTarget == null) return;
- if (Vector2.Distance(character.Position, moveToTarget.Position) < targetItem.PickDistance*2.0f)
+ if (Vector2.Distance(character.Position, moveToTarget.Position) < targetItem.InteractDistance*2.0f)
{
int targetSlot = -1;
if (equip)
@@ -93,7 +93,7 @@ namespace Barotrauma
}
}
- targetItem.Pick(character, false, true);
+ targetItem.TryInteract(character, false, true);
if (targetSlot > -1 && character.Inventory.IsInLimbSlot(targetItem, InvSlotType.Any))
{
diff --git a/Barotrauma/Source/Characters/AI/Objectives/AIObjectiveGoTo.cs b/Barotrauma/Source/Characters/AI/Objectives/AIObjectiveGoTo.cs
index bcbcec0dc..3a9b2e037 100644
--- a/Barotrauma/Source/Characters/AI/Objectives/AIObjectiveGoTo.cs
+++ b/Barotrauma/Source/Characters/AI/Objectives/AIObjectiveGoTo.cs
@@ -126,7 +126,7 @@ namespace Barotrauma
if (item != null)
{
- allowedDistance = Math.Max(ConvertUnits.ToSimUnits(item.PickDistance), allowedDistance);
+ allowedDistance = Math.Max(ConvertUnits.ToSimUnits(item.InteractDistance), allowedDistance);
if (item.IsInsideTrigger(character.WorldPosition)) completed = true;
}
diff --git a/Barotrauma/Source/Characters/AI/Objectives/AIObjectiveOperateItem.cs b/Barotrauma/Source/Characters/AI/Objectives/AIObjectiveOperateItem.cs
index 443a0079e..ca893ffef 100644
--- a/Barotrauma/Source/Characters/AI/Objectives/AIObjectiveOperateItem.cs
+++ b/Barotrauma/Source/Characters/AI/Objectives/AIObjectiveOperateItem.cs
@@ -53,12 +53,12 @@ namespace Barotrauma
if (target.CanBeSelected)
{
- if (Vector2.Distance(character.Position, target.Item.Position) < target.Item.PickDistance
+ if (Vector2.Distance(character.Position, target.Item.Position) < target.Item.InteractDistance
|| target.Item.IsInsideTrigger(character.WorldPosition))
{
if (character.SelectedConstruction != target.Item && target.CanBeSelected)
{
- target.Item.Pick(character, false, true);
+ target.Item.TryInteract(character, false, true);
}
if (component.AIOperate(deltaTime, character, this)) isCompleted = true;
diff --git a/Barotrauma/Source/Characters/Animation/Ragdoll.cs b/Barotrauma/Source/Characters/Animation/Ragdoll.cs
index f069d5d1f..27e10604e 100644
--- a/Barotrauma/Source/Characters/Animation/Ragdoll.cs
+++ b/Barotrauma/Source/Characters/Animation/Ragdoll.cs
@@ -1270,7 +1270,7 @@ namespace Barotrauma
var newSelectedConstruction = (Item)character.MemState[0].Interact;
if (newSelectedConstruction != null && character.SelectedConstruction != newSelectedConstruction)
{
- newSelectedConstruction.Pick(character, true, true);
+ newSelectedConstruction.TryInteract(character, true, true);
}
character.SelectedConstruction = newSelectedConstruction;
}
@@ -1362,7 +1362,7 @@ namespace Barotrauma
var newSelectedConstruction = (Item)serverPos.Interact;
if (newSelectedConstruction != null && character.SelectedConstruction != newSelectedConstruction)
{
- newSelectedConstruction.Pick(character, true, true);
+ newSelectedConstruction.TryInteract(character, true, true);
}
character.SelectedConstruction = newSelectedConstruction;
}
diff --git a/Barotrauma/Source/Characters/Character.cs b/Barotrauma/Source/Characters/Character.cs
index 0e133f1fa..c52a1d353 100644
--- a/Barotrauma/Source/Characters/Character.cs
+++ b/Barotrauma/Source/Characters/Character.cs
@@ -9,6 +9,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
+using Barotrauma.Items.Components;
namespace Barotrauma
{
@@ -94,8 +95,8 @@ namespace Barotrauma
private float health, lastSentHealth;
protected float minHealth, maxHealth;
- protected Item closestItem;
- private Character closestCharacter, selectedCharacter;
+ protected Item focusedItem;
+ private Character focusedCharacter, selectedCharacter;
private Dictionary