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
Properties
CritChance
Critical chance
public float CritChance { get; set; }
Property Value
CritDamage
Critical damage
public float CritDamage { get; set; }
Property Value
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
FacingDirectionOnly
Restrict monster picks to facing direction only
public bool FacingDirectionOnly { get; set; }
Property Value
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
Hits
Number of hits to perform
public int Hits { get; set; }
Property Value
HitsDelay
Delay between hits
public int HitsDelay { get; set; }
Property Value
Knockback
Knockback modifier
public float Knockback { get; set; }
Property Value
Max
Max damage, out of 1
public int Max { get; set; }
Property Value
Min
Min damage
public int Min { get; set; }
Property Value
Precision
Precision modifier
public int Precision { get; set; }
Property Value
Range
Pixel range for finding monsters
public int Range { get; set; }
Property Value
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
StunTime
Stun time in miliseconds
public int StunTime { get; set; }
Property Value
Methods
DamageMonster(GameLocation, Farmer, Monster)
Do damage and debuff on monster.
public void DamageMonster(GameLocation location, Farmer farmer, Monster target)
Parameters
location
GameLocationfarmer
Farmertarget
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