Class: Repairable

Repairable()

new Repairable()

Source:

Methods

AddBuilders(builders)

Adds an array of builders.
Parameters:
Name Type Description
builders Array.<number> An array containing the entity IDs of builders to assign.
Source:

CalculateBuildMultiplier()

The build multiplier is a penalty that is applied to each builder. For example, ten women build at a combined rate of 10^0.7 = 5.01 instead of 10.
Source:

GetBuilders() → {Array.<number>}

Returns the current builders.
Source:
Returns:
- An array containing the entity IDs of assigned builders.
Type
Array.<number>

GetBuildProgress()

Returns the current build progress in a [0,1] range.
Source:

IsRepairable()

Source:
Returns:
whether this entity can be repaired (this does not account for health).