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
TrinketTinkerEffectdata
AbilityDatalevel
int
Fields
BUSH
public const string BUSH = "Bush"
Field Value
FRUIT_TREE
public const string FRUIT_TREE = "FruitTree"
Field Value
TREE
public const string TREE = "Tree"
Field Value
Methods
CheckShakeable(TerrainFeature, IReadOnlyList<string>?)
Check if a terrain feature
public static bool CheckShakeable(TerrainFeature feature, IReadOnlyList<string>? filters)
Parameters
feature
TerrainFeaturefilters
IReadOnlyList<string>
Returns
DoHarvest(GameLocation, Farmer, Vector2)
Harvest given object
protected override bool DoHarvest(GameLocation location, Farmer farmer, Vector2 tile)
Parameters
location
GameLocationfarmer
Farmertile
Vector2
Returns
InBloomBBM(Bush)
BBM doesn't patch readyForHarvest :u
public static bool InBloomBBM(Bush bush)
Parameters
bush
Bush
Returns
ProbeTile(GameLocation, Vector2)
Check that tile has object
protected override bool ProbeTile(GameLocation location, Vector2 tile)
Parameters
location
GameLocationtile
Vector2