Back to TPG

TPG.Economy.MarkContraptionsBilled

S🏷️ Economy

Part of TPG namespace

TPG.Economy.MarkContraptionsBilled(entList)
View on GitHub|gamemode/systems/sv_economy.lua:499-528
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Stamp the price already paid onto each unique contraption in a spawned build. Called from sv_duplication.lua after a paste passes every limit check, in BOTH the economy and the shared-budget mode -- con.TPG_BilledPoints is what ECON.RefundActivePurchases and the re-bill settle logic key off, regardless of which budget mode charged for the purchase (or whether either did). If the build has not settled a real point total yet (the common case for a build that just landed), the stamped baseline is marked provisional (con.TPG_BaselinePending) so the first settle ADOPTS the real number instead of billing the difference between it and a partial reading -- see SettleRebill. Without that, a brand-new vehicle could announce itself as "modified" seconds after spawning, for an edit nobody made.

Parameters

NameTypeDescription
entListtableEntities from the paste.

Returns

No return values documented.

Examples

No examples available.

Used In

No usages found in the codebase.