mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 21:48:58 +03:00
# Description This is a port of https://github.com/WWhiteDreamProject/wwdpublic/pull/11 from White Dream. This feature selects random items in the traitor uplink each round to be discounted and moved to the Discount tab, which are the same for every traitor. This in theory helps encourage players to be spontaneous, and use items that they otherwise might not normally consider using, which helps mix things up from round to round. <details><summary><h1>Media</h1></summary> <p> > # Описание PR > Порт скидок в аплинке. > > # Изменения > 🆑 Spatison > > * add: Added discounts in uplink / Добавлены скидки в аплинк </p> </details> # Changelog 🆑 Spatison add: Added discounts in uplink / Добавлены скидки в аплинк --------- Signed-off-by: VMSolidus <evilexecutive@gmail.com> Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> Co-authored-by: DEATHB4DEFEAT <77995199+DEATHB4DEFEAT@users.noreply.github.com>
39 lines
917 B
C#
39 lines
917 B
C#
namespace Content.Shared.StoreDiscount;
|
|
|
|
[DataDefinition]
|
|
public sealed partial class SalesSpecifier
|
|
{
|
|
[DataField]
|
|
public bool Enabled { get; private set; }
|
|
|
|
[DataField]
|
|
public float MinMultiplier { get; private set; }
|
|
|
|
[DataField]
|
|
public float MaxMultiplier { get; private set; }
|
|
|
|
[DataField]
|
|
public int MinItems { get; private set; }
|
|
|
|
[DataField]
|
|
public int MaxItems { get; private set; }
|
|
|
|
[DataField]
|
|
public string SalesCategory { get; private set; } = string.Empty;
|
|
|
|
public SalesSpecifier()
|
|
{
|
|
}
|
|
|
|
public SalesSpecifier(bool enabled, float minMultiplier, float maxMultiplier, int minItems, int maxItems,
|
|
string salesCategory)
|
|
{
|
|
Enabled = enabled;
|
|
MinMultiplier = minMultiplier;
|
|
MaxMultiplier = maxMultiplier;
|
|
MinItems = minItems;
|
|
MaxItems = maxItems;
|
|
SalesCategory = salesCategory;
|
|
}
|
|
}
|