mirror of
https://github.com/SoDOff-Project/sodoff.git
synced 2025-10-11 08:18:49 -07:00
fix missing blueprints
This commit is contained in:
parent
25ebba6f65
commit
512348336c
@ -26,8 +26,8 @@ namespace sodoff.Services {
|
|||||||
ItemId = itemID,
|
ItemId = itemID,
|
||||||
Quantity = 0
|
Quantity = 0
|
||||||
};
|
};
|
||||||
if (itemData.ItemStatsMap is null && itemData.PossibleStatsMap != null) {
|
if (itemData.ItemStatsMap is null && itemData.PossibleStatsMap != null && !itemService.ItemHasCategory(itemData, 651)) {
|
||||||
// battle item without default stats
|
// battle item without default stats, but not blueprints
|
||||||
Random random = new Random();
|
Random random = new Random();
|
||||||
int itemTier = random.Next(1, 3);
|
int itemTier = random.Next(1, 3);
|
||||||
item.StatsSerialized = XmlUtil.SerializeXml(new ItemStatsMap {
|
item.StatsSerialized = XmlUtil.SerializeXml(new ItemStatsMap {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user