Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

registerNew

Description

Registers a new interest.

Arguments

1 table data

the interest data.

Example

interests:registerNew({
	id = "firearms",
	chance = 50, -- the chance to give this interest to a generated employee

	display = _T("FIREARMS", "Firearms"),
	person = _T("FIREARMS_SINGULAR", "a firearm enthusiast"),
	quad = "interest_firearms", -- the quad to use for displaying this interest

	description = _T("FIREARMS_DESCRIPTION", "To these people, nothing beats the feeling of a gun recoiling in their hands as they fire it."),
	drivePerPoint = 0, -- per each point that contributes to the interest, the developer will gain this much more drive per each day

	knowledgeProgression = {{id = "firearms", min = 2, max = 3}} -- the knowledge to progress every week

})