Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

consoleManufacturers



This library handles registration of manufacturers from their configs.

Methods

Variables

SHARE_PERCENTAGE_DEATH_HITPOINTS (0.07)

when a manufacturer's platform share percentage is <= this, he will be able to reach 0% health and die.

SHARE_PERCENTAGE_MAX_HITPOINTS (0.25)

when share percentage is >= this, the manufacturer will be able to reach max hitpoints.

SHARE_PERCENTAGE_TO_LOSE_HITPOINTS (0.1)

when a manufacturer's platform share (health) percentage is lower than this, he starts losing hitpoints.

ADVERTISEMENT_SHARE_PERCENTAGE (0.1)

when share percentage is above this, the console manufacturer is able to shill his platforms.

ADVERTISEMENT_DURATION ({20, 40})

the advert duration range.

ADVERTISEMENT_COOLDOWN (100)

the cooldown duration for any other advertisement after one is undergoing.

ADVERTISEMENT_ATTRACTIVENESS_BOOST ({1.5, 4})

the advert attractiveness multiplier range.

ADVERTISEMENT_CHANCE (15)

chance each week that a platform manufacturer will try to start a campaign.

HITPOINTS_LOST (1)

amount of hitpoints to lose when eligible.

SHARE_PERCENTAGE_TO_GAIN_HITPOINTS (0.2)

when a manufacturer's platform share (health) percentage is higher than this, he starts gaining hitpoints.

HITPOINTS_GAINED (0.5)

amount of hitpoints to gain when eligible.

MAX_HITPOINTS (200)

the highest hitpoints can go up to.

START_HITPOINTS (100)

the base point for a manufacturer's hitpoints.

DEATH_HITPOINTS (0)

a manufacturer closes down when their hitpoints reach this value.

FULL_EXCLUSIVITY_BONUS (1)

the game must be made for this many manufacturers for there to be a full exclusivity bonus.

PARTIAL_EXCLUSIVITY_BONUS (2)

the game can be made for this many manufacturers for there to be a partial exclusivity bonus.

EXCLUSIVITY_TYPE

table containing exclusivity bonus enumerations: NONE, PARTIAL, FULL.