Table of Contents

Class HarvestShakeableAbility

Namespace
TrinketTinker.Effects.Abilities
Assembly
TrinketTinker.dll

Harvest shakeable tree/fruittree/bush

public sealed class HarvestShakeableAbility : BaseHarvestAbility<HarvestArgs>, IAbility
Inheritance
HarvestShakeableAbility
Implements
Inherited Members

Constructors

HarvestShakeableAbility(TrinketTinkerEffect, AbilityData, int)

Harvest shakeable tree/fruittree/bush

public HarvestShakeableAbility(TrinketTinkerEffect effect, AbilityData data, int level)

Parameters

effect TrinketTinkerEffect
data AbilityData
level int

Fields

BUSH

public const string BUSH = "Bush"

Field Value

string

FRUIT_TREE

public const string FRUIT_TREE = "FruitTree"

Field Value

string

TREE

public const string TREE = "Tree"

Field Value

string

Methods

CheckShakeable(TerrainFeature, IReadOnlyList<string>?)

Check if a terrain feature

public static bool CheckShakeable(TerrainFeature feature, IReadOnlyList<string>? filters)

Parameters

feature TerrainFeature
filters IReadOnlyList<string>

Returns

bool

DoHarvest(GameLocation, Farmer, Vector2)

Harvest given object

protected override bool DoHarvest(GameLocation location, Farmer farmer, Vector2 tile)

Parameters

location GameLocation
farmer Farmer
tile Vector2

Returns

bool

InBloomBBM(Bush)

BBM doesn't patch readyForHarvest :u

public static bool InBloomBBM(Bush bush)

Parameters

bush Bush

Returns

bool

ProbeTile(GameLocation, Vector2)

Check that tile has object

protected override bool ProbeTile(GameLocation location, Vector2 tile)

Parameters

location GameLocation
tile Vector2

Returns

bool