Skip to content

Commit 655ebdd

Browse files
feat: Make Purge interaction with Cults more obvious (Adeptus-Dominus#467)
1 parent a6bb3ca commit 655ebdd

File tree

2 files changed

+19
-17
lines changed

2 files changed

+19
-17
lines changed

scripts/scr_bomb_world/scr_bomb_world.gml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,13 @@ function scr_bomb_world(star_system, planet_number, bombard_target_faction, bomb
270270
obj_controller.disposition[3]-=7;
271271
}
272272
}
273-
if (planet_feature_bool(star_system.p_feature[planet_number], P_features.Gene_Stealer_Cult)){
274-
delete_features(star_system.p_feature[planet_number], P_features.Gene_Stealer_Cult);
275-
adjust_influence(eFACTION.Tyranids, -100, planet_number,star_system);
276-
}
277-
pip.text+= " The xenos taint of the tyranids infecting the population has been completely eradicated with the planets cleansing";
273+
if (planet_feature_bool(star_system.p_feature[planet_number], P_features.Gene_Stealer_Cult)) {
274+
delete_features(star_system.p_feature[planet_number], P_features.Gene_Stealer_Cult);
275+
adjust_influence(eFACTION.Tyranids, -100, planet_number, star_system);
276+
pip.text += " The xeno taint of the tyranids that was infesting the population has been completely eradicated with the planets cleansing";
277+
} else {
278+
pip.text += " Any xeno taint that was infesting the population has been completely eradicated with the planets cleansing";
279+
}
278280
}
279281
if (bombard_target_faction=8) and (obj_controller.faction_status[eFACTION.Tau]!="War"){
280282
obj_controller.audiences+=1;

scripts/scr_purge_world/scr_purge_world.gml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -160,18 +160,18 @@ function scr_purge_world(star, planet, action_type, action_score) {
160160
if (pop_before>0) and (pop_after=0) then heres_after=0;
161161

162162
var nid_influence = star.p_influence[planet][eFACTION.Tyranids];
163-
if (planet_feature_bool(star.p_feature[planet], P_features.Gene_Stealer_Cult)){
164-
var cult = return_planet_features(star.p_feature[planet], P_features.Gene_Stealer_Cult)[0];
165-
if (cult.hiding){
166-
167-
}
168-
} else {
169-
if (nid_influence>25){
170-
txt1 += "Scores of mutant offspring from a genestealer infestation are burnt, while the situation is grave the mutants appear to lack the organisation of a true cult";
171-
adjust_influence(eFACTION.Tyranids, -10, planet, star);
172-
}
173-
}
174-
if (star.p_large[planet]=0) then pop_after=round(pop_after);
163+
if (planet_feature_bool(star.p_feature[planet], P_features.Gene_Stealer_Cult)) {
164+
var cult = return_planet_features(star.p_feature[planet], P_features.Gene_Stealer_Cult)[0];
165+
if (cult.hiding) {}
166+
} else {
167+
if (nid_influence > 25) {
168+
txt1 += " Scores of mutant offspring from a genestealer infestation are burnt, while we have damaged their influence over this world, the mutants appear to lack the organisation of a true cult";
169+
adjust_influence(eFACTION.Tyranids, -10, planet, star);
170+
} else if (nid_influence > 0) {
171+
txt1 += " There are signs of a genestealer infestation but the cultists are too unorganized to do any real damage to their influence on this world";
172+
}
173+
}
174+
if (star.p_large[planet]=0) then pop_after=round(pop_after);
175175
if (pop_after<=0) and (pop_before>0) then heres_after=0;
176176
if (star.p_large[planet]=0) then txt1+="##The planet had a population of "+string(scr_display_number(floor(pop_before)))+" and "+string(scr_display_number(floor(kill)))+" were purged over the duration of the cleansing.##Heresy has fallen down to "+string(max(0,heres_after))+"%.";
177177
if (star.p_large[planet]=1) then txt1+="##The planet had a population of "+string(pop_before)+" billion and "+string(scr_display_number(action_score*12000))+" were purged over the duration of the cleansing.##Heresy has fallen down to "+string(max(0,heres_after))+"%.";

0 commit comments

Comments
 (0)