Logo
Explore Help
Register Sign In
Cinka/OldThink
1
0
Fork 0
You've already forked OldThink
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
c0bbbc33c19eafcc8defaa7f1ec2df42e485b435
OldThink/Content.Server/Cargo/Components/StaticPriceComponent.cs

15 lines
389 B
C#
Raw Normal View History

Implements item pricing, and piracy. (#8548) * Start implementing item pricing. * Flesh out prices a bit, add the appraisal tool. * Add prices to more things. * YARRRRRRR * gives pirates an appraisal tool in their pocket. * Makes the various traitor objectives valuable. Also nerfs the price of a living person, so it's easier to bargain for them. * Address reviews. * Address reviews.
2022-06-03 10:56:11 -05:00
namespace Content.Server.Cargo.Components;
/// <summary>
/// This is used for setting a static, unchanging price for an object.
/// </summary>
[RegisterComponent]
Refactor serialization copying to use source generators (#19412)
2023-08-22 18:14:33 -07:00
public sealed partial class StaticPriceComponent : Component
Implements item pricing, and piracy. (#8548) * Start implementing item pricing. * Flesh out prices a bit, add the appraisal tool. * Add prices to more things. * YARRRRRRR * gives pirates an appraisal tool in their pocket. * Makes the various traitor objectives valuable. Also nerfs the price of a living person, so it's easier to bargain for them. * Address reviews. * Address reviews.
2022-06-03 10:56:11 -05:00
{
/// <summary>
/// The price of the object this component is on.
/// </summary>
[DataField("price", required: true)]
public double Price;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 6327ms Template: 46ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API