世界知名伟人
Sergeant at Arms
Summary:
Tier 5 or 6 items with a good modifier are TOO rare in towns.
Workshops in this game do craft high-tier items at a reasonable rate, with decent chance for a good item modifier. However, every town will remove items with any modifier with a 50% chance everyday, which is too high for items produced by workshop. A newly crafted legendary tier 6 item is very likely to be removed from the store at the second day.
This code is found at ItemConsumptionBehavior. It will remove any item with any modifier with a 50% chance everyday.
How to Reproduce: Start a new campaign and travel around the calradia and visit towns. Try to find any legendary or masterwork tier 6 armor in stores.
Tier 5 or 6 items with a good modifier are TOO rare in towns.
Workshops in this game do craft high-tier items at a reasonable rate, with decent chance for a good item modifier. However, every town will remove items with any modifier with a 50% chance everyday, which is too high for items produced by workshop. A newly crafted legendary tier 6 item is very likely to be removed from the store at the second day.
C#:
private void DeleteOverproducedItems(Town town)
{
ItemRoster itemRoster = town.Owner.ItemRoster;
for (int i = itemRoster.Count - 1; i >= 0; i--)
{
ItemRosterElement elementCopyAtIndex = itemRoster.GetElementCopyAtIndex(i);
ItemObject item = elementCopyAtIndex.EquipmentElement.Item;
int amount = elementCopyAtIndex.Amount;
if (amount > 0 && (item.IsCraftedByPlayer || item.IsBannerItem))
{
itemRoster.AddToCounts(elementCopyAtIndex.EquipmentElement, -amount);
}
else if (elementCopyAtIndex.EquipmentElement.ItemModifier != null && MBRandom.RandomFloat < 0.5f)
{
itemRoster.AddToCounts(elementCopyAtIndex.EquipmentElement, -1);
}
}
}
This code is found at ItemConsumptionBehavior. It will remove any item with any modifier with a 50% chance everyday.
How to Reproduce: Start a new campaign and travel around the calradia and visit towns. Try to find any legendary or masterwork tier 6 armor in stores.