Summary: Workshops can randomly produce copies of weapons crafted by player, even if player never sold those weapons anywhere, eventually flooding the markets with them if the player crafted a lot of different weapon patterns.
The problem is caused by the logic in WorkshopsCampaignBehavior.cs class, where condition for selecting random items is in this method:
It lacks check to exclude weapons that were crafted by player.
How to Reproduce: Craft a lot of weapons, don't sell them, visit towns with weapon-producting workshops, eventually you will see copies of your crafted weapons appearing on the markets.
Version: e1.3.1
Installed community-made modifications: none
Computer Specs:
OS: Windows 7 64-bit
GPU: Nvidia GTX1060 6GB
CPU: Intel i7-7700K
RAM: 16GB
Motherboard: Asus Z270E
Storage Device (HDD/SSD): HDD
The problem is caused by the logic in WorkshopsCampaignBehavior.cs class, where condition for selecting random items is in this method:
C#:
private static bool IsProducable(ItemObject item)
{
return !item.MultiplayerItem && !item.NotMerchandise;
}
How to Reproduce: Craft a lot of weapons, don't sell them, visit towns with weapon-producting workshops, eventually you will see copies of your crafted weapons appearing on the markets.
Version: e1.3.1
Installed community-made modifications: none
Computer Specs:
OS: Windows 7 64-bit
GPU: Nvidia GTX1060 6GB
CPU: Intel i7-7700K
RAM: 16GB
Motherboard: Asus Z270E
Storage Device (HDD/SSD): HDD
Last edited: