Economy (#403)
* nasrano * Add station budget & salary * Initial balance * Vending machine UI * Pricing for vending machines * Finish economy * Eftpos * Finish eftpos * Put eftpos into lockers * Vending machine prices * Small fixes * Fix atm UI * Add atms to maps * fix * reset * Add PDA program * Maps again --------- Co-authored-by: Mona Hmiza <> Co-authored-by: rhailrake <49613070+rhailrake@users.noreply.github.com>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using Content.Server.White.Economy;
|
||||
using Content.Shared.Cargo;
|
||||
|
||||
namespace Content.Server.Cargo.Components;
|
||||
@@ -8,8 +9,17 @@ namespace Content.Server.Cargo.Components;
|
||||
[RegisterComponent, Access(typeof(SharedCargoSystem))]
|
||||
public sealed partial class StationBankAccountComponent : Component
|
||||
{
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("balance")]
|
||||
public int Balance = 2000;
|
||||
// WD EDIT START
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public int Balance
|
||||
{
|
||||
get => BankAccount.Balance;
|
||||
set => BankAccount.Balance = value;
|
||||
}
|
||||
|
||||
[ViewVariables]
|
||||
public BankAccount BankAccount = default!;
|
||||
// WD EDIT END
|
||||
|
||||
/// <summary>
|
||||
/// How much the bank balance goes up per second, every Delay period. Rounded down when multiplied.
|
||||
|
||||
Reference in New Issue
Block a user