Table of Contents

Class TimbnCost

Namespace
Timbn.GraveyardKeeperTwo.Core.Framework
Assembly
Timbn.GraveyardKeeperTwo.Core.dll

What the player pays for an answer or a quest step, taken when they pick the answer. The game draws each cost as the item's icon or the price with how much the player has, and grays the answer out until they can pay. Something the player only has to have goes in TimbnNeeds instead.

public sealed class TimbnCost
Inheritance
TimbnCost
Inherited Members

Examples

.Cost(cost => cost.Money(200))

Methods

Item(string, int)

Items the player hands over.

public TimbnCost Item(string itemId, int count = 1)

Parameters

itemId string

The item id, with its quality suffix where it has one, such as grape_wine:1.

count int

How many.

Returns

TimbnCost

This cost, for chaining.

Money(int)

Money in the game's raw units, where 100 is one silver coin and 10,000 one gold coin.

public TimbnCost Money(int amount)

Parameters

amount int

How much.

Returns

TimbnCost

This cost, for chaining.

Resource(string, float)

A resource the player pays.

public TimbnCost Resource(string resourceId, float amount)

Parameters

resourceId string

The resource id.

amount float

How much.

Returns

TimbnCost

This cost, for chaining.