StationServices: one engine-free owner for sell price, repair cost and the sale and repair commits

Settings gain SellFraction, RepairFraction and StartingCredits. A sale pays the price scaled by condition and moves the
item into a station bay or refuses with everything unchanged; a repair restores every durability and charges the wear,
or refuses when short.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-06 19:30:31 +02:00
commit 39b6d28f3a
3 changed files with 265 additions and 0 deletions

View file

@ -161,6 +161,11 @@ public class GameplaySettings
public EntitySettings DefaultEntitySettings;
public RarityTier[] Tiers;
public ExponentialLerp QualityPriceModifier;
// What a station pays for goods, as a fraction of their price, scaled further by the item's condition.
public float SellFraction = .5f;
// What a station charges to restore worn gear, as a fraction of the price of the wear.
public float RepairFraction = .25f;
public int StartingCredits = 15000000;
public float DurabilityQualityExponent = 2;
public float DurabilityQualityMin = 2;
public float DurabilityQualityMax = .25f;