Class Jailbird
A wrapped class for InventorySystem.Items.Jailbird.JailbirdItem.
public class Jailbird : Item, IWrapper<ItemBase>, IWrapper<JailbirdItem>
- Inheritance
-
Jailbird
- Inherited Members
- Extension Methods
Constructors
Jailbird(JailbirdItem)
Initializes a new instance of the Jailbird class.
public Jailbird(JailbirdItem itemBase)
Parameters
itemBase
JailbirdItemThe base InventorySystem.Items.Jailbird.JailbirdItem class.
Properties
Base
Gets the InventorySystem.Items.Jailbird.JailbirdItem that this class is encapsulating.
public JailbirdItem Base { get; }
Property Value
- JailbirdItem
ChargeDamage
Gets or sets the amount of damage dealt with a Jailbird charge hit.
public float ChargeDamage { get; set; }
Property Value
ConcussionDuration
Gets or sets the amount of time in seconds that the CustomPlayerEffects.Concussed effect will be applied on being hit.
public float ConcussionDuration { get; set; }
Property Value
FlashDuration
Gets or sets the amount of time in seconds that the CustomPlayerEffects.Flashed effect will be applied on being hit.
public float FlashDuration { get; set; }
Property Value
MeleeDamage
Gets or sets the amount of damage dealt with a Jailbird melee hit.
public float MeleeDamage { get; set; }
Property Value
Radius
Gets or sets the radius of the Jailbird's hit register.
public float Radius { get; set; }
Property Value
TotalCharges
Gets or sets the number of times the item has been charged and used.
public int TotalCharges { get; set; }
Property Value
TotalDamageDealt
Gets or sets the total amount of damage dealt with the Jailbird.
public float TotalDamageDealt { get; set; }
Property Value
WearState
Gets or sets the InventorySystem.Items.Jailbird.JailbirdWearState for this item.
public JailbirdWearState WearState { get; set; }
Property Value
- JailbirdWearState
Methods
Break()
Breaks the Jailbird.
public void Break()
Clone()
Clones current Jailbird object.
public override Item Clone()
Returns
GetCharge(JailbirdWearState)
Gets the charge needed to reach a specific InventorySystem.Items.Jailbird.JailbirdWearState.
public int GetCharge(JailbirdWearState wearState)
Parameters
wearState
JailbirdWearStateThe desired wear state to calculate the charge for.
Returns
- int
The charge value required to achieve the specified wear state.
GetDamage(JailbirdWearState)
Calculates the damage corresponding to a given InventorySystem.Items.Jailbird.JailbirdWearState.
public float GetDamage(JailbirdWearState wearState)
Parameters
wearState
JailbirdWearStateThe wear state to calculate damage for.
Returns
- float
The amount of damage associated with the specified wear state.
ToString()
Returns the JailBird in a human readable format.
public override string ToString()
Returns
- string
A string containing JailBird-related data.