06. Contraband, Retail Markup & Hazard Labels
Customers across different factions have distinct rules regarding contraband items, labeler retail price tags, and hazardous water warning labels.
Core Fields Reference
StoreClient Field | ApplyClientProfile Key | Type | Description |
|---|---|---|---|
noAcceptingContraband | "NoAcceptingContraband" | bool | If true, the buyer strictly refuses any item marked as contraband. |
AcceptingContrabandOverride | "AcceptingContrabandOverride" | bool | If true, overrides faction defaults and forces the buyer to accept contraband. |
chargesContrabandMarkup | "ChargesContrabandMarkup" | bool | Whether a seller charges a risk premium when selling contraband to the player. |
acceptRetailMarkup | "AcceptRetailMarkup" | bool | Whether the buyer honors retail markup tags printed with the labeler. |
refusesHazardousWaterLabel | "RefusesHazardousWaterLabel" | bool | If true, the buyer rejects liquid containers bearing a hazardous water label. |
Code Example: Contraband-Accepting Smuggler
csharp
var sc = new StoreClient
{
identifier = "smuggler_buyer",
displayName = NpcFrameworkSdk.T("底舱走私客", "Lower-Deck Smuggler"),
spriteName = SpriteDict.GetRandomShadySpriteName(),
clientFaction = "FACTION_BLACK_MARKET",
clientIntent = StoreClient.ClientIntent.BUY,
noAcceptingContraband = false,
AcceptingContrabandOverride = true,
acceptRetailMarkup = false
};