Jump to content

Elin:Code Analysis/Housing: Difference between revisions

no edit summary
(Created page with "<syntaxhighlight lang="c#" line="1" start="0"> if (EClass.rnd(5) == 0 && this.policies.IsActive(2810, -1)) { int num8 = 3 + this.lv + this.Evalue(2206) / 5 + this.Evalue(3702) * 2 + this.Evalue(2202) / 2; num8 = num8 * (100 + this.Evalue(3702) * 20 + this.Evalue(2206)) / 100; num8 = num8 * (100 + (int)Mathf.Sqrt((float)this.Evalue(2811)) * 3) / 100; if (EClass._map.CountGuest() < num8) {...")
 
No edit summary
Line 1: Line 1:
<syntaxhighlight lang="c#" line="1" start="0">
This is (TENATIVELY) the code block that determines the amount of visitors that visit a settlement and the type of visitors that visit.<syntaxhighlight lang="c#" line="1" start="0">


if (EClass.rnd(5) == 0 && this.policies.IsActive(2810, -1))
if (EClass.rnd(5) == 0 && this.policies.IsActive(2810, -1))
152

edits