Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

generateSpecificEmployee

Description

Generate a developer object with specific attributes.

Arguments

1 number name

the name number of the employee. This must be retrieved in advance. If you don't know how this works, pass nil.

2 number surname

the surname number of the employee. This must be retrieved in advance. If you don't know how this works, pass nil.

3 number level

the level of the employee. This affects multiple things like the attributes, skill levels, etc.

4 string role

the role of the employee.

5 number age

The age of the employee. Generally you should keep this under RETIREMENT_AGE_MIN.

6 bool isFemale

whether the employee is female.

7 bool skipFactValidation

whether fact validation should be skipped. Generally you should return false on this.

8 table addInterests

a list of interest IDs to apply to the employee.

9 string nationality

the nationality of the employee.

Returns

1 developer

the newly created developer object.