protected override void Initialize() { base.Initialize(); DamageType = IoCManager.Resolve <IPrototypeManager>().Index <DamageTypePrototype>(_damageTypeID); if (Owner.TryGetComponent(out AppearanceComponent? appearance)) { appearance.SetData(AsteroidRockVisuals.State, _random.Pick(SpriteStates)); } }
protected override void Initialize() { base.Initialize(); DamageType = IoCManager.Resolve <IPrototypeManager>().Index <DamageTypePrototype>(_damageTypeID); }
protected override void Initialize() { base.Initialize(); DamageType = IoCManager.Resolve <IPrototypeManager>().Index <DamageTypePrototype>(_damageTypeID); _lightBulbContainer = Owner.EnsureContainer <ContainerSlot>("light_bulb"); }
public DamageChangeData(DamageTypePrototype type, int newValue, int delta) { Type = type; NewValue = newValue; Delta = delta; }