Module
Module - active module in a ship's buildout
Constructor Summary
Public Constructor | ||
public |
constructor(params: Object) Construct a new module |
Method Summary
Public Methods | ||
public |
Clone an existing module |
|
public |
Get the ammo size for this module, taking in to account modifications |
|
public |
Get the bays for this module, taking in to account modifications |
|
public |
Get the broken regeneration rate for this module, taking in to account modifications |
|
public |
Get the burst size for this module, taking in to account modifications |
|
public |
Get the burst rate of fire for this module, taking in to account modifications |
|
public |
Get the capture arc for this module, taking in to account modifications |
|
public |
Get the clip size for this module, taking in to account modifications |
|
public |
Get the damage for this module, taking in to account modifications |
|
public |
Get the damage distribution for this module, taking in to account modifications |
|
public |
Get the delay for this module, taking in to account modifications |
|
public |
Get the distributor draw for this module, taking in to account modifications |
|
public |
Get the DPS for this module, taking in to account modifications |
|
public |
Get the duration for this module, taking in to account modifications |
|
public |
Get the engines capacity for this module, taking in to account modifications |
|
public |
Get the engines recharge rate for this module, taking in to account modifications |
|
public |
Get the EPS for this module, taking in to account modifications |
|
public |
Get the explosive resistance for this module, taking in to account modifications |
|
public |
Get the facing limit for this module, taking in to account modifications |
|
public |
getFalloff(): Number Get the falloff for this module, taking in to account modifications |
|
public |
Get the hack time for this module, taking in to account modifications |
|
public |
Get the HPS for this module, taking in to account modifications |
|
public |
Get the hull boost for this module, taking in to account modifications |
|
public |
Get the hull reinforcement for this module, taking in to account modifications |
|
public |
Get the integrity of this module, taking in to account modifications |
|
public |
Get the jitter for this module, taking in to account modifications |
|
public |
Get the kinetic resistance for this module, taking in to account modifications |
|
public |
Get the mass of this module, taking in to account modifications |
|
public |
Get the maximum fuel per jump for this module, taking in to account modifications |
|
public |
getMaxMass(): Number Get the maximum mass for this module, taking in to account modifications |
|
public |
Get the maximum multiplier for this module, taking in to account modifications |
|
public |
getMinMass(): Number Get the minimum mass for this module, taking in to account modifications |
|
public |
Get the minimum multiplier for this module, taking in to account modifications |
|
public |
getModValue(name: Number, raw: Number): object Get a value for a given modification |
|
public |
getOptMass(): Number Get the optimum mass for this module, taking in to account modifications |
|
public |
Get the optimum multiplier for this module, taking in to account modifications |
|
public |
Get the piercing for this module, taking in to account modifications |
|
public |
Get the power generation of this module, taking in to account modifications |
|
public |
Get the power usage of this module, taking in to account modifications |
|
public |
Get the protection for this module, taking in to account modifications |
|
public |
Get the range for this module, taking in to account modifications |
|
public |
Get the range (in terms of seconds, for FSDI) for this module, taking in to account modifications |
|
public |
Get the rebuilds per bay for this module, taking in to account modifications |
|
public |
Get the regeneration rate for this module, taking in to account modifications |
|
public |
Get the reload time for this module, taking in to account modifications |
|
public |
Get the rate of fire for this module, taking in to account modifications. |
|
public |
Get the rounds per shot for this module, taking in to account modifications |
|
public |
Get the scan time for this module, taking in to account modifications |
|
public |
Get the shield boost for this module, taking in to account modifications |
|
public |
Get the shield reinforcement for this module, taking in to account modifications |
|
public |
Get the shot speed for this module, taking in to account modifications |
|
public |
Get the spinup for this module, taking in to account modifications |
|
public |
Get the systems capacity for this module, taking in to account modifications |
|
public |
Get the systems recharge rate for this module, taking in to account modifications |
|
public |
Get the thermal efficiency of this module, taking in to account modifications |
|
public |
Get the thermal load for this module, taking in to account modifications |
|
public |
Get the thermal resistance for this module, taking in to account modifications |
|
public |
Get the time for this module, taking in to account modifications |
|
public |
Get the weapons capacity for this module, taking in to account modifications |
|
public |
Get the weapons recharge rate for this module, taking in to account modifications |
|
public |
setModValue(name: Number, value: object, valueiswithspecial: Boolean) Set a value for a given modification ID |
Private Methods | ||
private |
_getModifiedValue(name: String): Number Helper to obtain a modified value using standard multipliers |
Public Constructors
Public Methods
public getAmmo(): Number source
Get the ammo size for this module, taking in to account modifications
public getBrokenRegenerationRate(): Number source
Get the broken regeneration rate for this module, taking in to account modifications
public getBurst(): Number source
Get the burst size for this module, taking in to account modifications
public getBurstRoF(): Number source
Get the burst rate of fire for this module, taking in to account modifications
public getCaptureArc(): Number source
Get the capture arc for this module, taking in to account modifications
public getClip(): Number source
Get the clip size for this module, taking in to account modifications
public getDamage(): Number source
Get the damage for this module, taking in to account modifications
public getDamageDist(): string source
Get the damage distribution for this module, taking in to account modifications
public getDistDraw(): Number source
Get the distributor draw for this module, taking in to account modifications
public getDuration(): Number source
Get the duration for this module, taking in to account modifications
public getEnginesCapacity(): Number source
Get the engines capacity for this module, taking in to account modifications
public getEnginesRechargeRate(): Number source
Get the engines recharge rate for this module, taking in to account modifications
public getExplosiveResistance(): Number source
Get the explosive resistance for this module, taking in to account modifications
public getFacingLimit(): Number source
Get the facing limit for this module, taking in to account modifications
public getFalloff(): Number source
Get the falloff for this module, taking in to account modifications
public getHackTime(): string source
Get the hack time for this module, taking in to account modifications
public getHullBoost(): Number source
Get the hull boost for this module, taking in to account modifications
public getHullReinforcement(): Number source
Get the hull reinforcement for this module, taking in to account modifications
public getIntegrity(): Number source
Get the integrity of this module, taking in to account modifications
public getJitter(): Number source
Get the jitter for this module, taking in to account modifications
public getKineticResistance(): Number source
Get the kinetic resistance for this module, taking in to account modifications
public getMaxFuelPerJump(): Number source
Get the maximum fuel per jump for this module, taking in to account modifications
public getMaxMass(): Number source
Get the maximum mass for this module, taking in to account modifications
public getMaxMul(type: string): Number source
Get the maximum multiplier for this module, taking in to account modifications
Params:
Name | Type | Attribute | Description |
type | string | the type for which we are obtaining the multiplier. Can be 'speed', 'rotation', 'acceleration', or null |
public getMinMass(): Number source
Get the minimum mass for this module, taking in to account modifications
public getMinMul(type: string): Number source
Get the minimum multiplier for this module, taking in to account modifications
Params:
Name | Type | Attribute | Description |
type | string | the type for which we are obtaining the multiplier. Can be 'speed', 'rotation', 'acceleration', or null |
public getModValue(name: Number, raw: Number): object source
Get a value for a given modification
Return:
object | The value of the modification. If it is a numeric value then it is returned as an integer value scaled so that 1.23% == 123 |
public getOptMass(): Number source
Get the optimum mass for this module, taking in to account modifications
public getOptMul(type: string): Number source
Get the optimum multiplier for this module, taking in to account modifications
Params:
Name | Type | Attribute | Description |
type | string | the type for which we are obtaining the multiplier. Can be 'speed', 'rotation', 'acceleration', or null |
public getPiercing(): Number source
Get the piercing for this module, taking in to account modifications
public getPowerGeneration(): Number source
Get the power generation of this module, taking in to account modifications
public getPowerUsage(): Number source
Get the power usage of this module, taking in to account modifications
public getProtection(): Number source
Get the protection for this module, taking in to account modifications
public getRangeT(): Number source
Get the range (in terms of seconds, for FSDI) for this module, taking in to account modifications
public getRebuildsPerBay(): Number source
Get the rebuilds per bay for this module, taking in to account modifications
public getRegenerationRate(): Number source
Get the regeneration rate for this module, taking in to account modifications
public getReload(): Number source
Get the reload time for this module, taking in to account modifications
public getRoF(): Number source
Get the rate of fire for this module, taking in to account modifications. The rate of fire is a combination value, and needs to take in to account bursts of fire. Firing goes [burst 1] [burst interval] [burst 2] [burst interval] ... [burst n] [interval] where 'n' is 'burst', 'burst interval' is '1/burstrof' and 'interval' is '1/rof'
public getRoundsPerShot(): Number source
Get the rounds per shot for this module, taking in to account modifications
public getScanTime(): Number source
Get the scan time for this module, taking in to account modifications
public getShieldBoost(): Number source
Get the shield boost for this module, taking in to account modifications
public getShieldReinforcement(): Number source
Get the shield reinforcement for this module, taking in to account modifications
public getShotSpeed(): string source
Get the shot speed for this module, taking in to account modifications
public getSpinup(): string source
Get the spinup for this module, taking in to account modifications
public getSystemsCapacity(): Number source
Get the systems capacity for this module, taking in to account modifications
public getSystemsRechargeRate(): Number source
Get the systems recharge rate for this module, taking in to account modifications
public getThermalEfficiency(): Number source
Get the thermal efficiency of this module, taking in to account modifications
public getThermalLoad(): Number source
Get the thermal load for this module, taking in to account modifications
public getThermalResistance(): Number source
Get the thermal resistance for this module, taking in to account modifications
public getWeaponsCapacity(): Number source
Get the weapons capacity for this module, taking in to account modifications
public getWeaponsRechargeRate(): Number source
Get the weapons recharge rate for this module, taking in to account modifications
public setModValue(name: Number, value: object, valueiswithspecial: Boolean) source
Set a value for a given modification ID
Params:
Name | Type | Attribute | Description |
name | Number | The name of the modification |
|
value | object | The value of the modification. If it is a numeric value then it should be an integer scaled so that -2.34% == -234 |
|
valueiswithspecial | Boolean | true if the value includes the special effect (when coming from a UI component) |