Skip to content

Commit 4dbc46b

Browse files
fix: Remove tau influence from corruption cals (Adeptus-Dominus#479)
1 parent 5d119b4 commit 4dbc46b

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

scripts/scr_PlanetData/scr_PlanetData.gml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -575,14 +575,28 @@ function PlanetData(planet, system) constructor{
575575
}
576576

577577
var temp6="???";
578-
var tau_influence = population_influences[eFACTION.Tau];
579578
var target_planet_heresy=corruption;
580-
if (max(target_planet_heresy,tau_influence)<=10) then temp6="None";
581-
if (max(target_planet_heresy,tau_influence)>10) and (max(target_planet_heresy,tau_influence)<=30) then temp6="Little";
582-
if (max(target_planet_heresy,tau_influence)>30) and (max(target_planet_heresy,tau_influence)<=50) then temp6="Major";
583-
if (max(target_planet_heresy,tau_influence)>50) and (max(target_planet_heresy,tau_influence)<=70) then temp6="Heavy";
584-
if (max(target_planet_heresy,tau_influence)>70) and (max(target_planet_heresy,tau_influence)<=96) then temp6="Extreme";
585-
if (target_planet_heresy>=96) or (tau_influence>=96) then temp6="Maximum";
579+
580+
if (target_planet_heresy < 0) {
581+
temp6 = "DEBUG: Heresy below 0!"
582+
} else if (target_planet_heresy <= 10) {
583+
temp6 = "None";
584+
} else if (target_planet_heresy <= 30) {
585+
temp6 = "Little";
586+
} else if (target_planet_heresy <= 50) {
587+
temp6 = "Major";
588+
} else if (target_planet_heresy <= 70) {
589+
temp6 = "Heavy";
590+
} else if (target_planet_heresy <= 96) {
591+
temp6 = "Extreme";
592+
} else if (target_planet_heresy <= 100) {
593+
temp6 = "Maximum";
594+
} else if (target_planet_heresy > 100) {
595+
temp6 = "DEBUG: Heresy above 100!";
596+
} else {
597+
temp6 = "DEBUG: Heresy somehow unknown value!"
598+
}
599+
586600
draw_text(xx+480,yy+300,$"Corruption: {temp6}");
587601

588602

0 commit comments

Comments
 (0)