Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

calculateEngineCost

Description

Calculates the engine's cost.

Arguments

1 engine object

the engine to calculate.

2 bool isFree

whether the engine is free. Will return 0 if this is true.

Returns

1 number

the cost.