Imperivm Modding WikiCKS · FORMATS · GUIDESEspañol
Settlement · CKS MEMBER

CanAfford

Resolves a Settlement and named command, then returns whether a cost check succeeds.

Signature

bool Settlement::CanAfford(str)

Parameters and return

Receiver: Settlement · Return: bool

PositionType
1str

Other overloads

MemberSignature and description
Settlement::CanAffordSettlementbool Settlement::CanAfford(int, int)

Tests positive signed resource quotients after subtracting the keyed reservation from available gold.

Settlement::CanAffordSettlementbool Settlement::CanAfford(str, int)

Compares the requested count with the signed native command affordability count.

← Explore Settlement
MarkdownJSON

Suggest a better description

Your proposal will be held in a private inbox for review.

Controller: José Luis de la Torre Reyes. Proposals are processed to review documentation improvements on the basis of legitimate interests. You can request access, correction, erasure or object by writing to seluedita@gmail.com. Opening this form uses a first-party security cookie for one hour. Submitting stores the proposal and an IP-derived security identifier in the private inbox; omitting your name does not make the submission technically anonymous. Privacy information · Cookies and browser storage.

0 / 4000

Proposals are reviewed before publication. Do not include personal information in the description.