You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/scr_draw_planet_features/scr_draw_planet_features.gml
+21-9Lines changed: 21 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -181,8 +181,8 @@ function FeatureSelected(Feature, system, planet) constructor{
181
181
generic = true;
182
182
var _planet = planet_data.planet;
183
183
var _star = obj_star_select.target;
184
-
var current_owner = _star.p_owner[_planet];
185
-
var player_disposition = _star.dispo[_planet];
184
+
var p_data = newPlanetData(_planet, _star);
185
+
var _recruit_world = p_data.get_features(P_features.Recruiting_World)[0];
186
186
var _system_point_use = obj_controller.specialist_point_handler.point_breakdown.systems;
187
187
var _spare_apoth_points = 0;
188
188
if (struct_exists(_system_point_use, _star.name)) {
@@ -191,18 +191,30 @@ function FeatureSelected(Feature, system, planet) constructor{
191
191
}
192
192
title = "Marine Recruitment";
193
193
body = $"There are {_spare_apoth_points} apothecary rescource points available for recruit screening,\n\n";
194
-
var _recruit_find_chance = find_recruit_success_chance(_spare_apoth_points, _star, _planet);
194
+
var _recruit_find_chance = find_recruit_success_chance(_spare_apoth_points, _star, _planet, 1);
195
195
196
196
body += $"There is a {_recruit_find_chance * 100}% of producing a successful recruit this month on the basis of the available apothecary time to screen candidates and the chances of the aspirants passing their trials to an acceptable standard,\n\n";
197
197
198
-
if (obj_controller.faction_status[current_owner] == "War" || obj_controller.faction_status[current_owner] == "Antagonism") && (player_disposition <= 50) { // TODO LOW RECRUITING_DIALOG // Make this more dynamic and maybe make a event for this.
199
-
body += "Since our relations with the populations' faction are... strained, we are having to do our recruiting operation covertly, some of our brothers may resort to more extreme methods of recruitment,\n\n"
body += "The population has grown accustomed to us and their Governor has given us the clear to openly recruit,\n\n"
198
+
if (obj_controller.faction_status[p_data.current_owner] == "War" || obj_controller.faction_status[p_data.current_owner] == "Antagonism") && (p_data.player_disposition <= 50) { // TODO LOW RECRUITING_DIALOG // Make this more dynamic.
199
+
if (_recruit_world.recruit_type == 0) {
200
+
body += "Since our relations with the populations' faction are... strained, we are having to do our recruiting operation covertly,\n\n"
201
+
} else {
202
+
body += "Since our relations with the populations' faction are... strained, we are having to do our recruiting operation covertly,"
203
+
body += " our brothers are authorized to use more extreme methods of recruitment,\n\n"
body += "The population has grown accustomed to us and their Governor has given us the clear to openly recruit,\n\n"
208
+
} else {
209
+
body += "The population has grown accustomed to us and their Governor has given us the clear to openly recruit,"
210
+
body += " however our brothers are still authorized to use more extreme methods of recruitment regardless,\n\n"
211
+
}
212
+
} elseif (_recruit_world.recruit_type == 1){
213
+
body += "We've authorized our brothers to use more extreme methods of recruitment, should we really allow this Milord?\n\n"
202
214
}
203
215
204
-
if (player_disposition < 100) {
205
-
body += "To increase recruit success chance more apothecaries will be required on the planet surface, we could also deploy garrisons to make the population more friendly to our chapter";
216
+
if (p_data.player_disposition < 100) {
217
+
body += "To increase recruit success chance more apothecaries will be required on the planet surface, we could also deploy garrisons to make the population more friendly to our chapter.";
206
218
} else {
207
219
body += "To increase recruit success chance more apothecaries will be required on the planet surface.";
0 commit comments