47 fprintf(
doc,
"<table><tr bgcolor=#9bc3d1><th>%s</th>",
_(
"Terrain"));
48 fprintf(
doc,
"<th>F/P/T</th><th>%s</th>",
_(
"Resources"));
49 fprintf(
doc,
"<th>%s<br/>%s</th>",
_(
"Move cost"),
_(
"Defense bonus"));
50 fprintf(
doc,
"<th>%s<br/>%s<br/>%s<br/>%s<br/>%s<br/>%s<br/>(%s)</th>",
51 _(
"Irrigation"),
_(
"Cultivate"),
_(
"Mining"),
_(
"Plant"),
_(
"Transform"),
53 _(
"% of Road bonus"),
_(
"turns"));
78 tag_info->image_begin, pterrain->graphic_str,
87 for (r = pterrain->resources; *r; r++) {
89 "<td align=\"right\">%d/%d/%d</td></tr>\n",
92 (*r)->data.resource->output[
O_FOOD],
93 (*r)->data.resource->output[
O_SHIELD],
94 (*r)->data.resource->output[
O_TRADE]);
98 fprintf(
doc,
"<td align=\"center\">%d<br/>+%d%%</td>\n",
99 pterrain->movement_cost, pterrain->defense_bonus);
101 fprintf(
doc,
"<td><table width=\"100%%\">\n");
104 fprintf(
doc,
"<tr><td>+%d F</td>", pterrain->irrigation_food_incr);
105 if (pterrain->irrigation_time == 0) {
106 fprintf(
doc,
"<td align=\"right\">(-)</td></tr>\n");
108 fprintf(
doc,
"<td align=\"right\">(%d)</td></tr>\n",
109 pterrain->irrigation_time);
112 fprintf(
doc,
"<tr><td>%s</td></tr>\n",
_(
"impossible"));
114 if (pterrain->cultivate_result !=
NULL
119 if (pterrain->cultivate_time == 0) {
120 fprintf(
doc,
"<td align=\"right\">(-)</td></tr>\n");
122 fprintf(
doc,
"<td align=\"right\">(%d)</td></tr>\n",
123 pterrain->cultivate_time);
126 fprintf(
doc,
"<tr><td>%s</td></tr>\n",
_(
"impossible"));
129 fprintf(
doc,
"<tr><td>+%d P</td>", pterrain->mining_shield_incr);
130 if (pterrain->mining_time == 0) {
131 fprintf(
doc,
"<td align=\"right\">(-)</td></tr>\n");
133 fprintf(
doc,
"<td align=\"right\">(%d)</td></tr>\n",
134 pterrain->mining_time);
137 fprintf(
doc,
"<tr><td>%s</td></tr>\n",
_(
"impossible"));
139 if (pterrain->plant_result !=
NULL
144 if (pterrain->plant_time == 0) {
145 fprintf(
doc,
"<td align=\"right\">(-)</td></tr>\n");
147 fprintf(
doc,
"<td align=\"right\">(%d)</td></tr>\n",
148 pterrain->plant_time);
151 fprintf(
doc,
"<tr><td>%s</td></tr>\n",
_(
"impossible"));
154 if (pterrain->transform_result
159 if (pterrain->transform_time == 0) {
160 fprintf(
doc,
"<td align=\"right\">(-)</td></tr>\n");
162 fprintf(
doc,
"<td align=\"right\">(%d)</td></tr>\n",
163 pterrain->transform_time);
166 fprintf(
doc,
"<tr><td>-</td><td align=\"right\">(-)</td></tr>\n");
168 fprintf(
doc,
"<tr><td>%d / %d / %d</td></tr>\n</table></td>\n",
169 pterrain->road_output_incr_pct[
O_FOOD],
170 pterrain->road_output_incr_pct[
O_SHIELD],
171 pterrain->road_output_incr_pct[
O_TRADE]);