Mid-round chat messages have a limited range, headset item which can be used to communicate with players further away, new inventory slot for items like masks and headsets
This commit is contained in:
@@ -10,9 +10,9 @@ namespace Barotrauma
|
||||
{
|
||||
public static List<JobPrefab> List;
|
||||
|
||||
//names of the items the Character spawns with
|
||||
public List<string> ItemNames;
|
||||
public List<bool> EquipItem;
|
||||
public readonly XElement Items;
|
||||
public readonly List<string> ItemNames;
|
||||
//public List<bool> EquipItem;
|
||||
|
||||
public List<SkillPrefab> Skills;
|
||||
|
||||
@@ -71,7 +71,7 @@ namespace Barotrauma
|
||||
AllowAlways = ToolBox.GetAttributeBool(element, "allowalways", false);
|
||||
|
||||
ItemNames = new List<string>();
|
||||
EquipItem = new List<bool>();
|
||||
//EquipItem = new List<bool>();
|
||||
|
||||
Skills = new List<SkillPrefab>();
|
||||
|
||||
@@ -79,14 +79,20 @@ namespace Barotrauma
|
||||
{
|
||||
switch (subElement.Name.ToString().ToLower())
|
||||
{
|
||||
case "item":
|
||||
string itemName = ToolBox.GetAttributeString(subElement, "name", "");
|
||||
bool equipItem = ToolBox.GetAttributeBool(subElement, "equip", false);
|
||||
if (!string.IsNullOrEmpty(itemName))
|
||||
case "items":
|
||||
Items = subElement;
|
||||
foreach (XElement itemElement in subElement.Elements())
|
||||
{
|
||||
string itemName = ToolBox.GetAttributeString(subElement, "name", "");
|
||||
ItemNames.Add(itemName);
|
||||
EquipItem.Add(equipItem);
|
||||
}
|
||||
//string itemName = ToolBox.GetAttributeString(subElement, "name", "");
|
||||
//bool equipItem = ToolBox.GetAttributeBool(subElement, "equip", false);
|
||||
//if (!string.IsNullOrEmpty(itemName))
|
||||
//{
|
||||
// ItemNames.Add(itemName);
|
||||
// EquipItem.Add(equipItem);
|
||||
//}
|
||||
break;
|
||||
case "skills":
|
||||
foreach (XElement skillElement in subElement.Elements())
|
||||
|
||||
Reference in New Issue
Block a user