Skip to content

Commit

Permalink
Feat/crimson caravan cargo (#667)
Browse files Browse the repository at this point in the history
* feat: add TradeStation component

* feat: adds value to bottlecaps

* feat: adjusts values to NCR dollar + prewar money

* feat: change appraisal tool from spesos to caps

* refactor: NcrCredit material name

* feat: cash component to NCR dollar

* feat: cargo sales outputs caps

* feat: adds crates steel, plastic, wood, mechanic parts

* feat: adhesives crate

* feat: remove old cargo products

* feat: stimpak crate

* feat: desc to N14 crates

* feat: crates - rations, rifles, water

* feat: entity 20 lead bars

* feat: gunpowder 20 entity

* feat: crates - nuka cola, gunpowder and lead bars

* feat: cargo products steel, plastic, glass, wood

* feat: cargo product stimpak

* feat: cargo products - gunpowder, lead bar

* feat: cargo products - mechanic parts, adhesives

* feat: cargo products livestock

* feat: cargo product varmint rifle

* feat: cargo products - rations, water, cigarrets, nuka cola

* feat: abraxo cleaner crate and cargo product

* feat: adjusts caps income cargo

* fix: varmint rifle crate

* feat: adjusts materials selling prices

* feat: adjusts weapons selling prices

* feat: adjusts batteries pricings

* feat: adjusts silver, iron and gold ingot prices

* feat: adjusts rifles prices

* feat: adds pricing to stimpaks

* feat: adjusts lead and gold pricing

* feat: adjusts ammo price

* feat: adjusts tools pricing

* feat: adjusts bandages and radaway pricing

* fix: varming rifles crate product

* feat: orders access to caravan

* feat: remove caps maxCount

* fix: varmint crate

* Update currency.yml

* fix: ncrCredit material icon

* fix: tradestation components

* Revert "fix: tradestation components"

This reverts commit bd86370.

* feat: starting ballance 500

* feat: cargo console spesos text to caps

---------

Co-authored-by: Peptide90 <[email protected]>
  • Loading branch information
r4iser and Peptide90 authored Nov 21, 2024
1 parent 255c83d commit 7fb8d47
Show file tree
Hide file tree
Showing 47 changed files with 444 additions and 391 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ namespace Content.Server.Cargo.Components;
[Access(typeof(CargoSystem))]
public sealed partial class CargoPalletConsoleComponent : Component
{
[ViewVariables(VVAccess.ReadWrite), DataField("cashType", customTypeSerializer:typeof(PrototypeIdSerializer<StackPrototype>))]
public string CashType = "Credit";
[ViewVariables(VVAccess.ReadWrite), DataField("cashType", customTypeSerializer: typeof(PrototypeIdSerializer<StackPrototype>))]
public string CashType = "Caps";
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ namespace Content.Server.Cargo.Components;
public sealed partial class StationBankAccountComponent : Component
{
[ViewVariables(VVAccess.ReadWrite), DataField("balance")]
public int Balance = 2000;
public int Balance = 500;

/// <summary>
/// How much the bank balance goes up per second, every Delay period. Rounded down when multiplied.
/// </summary>
[ViewVariables(VVAccess.ReadWrite), DataField("increasePerSecond")]
public int IncreasePerSecond = 1;
public float IncreasePerSecond = 0.05f;
}
4 changes: 2 additions & 2 deletions Content.Server/Cargo/Systems/CargoSystem.Orders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public sealed partial class CargoSystem
/// <summary>
/// How much time to wait (in seconds) before increasing bank accounts balance.
/// </summary>
private const int Delay = 10;
private const int Delay = 200;

/// <summary>
/// Keeps track of how much time has elapsed since last balance increase.
Expand Down Expand Up @@ -84,7 +84,7 @@ private void UpdateConsole(float frameTime)

foreach (var account in EntityQuery<StationBankAccountComponent>())
{
account.Balance += account.IncreasePerSecond * Delay;
account.Balance += (int) (account.IncreasePerSecond * Delay);
}

var query = EntityQueryEnumerator<CargoOrderConsoleComponent>();
Expand Down
2 changes: 1 addition & 1 deletion Resources/Locale/en-US/cargo/cargo-console-component.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cargo-console-menu-account-name-label = Account name:{" "}
cargo-console-menu-account-name-none-text = None
cargo-console-menu-shuttle-name-label = Shuttle name:{" "}
cargo-console-menu-shuttle-name-none-text = None
cargo-console-menu-points-label = Spesos:{" "}
cargo-console-menu-points-label = Caps:{" "}
cargo-console-menu-points-amount = ${$amount}
cargo-console-menu-shuttle-status-label = Shuttle status:{" "}
cargo-console-menu-shuttle-status-away-text = Away
Expand Down
2 changes: 1 addition & 1 deletion Resources/Locale/en-US/cargo/price-gun-component.ftl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
price-gun-pricing-result = The device deems {THE($object)} to be worth {$price} spesos.
price-gun-pricing-result = The device deems {THE($object)} to be worth {$price} caps.
price-gun-verb-text = Appraisal
price-gun-verb-message = Appraise {THE($object)}.
price-gun-bounty-complete = The device confirms that the bounty contained within is completed.
1 change: 1 addition & 0 deletions Resources/Maps/N14/MercerIslandSewers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ entities:
- 0
- uid: 2
components:
- type: TradeStation
- type: MetaData
name: grid
- type: Transform
Expand Down
1 change: 1 addition & 0 deletions Resources/Maps/N14/MercerIslandSurface.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ entities:
- type: RadiationGridResistance
- uid: 2
components:
- type: TradeStation
- type: MetaData
name: grid
- type: Transform
Expand Down
1 change: 1 addition & 0 deletions Resources/Maps/N14/SunnyvaleSurface.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ entities:
entities:
- uid: 1
components:
- type: TradeStation
- type: MetaData
name: Sunnyvale
- type: Transform
Expand Down
1 change: 1 addition & 0 deletions Resources/Maps/N14/SunnyvaleUnderground.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ entities:
- 0
- uid: 2
components:
- type: TradeStation
- type: MetaData
name: SunnyvaleUnderground
- type: Transform
Expand Down
49 changes: 0 additions & 49 deletions Resources/Prototypes/DeltaV/Catalog/Cargo/cargo_armory.yml

This file was deleted.

29 changes: 0 additions & 29 deletions Resources/Prototypes/DeltaV/Catalog/Cargo/cargo_food.yml

This file was deleted.

19 changes: 0 additions & 19 deletions Resources/Prototypes/DeltaV/Catalog/Cargo/cargo_fun.yml

This file was deleted.

9 changes: 0 additions & 9 deletions Resources/Prototypes/DeltaV/Catalog/Cargo/cargo_livestock.yml

This file was deleted.

9 changes: 0 additions & 9 deletions Resources/Prototypes/DeltaV/Catalog/Cargo/cargo_medical.yml

This file was deleted.

9 changes: 0 additions & 9 deletions Resources/Prototypes/DeltaV/Catalog/Cargo/cargo_vending.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Objects/Power/powercells.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- type: Item
storedRotation: -90
- type: Battery
pricePerJoule: 0.15
pricePerJoule: 0.009
- type: PowerCell
- type: Explosive
explosionType: Default
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
stackType: Brutepack
count: 10
- type: StackPrice
price: 5
price: 1

- type: entity
id: Brutepack1
Expand Down Expand Up @@ -287,7 +287,7 @@
stackType: Gauze
count: 10
- type: StackPrice
price: 10
price: 1

- type: entity
id: Gauze1
Expand Down
16 changes: 8 additions & 8 deletions Resources/Prototypes/Entities/Objects/Tools/tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
materialComposition:
Steel: 100
- type: StaticPrice
price: 30
price: 1

- type: entity
name: screwdriver
Expand Down Expand Up @@ -121,7 +121,7 @@
materialComposition:
Steel: 100
- type: StaticPrice
price: 30
price: 1

- type: entity
name: wrench
Expand Down Expand Up @@ -177,7 +177,7 @@
materialComposition:
Steel: 100
- type: StaticPrice
price: 22
price: 1

- type: entity
name: crowbar
Expand Down Expand Up @@ -232,7 +232,7 @@
materialComposition:
Steel: 100
- type: StaticPrice
price: 22
price: 1
- type: Prying

- type: entity
Expand Down Expand Up @@ -312,7 +312,7 @@
Steel: 100
Plastic: 100
- type: StaticPrice
price: 56
price: 2

- type: entity
name: network configurator
Expand Down Expand Up @@ -360,7 +360,7 @@
- key: enum.NetworkConfiguratorUiKey.Link
type: NetworkConfiguratorBoundUserInterface
- type: StaticPrice
price: 56
price: 2
# - type: GuideHelp
# guides:
# - NetworkConfigurator
Expand Down Expand Up @@ -413,7 +413,7 @@
# - type: DynamicPrice
# price: 100
- type: StaticPrice
price: 100
price: 10
- type: MeleeWeapon
wideAnimationRotation: -90
attackRate: 0.9
Expand Down Expand Up @@ -659,7 +659,7 @@
Steel: 100
Wood: 50
- type: StaticPrice
price: 25
price: 1
# Delta V: Adds tool quality for digging
- type: Tool
qualities:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
params:
volume: -1
- type: StaticPrice
price: 1
price: 0.2
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
gun_magazine: !type:ContainerSlot
gun_chamber: !type:ContainerSlot
- type: StaticPrice
price: 500
price: 30

- type: entity
name: AKMS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
gun_magazine: !type:ContainerSlot
gun_chamber: !type:ContainerSlot
- type: StaticPrice
price: 500
price: 10

- type: entity
name: Atreides
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
ballistic-ammo: !type:Container
ents: []
- type: StaticPrice
price: 500
price: 10

- type: entity
name: Bulldog
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
ballistic-ammo: !type:Container
ents: []
- type: StaticPrice
price: 500
price: 10

- type: entity
name: Kardashev-Mosin
Expand Down

This file was deleted.

19 changes: 0 additions & 19 deletions Resources/Prototypes/Nyanotrasen/Catalog/Cargo/cargo_service.yml

This file was deleted.

Loading

0 comments on commit 7fb8d47

Please sign in to comment.