(405,28)Error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer
Вот тут где то и ошибка
{
var cfg = config.chinook.itemsDrops;
bool goodChance = UnityEngine.Random.Range(0, 100) >= (100 - cfg.DropChance);
if (goodChance && CrateEnt.inventory.itemList.Count <= config.chinook.MaxItem)
{
if (cfg.BluePrint)
{
var bp = ItemManager.Create(ResearchTable.GetBlueprintTemplate());
bp.blueprintTarget = ItemManager.FindItemDefinition(cfg.Shortname).itemid;
bp.MoveToContainer(CrateEnt.inventory);
}
else
{
Item GiveItem = ItemManager.CreateByName(cfg.Shortname, Oxide.Core.Random.Range(cfg.MinimalAmount, cfg.MaximumAmount), cfg.SkinID);
if(!string.IsNullOrEmpty(cfg.DisplayName)) { GiveItem.name = cfg.DisplayName;}
GiveItem.MoveToContainer(CrateEnt.inventory);
}
}
}
Спасибо заранее
Вот тут где то и ошибка
{
var cfg = config.chinook.itemsDrops;
bool goodChance = UnityEngine.Random.Range(0, 100) >= (100 - cfg.DropChance);
if (goodChance && CrateEnt.inventory.itemList.Count <= config.chinook.MaxItem)
{
if (cfg.BluePrint)
{
var bp = ItemManager.Create(ResearchTable.GetBlueprintTemplate());
bp.blueprintTarget = ItemManager.FindItemDefinition(cfg.Shortname).itemid;
bp.MoveToContainer(CrateEnt.inventory);
}
else
{
Item GiveItem = ItemManager.CreateByName(cfg.Shortname, Oxide.Core.Random.Range(cfg.MinimalAmount, cfg.MaximumAmount), cfg.SkinID);
if(!string.IsNullOrEmpty(cfg.DisplayName)) { GiveItem.name = cfg.DisplayName;}
GiveItem.MoveToContainer(CrateEnt.inventory);
}
}
}
Спасибо заранее