Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fc-pregmod
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pregmodfan
fc-pregmod
Commits
d01fa266
Commit
d01fa266
authored
6 years ago
by
Jones
Browse files
Options
Downloads
Patches
Plain Diff
Tweaks
parent
387c0774
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2854
Population Extension
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/uncategorized/arcmgmt.tw
+4
-4
4 additions, 4 deletions
src/uncategorized/arcmgmt.tw
with
4 additions
and
4 deletions
src/uncategorized/arcmgmt.tw
+
4
−
4
View file @
d01fa266
...
@@ -317,7 +317,7 @@ More elite citizens require their own slaves and will cause the population of sl
...
@@ -317,7 +317,7 @@ More elite citizens require their own slaves and will cause the population of sl
<<if $arcologies[0].FSHedonisticDecadence != "unset">>
<<if $arcologies[0].FSHedonisticDecadence != "unset">>
<<set _FSScore += $arcologies[0].FSHedonisticDecadence>>
<<set _FSScore += $arcologies[0].FSHedonisticDecadence>>
<</if>>
<</if>>
<<set _FSScore = _FSScore / $FSCreditCount>>
<<set _FSScore =
Math.clamp(
_FSScore / $FSCreditCount
, 0, 500)
>>
<<if $secExp == 1>>
<<if $secExp == 1>>
<<if $docks > 0>>
<<if $docks > 0>>
<<set _transportHub = 0.7 + $docks / 10 + $airport / 10>>
<<set _transportHub = 0.7 + $docks / 10 + $airport / 10>>
...
@@ -329,10 +329,10 @@ More elite citizens require their own slaves and will cause the population of sl
...
@@ -329,10 +329,10 @@ More elite citizens require their own slaves and will cause the population of sl
<<else>>
<<else>>
<<set _transportHub = 1>>
<<set _transportHub = 1>>
<</if>>
<</if>>
<<set $visitors = Math.trunc((($prosperity + _FSScore
* 3
) * _transportHub) / (100 / $localEcon))>>
<<set $visitors = Math.trunc((($
arcologies[0].
prosperity + _FSScore) * _transportHub) / (100 / $localEcon))>>
<br>@@.green;<<print $visitors>> Traders and tourists@@ visited your arcology this week.
<br>@@.green;<<print $visitors>> Traders and tourists@@ visited your arcology this week.
/*Demand for simple labor*/
/*Demand for simple labor*/
<<set _LSCD = ($LCDemand + ($prosperity * 5) + (($middleClass + $visitors * 0.75) * 2) + (($upperClass + $visitors * 0.25) * 4.5) + ($topClass * 20)>>
<<set _LSCD = ($LCDemand + ($
arcologies[0].
prosperity * 5) + (($middleClass + $visitors * 0.75) * 2) + (($upperClass + $visitors * 0.25) * 4.5) + ($topClass * 20)>>
/*Demand for owning slaves*/
/*Demand for owning slaves*/
<<set _SCD = ($upperClass * $slaveDemandU) + ($topClass * $slaveDemandT)>>
<<set _SCD = ($upperClass * $slaveDemandU) + ($topClass * $slaveDemandT)>>
/*More slaves than there is work*/
/*More slaves than there is work*/
...
@@ -370,7 +370,7 @@ More elite citizens require their own slaves and will cause the population of sl
...
@@ -370,7 +370,7 @@ More elite citizens require their own slaves and will cause the population of sl
<<set $ACitizens -= _enslaved>>
<<set $ACitizens -= _enslaved>>
<<set $ASlaves += _enslaved>>
<<set $ASlaves += _enslaved>>
/*Work left for lower class citizens*/
/*Work left for lower class citizens*/
<<set _LCD = ($LCDemand + ($prosperity * 5) + ($middleClass * 2) + ($upperClass * 4.5) + ($topClass * 20) - Math.trunc(($ASlaves + $helots) * $slaveProductivity)) * $rentEffectL>>
<<set _LCD = ($LCDemand + ($
arcologies[0].
prosperity * 5) + ($middleClass * 2) + ($upperClass * 4.5) + ($topClass * 20) - Math.trunc(($ASlaves + $helots) * $slaveProductivity)) * $rentEffectL>>
/*Changing population depending on work available*/
/*Changing population depending on work available*/
<<if $ACitizens < _LCD>>
<<if $ACitizens < _LCD>>
<<set _ACImmigration = Math.trunc((_LCD - $ACitizens) * 0.3) + 1>>
<<set _ACImmigration = Math.trunc((_LCD - $ACitizens) * 0.3) + 1>>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment