Skip to content

Commit

Permalink
Merge pull request Corvax-Frontier#96 from NEirotoXiN00/Inflation
Browse files Browse the repository at this point in the history
Boost inflation
  • Loading branch information
Sh1ntra authored Dec 3, 2024
2 parents 7db70f9 + 3b21215 commit 52248b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Content.Server/Corvax/Inflation/InflationCargoCrateSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ public override void Update(float frameTime)

if (numberCrates >= 1 && numberCrates <= 19)
modifier = 1;
else if (numberCrates >= 20 && numberCrates <= 39)
modifier = 0.9;
else if (numberCrates >= 40 && numberCrates <= 69)
modifier = 0.85;
else if (numberCrates >= 70)
modifier = 0.82;
else if (numberCrates >= 20 && numberCrates <= 29)
modifier = 0.8;
else if (numberCrates >= 30 && numberCrates <= 49)
modifier = 0.75;
else if (numberCrates >= 50)
modifier = 0.68;

foreach (var iterator in _entManager.EntityQuery<TradeCrateComponent>(true))
{
Expand Down
3 changes: 3 additions & 0 deletions Resources/Prototypes/_NF/Catalog/Fills/Crates/trade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@
parent: CrateTradeBaseSecureHigh
name: high value cargo trading crate
description: Contains high value goods made in the Frontier sector, ready to be sold on a cargo depot for higher value. MAKE SURE THE CRATE IS INTACT.
components:
- type: InflationCargoCrate
isInflated: false

0 comments on commit 52248b2

Please sign in to comment.