Class EjectVendorItems
Throws out a specific amount of random items from a vendor
Inheritance
System.Object
EjectVendorItems
Implements
Namespace: Content.Server.Destructible.Thresholds.Behaviors
Assembly: Content.Server.dll
Syntax
public sealed class EjectVendorItems : object, IThresholdBehavior
Fields
| Improve this Doc View SourceMax
The maximum amount of vendor items it can eject useful for high-inventory vendors
Declaration
public int Max
Field Value
Type | Description |
---|---|
System.Int32 |
Percent
The percent amount of the total inventory that will be ejected.
Declaration
public float Percent
Field Value
Type | Description |
---|---|
System.Single |
Methods
| Improve this Doc View SourceExecute(EntityUid, DestructibleSystem, Nullable<EntityUid>)
Declaration
public void Execute(EntityUid owner, DestructibleSystem system, EntityUid? cause = null)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | owner | |
DestructibleSystem | system | |
System.Nullable<EntityUid> | cause |