Table of Contents

Class TimbnNeeds

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

What has to be true before the player can go on, checked but never taken. On an answer the game draws each need as a lock and grays the answer out until they are all met. On a quest or stage they gate its talk, so the NPC only offers it once they are met. To take something from the player, use TimbnCost.

public sealed class TimbnNeeds
Inheritance
TimbnNeeds
Inherited Members

Examples

.Needs(need => need.Reputation(30).OnWeekday(TimbnWeekday.Pride).Item("shovel"))

Methods

Gratitude(float)

Gratitude, which the town vendors ask for.

public TimbnNeeds Gratitude(float amount)

Parameters

amount float

How much.

Returns

TimbnNeeds

These needs, for chaining.

Item(string, int)

Items the player has to carry but keeps.

public TimbnNeeds 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

TimbnNeeds

These needs, for chaining.

Money(int)

Money the player has to have but keeps, in the game's raw units, where 100 is one silver coin.

public TimbnNeeds Money(int amount)

Parameters

amount int

How much.

Returns

TimbnNeeds

These needs, for chaining.

OnWeekday(TimbnWeekday)

Only on one day of the week, shown with the day's icon. One day per answer.

public TimbnNeeds OnWeekday(TimbnWeekday day)

Parameters

day TimbnWeekday

The day.

Returns

TimbnNeeds

These needs, for chaining.

OrderCompleted(string)

One of the town vendors' orders finished this week, such as quest_order_iron. One order per answer.

public TimbnNeeds OrderCompleted(string orderId)

Parameters

orderId string

The order id.

Returns

TimbnNeeds

These needs, for chaining.

Reputation(int)

Reputation with the NPC the player is talking to, such as the favor a vendor asks for before a job. Herm and the village head share one reputation.

public TimbnNeeds Reputation(int amount)

Parameters

amount int

How much.

Returns

TimbnNeeds

These needs, for chaining.

Resource(string, float)

A resource the player has to have but keeps.

public TimbnNeeds Resource(string resourceId, float amount)

Parameters

resourceId string

The resource id.

amount float

How much.

Returns

TimbnNeeds

These needs, for chaining.