Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

addEmployeeAgeRange

Description

Adds the employee age range with the specified weight value.

Arguments

1 table table

a table containing the age info in the form of {min = number, max = number, weight = number}. Lower weight value = lower chance that this age range will be picked.

Example

-- taken from game/employee_circulation.lua


employeeCirculation:addEmployeeAgeRange({min = 18, max = 26, weight = 100})
employeeCirculation:addEmployeeAgeRange({min = 27, max = 34, weight = 80})
employeeCirculation:addEmployeeAgeRange({min = 35, max = 42, weight = 50})
employeeCirculation:addEmployeeAgeRange({min = 43, max = 50, weight = 20})