Table of Contents

Class TimbnRewards

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

What the player gets for an answer or a quest step. An answer, a step's Accept answer included, shows its rewards and the game pays them when it is picked. Any other step pays them when it is done, and a quest's money and reputation also show on its reward line in the quest window.

public sealed class TimbnRewards
Inheritance
TimbnRewards
Inherited Members

Examples

.Reward(reward => reward.Money(300).Item("grape_wine:2").Reputation(10))

Methods

Item(string, int)

An item. Rewards that don't fit in the player's inventory drop on the ground by the player.

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

Parameters

itemId string

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

count int

How many.

Returns

TimbnRewards

These rewards, for chaining.

Money(int)

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

public TimbnRewards Money(int amount)

Parameters

amount int

How much.

Returns

TimbnRewards

These rewards, for chaining.

Reputation(int)

Reputation with the NPC the player is talking to, which is the NPC of a quest step's Talk, or the quest giver for a step with no Talk.

public TimbnRewards Reputation(int amount)

Parameters

amount int

How much.

Returns

TimbnRewards

These rewards, for chaining.

Resource(string, float)

Any other resource the player keeps.

public TimbnRewards Resource(string resourceId, float amount)

Parameters

resourceId string

The resource id.

amount float

How much.

Returns

TimbnRewards

These rewards, for chaining.

ShowItem(string, int)

Shows an item on the answer without giving it, for a reward your own code hands out, such as a Give line after the answer. It looks the same as Item(string, int).

public TimbnRewards ShowItem(string itemId, int count = 1)

Parameters

itemId string

The item id.

count int

How many to show.

Returns

TimbnRewards

These rewards, for chaining.

Examples

ask.Answer("Trade a stick for boards.", then => then.Give("flitch", 2), cost: cost => cost.Item("stick"), reward: reward => reward.ShowItem("flitch", 2))

ShowResource(string, float)

Shows a resource, such as money, on the answer without giving it. See ShowItem(string, int).

public TimbnRewards ShowResource(string resourceId, float amount)

Parameters

resourceId string

The resource id.

amount float

How much to show.

Returns

TimbnRewards

These rewards, for chaining.