@@ -80,7 +80,6 @@ if (obj_ncombat.defeat == 0) {
8080 _column_id.veh_hp [_vehicle_id] = roll_dice (1 , 10 , " high" );
8181 _column_id.veh_dead [_vehicle_id] = false ;
8282 vehicles_saved_count++;
83- vehicle_deaths--;
8483
8584 if (!struct_exists (obj_ncombat.vehicles_saved_counts , _vehicle_type)) {
8685 obj_ncombat.vehicles_saved_counts [$ _vehicle_type] = 1 ;
@@ -96,7 +95,6 @@ if (obj_ncombat.defeat == 0) {
9695 _column_id.veh_dead [_vehicle_id] = false ;
9796 vehicle_recovery_score -= _candidate.priority ;
9897 vehicles_saved_count++;
99- vehicle_deaths--;
10098
10199 if (!struct_exists (obj_ncombat.vehicles_saved_counts , _vehicle_type)) {
102100 obj_ncombat.vehicles_saved_counts [$ _vehicle_type] = 1 ;
@@ -114,8 +112,9 @@ with (obj_pnunit) {
114112}
115113
116114var _total_deaths = final_marine_deaths + final_command_deaths;
117- if (_total_deaths > 0 || injured > 0 || units_saved_count > 0 ) {
118- newline = $" {_total_deaths + injured + units_saved_count}x units were critically injured." ;
115+ var _total_injured = _total_deaths + injured + units_saved_count;
116+ if (_total_injured > 0 ) {
117+ newline = $" {string_plural_count(" unit" , _total_injured)} {smart_verb(" was" , _total_injured)} critically injured." ;
119118 newline_color = " red" ;
120119 scr_newtext ();
121120
@@ -130,7 +129,7 @@ if (_total_deaths > 0 || injured > 0 || units_saved_count > 0) {
130129 _units_saved_string += smart_delimeter_sign (_unit_roles, i, false );
131130 }
132131
133- newline = $" {units_saved_count}x were saved by the {string_plural(roles[eROLE.Apothecary], apothecaries_alive)}. ({_units_saved_string})" ;
132+ newline = $" {units_saved_count}x {smart_verb( " was " , units_saved_count)} saved by the {string_plural(roles[eROLE.Apothecary], apothecaries_alive)}. ({_units_saved_string})" ;
134133 scr_newtext ();
135134 }
136135
@@ -156,7 +155,7 @@ if (_total_deaths > 0 || injured > 0 || units_saved_count > 0) {
156155 }
157156
158157 newline = " " ;
159- scr_newtext ();
158+ scr_newtext ();
160159}
161160
162161
@@ -166,31 +165,27 @@ if (ground_mission){
166165 }
167166};
168167
169- seed_saved = (min(seed_max, apothecaries_alive * 40 ));
170- if (obj_ini.doomed) then seed_saved=0 ;
171- if (seed_saved>0 ) then obj_controller.gene_seed+=seed_saved;
168+ if (seed_lost > 0 ) {
169+ if (obj_ini.doomed ) {
170+ newline = $" Chapter mutation prevents retrieving gene-seed. {seed_lost} gene-seed lost." ;
171+ scr_newtext ();
172+ } else if (!apothecaries_alive) {
173+ newline = $" No able-bodied {roles[eROLE.Apothecary]}. {seed_lost} gene-seed lost." ;
174+ scr_newtext ();
175+ } else {
176+ seed_saved = min (seed_harvestable, apothecaries_alive * 40 );
177+ newline = $" {seed_saved} gene-seed was recovered; {seed_lost - seed_harvestable} was lost due damage; {seed_harvestable - seed_saved} was left to rot;" ;
178+ scr_newtext ();
179+ }
172180
173- if (obj_ini.doomed && !apothecaries_alive){
174- part3=$" Chapter Mutation prevents retrieving Gene-Seed. {seed_max} Gene-Seed lost." ;
175- newline=part3;
176- scr_newtext ();
177- newline=" " ;
178- scr_newtext ();
179- }else if (!apothecaries_alive && !obj_ini.doomed){
180- part3=$" No able-bodied {roles[eROLE.Apothecary]}. {seed_max} Gene-Seed lost." ;
181- newline=part3;scr_newtext ();
182- newline=" " ;scr_newtext ();
183- }else if (apothecaries_alive>0 && final_marine_deaths+final_command_deaths>0 && !obj_ini.doomed){
184- part3=$" Gene-Seed Recovered: {seed_saved}(" ;
185- part3 += seed_saved ? $" {round((seed_saved/seed_max)*100)}" : " 0" ;
186- part3 += " %)" ;
187- newline=part3;
188- scr_newtext ();
189- newline=" " ;
181+ if (seed_saved > 0 ) {
182+ obj_controller.gene_seed += seed_saved;
183+ }
184+
185+ newline = " " ;
190186 scr_newtext ();
191187}
192188
193-
194189if (red_thirst>2 ){
195190 var voodoo=" " ;
196191
@@ -207,9 +202,9 @@ newline = " ";
207202scr_newtext ();
208203
209204
210-
211- if (vehicles_saved_count > 0 || vehicle_deaths > 0 ) {
212- newline = $" {string_plural_count(" Vehicle " , vehicle_deaths + vehicles_saved_count)} were critically damaged during battle." ;
205+ var _total_damaged_count = vehicle_deaths + vehicles_saved_count;
206+ if (_total_damaged_count > 0 ) {
207+ newline = $" {string_plural_count(" vehicle " , _total_damaged_count)} {smart_verb( " was " , _total_damaged_count)} critically damaged during battle." ;
213208 newline_color=" red" ;
214209 scr_newtext ();
215210
@@ -224,24 +219,24 @@ if (vehicles_saved_count > 0 || vehicle_deaths > 0) {
224219 _vehicles_saved_string += smart_delimeter_sign (_vehicle_types, i, false );
225220 }
226221
227- newline = $" {string_plural(roles[eROLE.Techmarine], techmarines_alive)} were able to restore {vehicles_saved_count}. ({_vehicles_saved_string})" ;
222+ newline = $" {string_plural(roles[eROLE.Techmarine], techmarines_alive)} {smart_verb( " was " , techmarines_alive)} able to restore {vehicles_saved_count}. ({_vehicles_saved_string})" ;
228223 scr_newtext ();
229224 }
230225
231226 if (vehicle_deaths > 0 ) {
232227 var _vehicles_lost_string = " " ;
233- var _vehicle_types = struct_get_names (vehicles_lost_counts);
228+ var _vehicle_types = struct_get_names (vehicles_lost_counts);
234229
235- for (var i = 0 ; i < array_length (_vehicle_types); i++) {
236- var _vehicle_type = _vehicle_types[i];
237- var _lost_count = vehicles_lost_counts[$ _vehicle_type];
230+ for (var i = 0 ; i < array_length (_vehicle_types); i++) {
231+ var _vehicle_type = _vehicle_types[i];
232+ var _lost_count = vehicles_lost_counts[$ _vehicle_type];
238233 _vehicles_lost_string += $" {string_plural_count(_vehicle_type, _lost_count)}" ;
239234 _vehicles_lost_string += smart_delimeter_sign (_vehicle_types, i, false );
240235 }
241236
242- newline += $" {vehicle_deaths} were lost forever. ({_vehicles_lost_string})" ;
243- newline_color=" red" ;
244- scr_newtext ();
237+ newline += $" {vehicle_deaths} {smart_verb( " was " , vehicle_deaths)} lost forever. ({_vehicles_lost_string})" ;
238+ newline_color=" red" ;
239+ scr_newtext ();
245240 }
246241
247242 newline = " " ;
@@ -915,7 +910,7 @@ if (endline=0){
915910if (defeat=1 ){
916911 player_forces=0 ;
917912 if (ground_mission){
918- obj_ground_mission.recoverable_gene_seed = seed_max ;
913+ obj_ground_mission.recoverable_gene_seed = seed_lost ;
919914 }
920915
921916}
0 commit comments