Table of Contents

Class WeaponBehaviour

Namespace
GrindFest
Assembly
GrindFest.dll
[DisallowMultipleComponent]
public class WeaponBehaviour : MonoBehaviour
Inheritance
object
WeaponBehaviour

Fields

AnimationSet
AttackAnimation
AttackShape
BaseAttackSpeed
BaseMaxDamage
BaseMinDamage
CanBreakBlock

Heavy weapons (warhammers, greatswords, boss weapons) can break through shields.

DefaultAttackTypeName

The attack skill this weapon grants, by type name ("Slash"). The weapon prefab used to carry the skill as a component; a plain class cannot live on a prefab, so the name is the reference and the character gets its own instance when the weapon is equipped.

DefaultProjectilePrefab
Durability
Elements
Interactive
Item
Level
ProjectileAttachPoint
Range
SoundSet
WeaponMaterial
WeaponType

Properties

AttackSpeed
DamagePerSecond
DefaultAttackType

Resolved CLR type of the attack skill (null when unset or unknown).

IsProjectileWeapon

Is this a projectile weapon (bow, crossbow)?

MaxDamage
MinDamage

Methods

OnHit(GetHitEvent)

Operators

implicit operator WeaponBehaviour(ItemBehaviour)
implicit operator ItemBehaviour(WeaponBehaviour)