Skip to content

Commit a6bb3ca

Browse files
feat: If population equals zero then reset all influence (Adeptus-Dominus#468)
1 parent 395dcc2 commit a6bb3ca

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

scripts/scr_PlanetData/scr_PlanetData.gml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ function PlanetData(planet, system) constructor{
8181
requests_help = system.p_halp[planet];
8282

8383
// current planet heresy
84+
if (population == 0) {
85+
system.p_heresy[planet] = 0;
86+
system.p_heresy_secret[planet] = 0;
87+
for (var i = 0; i < array_length(system.p_influence[planet]); ++i) {
88+
system.p_influence[planet][i] = 0;
89+
}
90+
}
91+
8492
corruption = system.p_heresy[planet];
8593

8694
is_heretic = system.p_hurssy[planet];
@@ -706,4 +714,4 @@ function PlanetData(planet, system) constructor{
706714
}*/
707715
}
708716
}
709-
}
717+
}

0 commit comments

Comments
 (0)