Class EnemyDef

Namespace
SurvivorsMaker.Simulation
Assembly
SurvivorsMaker.Simulation.dll

An enemy or neutral object (e.g. a destructible crate).

public sealed class EnemyDef
Inheritance
EnemyDef
Inherited Members

Constructors

EnemyDef()

public EnemyDef()

Fields

AlwaysDropHeal

public bool AlwaysDropHeal

Field Value

bool

Attack

public SpecialAttackDef Attack

Field Value

SpecialAttackDef

BodyRadius

Body radius for arena clamping and contact. ≤ 0 → DefaultBodyRadius.

public float BodyRadius

Field Value

float

CanDropHeal

public bool CanDropHeal

Field Value

bool

ContactDamage

public Scaled ContactDamage

Field Value

Scaled

DeathSpawn

public DeathSpawnDef DeathSpawn

Field Value

DeathSpawnDef

Health

public Scaled Health

Field Value

Scaled

HitRadius

Radius weapons hit. ≤ 0 → body radius.

public float HitRadius

Field Value

float

Id

public string Id

Field Value

string

IsBoss

Bosses get phase changes, boss events and the boss health bar.

public bool IsBoss

Field Value

bool

KnockbackResistance

0 = full knockback, 1 = immune.

public float KnockbackResistance

Field Value

float

Movement

public MovementDef Movement

Field Value

MovementDef

Phases

Boss phases in order. Empty = Movement/Attack above for the whole fight.

public List<BossPhaseDef> Phases

Field Value

List<BossPhaseDef>

Speed

public float Speed

Field Value

float

SpeedJitter

± jitter on speed, fixed at spawn.

public float SpeedJitter

Field Value

float

StatusImmunities

Statuses this enemy ignores.

public List<StatusKind> StatusImmunities

Field Value

List<StatusKind>

StatusImmunityIds

Statuses this enemy ignores, by behaviour id (accepts custom and built-in status ids).

public List<string> StatusImmunityIds

Field Value

List<string>

Support

public SupportDef Support

Field Value

SupportDef

Value

Currency dropped and experience given on death (non-neutral only).

public int Value

Field Value

int