Table of Contents

Class DamageArgs

Namespace
TrinketTinker.Models.AbilityArgs
Assembly
TrinketTinker.dll

Damage to monster argument

public class DamageArgs : IArgs
Inheritance
DamageArgs
Implements
Derived
Inherited Members

Fields

Filters

List of monster types to avoid targeting.

public List<string>? Filters

Field Value

List<string>

Properties

CritChance

Critical chance

public float CritChance { get; set; }

Property Value

float

CritDamage

Critical damage

public float CritDamage { get; set; }

Property Value

float

ExplodeRadius

If this is non-zero, generate a explosion on hit. Farmer will take Min damage from this. Might damage another monster, but the monster that got hit would be in iframe at this point.

public int ExplodeRadius { get; set; }

Property Value

int

FacingDirectionOnly

Restrict monster picks to facing direction only

public bool FacingDirectionOnly { get; set; }

Property Value

bool

HitTAS

Temporary sprite to display on hit, must be defined in mushymato.TrinketTinker/TAS. Rotation will be overwritten if this is used for a projectile.

public string? HitTAS { get; set; }

Property Value

string

Hits

Number of hits to perform

public int Hits { get; set; }

Property Value

int

HitsDelay

Delay between hits

public int HitsDelay { get; set; }

Property Value

int

Knockback

Knockback modifier

public float Knockback { get; set; }

Property Value

float

Max

Max damage, out of 1

public int Max { get; set; }

Property Value

int

Min

Min damage

public int Min { get; set; }

Property Value

int

Precision

Precision modifier

public int Precision { get; set; }

Property Value

int

Range

Pixel range for finding monsters

public int Range { get; set; }

Property Value

int

StunTAS

Temporary sprite to display while an enemy is stunned, must be defined in mushymato.TrinketTinker/TAS. Loop will be overwritten by the stun time. Rotation will be overwritten if this is used for a projectile.

public string? StunTAS { get; set; }

Property Value

string

StunTime

Stun time in miliseconds

public int StunTime { get; set; }

Property Value

int

Methods

DamageMonster(GameLocation, Farmer, Monster)

Do damage and debuff on monster.

public void DamageMonster(GameLocation location, Farmer farmer, Monster target)

Parameters

location GameLocation
farmer Farmer
target Monster

Validate()

Checks if the given arguments are valid, potentially modify arguments to ensure they are valid

public bool Validate()

Returns

bool

true if valid