Skip to content

Commit

Permalink
fixed heretic store
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkmajia committed Sep 16, 2024
1 parent 913abfc commit 92deee1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Content.Shared/Store/ListingPrototype.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ public ListingData(ListingData other) : this(
other.Categories,
other.OriginalCost,
other.RestockTime,
other.DiscountDownTo
other.DiscountDownTo,
other.ProductHereticKnowledge
)
{

Expand All @@ -64,7 +65,8 @@ public ListingData(
HashSet<ProtoId<StoreCategoryPrototype>> categories,
IReadOnlyDictionary<ProtoId<CurrencyPrototype>, FixedPoint2> originalCost,
TimeSpan restockTime,
Dictionary<ProtoId<CurrencyPrototype>, FixedPoint2> dataDiscountDownTo
Dictionary<ProtoId<CurrencyPrototype>, FixedPoint2> dataDiscountDownTo,
ProtoId<HereticKnowledgePrototype>? productHereticKnowledge
)
{
Name = name;
Expand All @@ -85,6 +87,7 @@ Dictionary<ProtoId<CurrencyPrototype>, FixedPoint2> dataDiscountDownTo
OriginalCost = originalCost;
RestockTime = restockTime;
DiscountDownTo = new Dictionary<ProtoId<CurrencyPrototype>, FixedPoint2>(dataDiscountDownTo);
ProductHereticKnowledge = productHereticKnowledge;
}

[ViewVariables]
Expand Down Expand Up @@ -294,7 +297,8 @@ public ListingDataWithCostModifiers(ListingData listingData)
listingData.Categories,
listingData.OriginalCost,
listingData.RestockTime,
listingData.DiscountDownTo
listingData.DiscountDownTo,
listingData.ProductHereticKnowledge
)
{
}
Expand Down

0 comments on commit 92deee1

Please sign in to comment.