Commit 3ff3a95
committed
Overhaul dorf_tables.lua
-Added 'job_distributions' table.
This table is responsible for allocation of all jobs from dorf_jobs.
It defines 12 population thresholds. Allocation can take place from 1-138 dwarves
thresholds: { 7, 14, 21, 28, 35, 42, 49, 56, 63, 70, 77, 138 }
Each threshold allocates 7 jobs for a population <= threshold.
This benefits dorf_jobs and professions allowing these two tables to be slimmed down.
-Removed cur/min/max from 'dorf_jobs'
-Removed prio tables from dorf_jobs
Priority professions were moved to the Tertiary section with heavily weighted probabilities.
-Removed cur/max/ratio from 'professions'
C++11 offers pretty decent random booleans. The statistics are pretty damn precise.
With this consideration, the tertiary probabilities can be used to control ratios.
This may require tweaking, but is far more streamlined.
todo:
-revise `pimp-it.lua`
*priority professions are gone, the tertiary loop will need to use a point system for min/max ranges
*implement persistent job counts, perhaps via json
Changes to be committed:
modified: dorf_tables.lua
Squashing commits:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This is the commit message DFHack#2:
Add field 'max' to job distributions
Changes to be committed:
modified: dorf_tables.lua
------------------
The commit message DFHack#3 will be skipped:
Fix! dorf_tables.lua
-Fixes a missing comma in the job_distributions table.
-Fixes a missing profession in the professions table. (ie. DYER)
Changes to be committed:
modified: dorf_tables.lua
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Date: Tue Dec 19 23:40:18 2017 -0800
Rebasing branch 'lua-dorf-buffing' on '2898c5f'.
Changes to be committed:
modified: dorf_tables.lua1 parent 2ff2b9a commit 3ff3a95
1 file changed
Lines changed: 253 additions & 413 deletions
0 commit comments