1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428
|
/* Definitions of the unit type properties in Xconq GDL.
Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Stanley T. Shebs.
Xconq is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version. See the file COPYING. */
DEF_UPROP_L("acp-damage-effect", u_acp_damage_effect,
"effect of reduced hp on acp per turn",
acpdamageeffect)
DEF_UPROP_I("acp-max", u_acp_max,
"maximum acp that can be accumulated from turn to turn",
acpmax, -1, -1, PROPHI)
DEF_UPROP_I("acp-min", u_acp_min,
"amount by which unit acp may go negative during a turn",
acpmin, PROPLO, 0, PROPHI)
DEF_UPROP_I("acp-per-turn", u_acp,
"base number of actions that this type can do in one turn",
acp, 0, 0, PROPHI)
DEF_UPROP_I("acp-per-turn-max", u_acp_turn_max,
"maximum acp after modification by damage etc effects",
acpturnmax, -1, -1, PROPHI)
DEF_UPROP_I("acp-per-turn-min", u_acp_turn_min,
"minimum acp after modification by damage etc effects",
acpturnmin, 0, 0, PROPHI)
DEF_UPROP_L("acp-season-effect", u_acp_season_effect,
"effect of season on acp",
acpseasoneffect)
DEF_UPROP_L("acp-temperature-effect", u_acp_temp_effect,
"effect of temperature on acp",
acptempeffect)
DEF_UPROP_I("acp-to-change-side", u_acp_to_change_side,
"action points used up by side change",
acptochangeside, 0, 0, PROPHI)
DEF_UPROP_I("acp-to-detonate", u_acp_to_detonate,
"action points used up by detonating",
acptodetonate, 0, 0, PROPHI)
DEF_UPROP_I("acp-to-disband", u_acp_to_disband,
"action points used up by disbanding",
acptodisband, 0, 0, PROPHI)
DEF_UPROP_I("acp-to-fire", u_acp_to_fire,
"action points used up by firing",
acptofire, 0, 0, PROPHI)
DEF_UPROP_I("acp-to-move", u_acp_to_move,
"action points used up by one move",
acptomove, 0, 1, PROPHI)
DEF_UPROP_I("acp-to-transfer-part", u_acp_to_transfer_part,
"action points used to transfer unit parts",
acptotransferpart, 0, 0, PROPHI)
DEF_UPROP_I("action-priority", u_action_priority,
"relative order in which the unit acts",
actionpriority, 0, 0, PROPHI)
DEF_UPROP_I("already-seen", u_already_seen,
"chance the unit is seen initially if its cell is seen",
alreadyseen, 0, 0, 100)
DEF_UPROP_I("already-seen-independent", u_already_seen_indep,
"chance the independent unit is seen initially if its cell is seen",
alreadyseenindep, 0, 0, 100)
DEF_UPROP_I("assign-number", u_assign_number,
"true if unit should be given a number",
assignnumber, 0, 1, 1)
DEF_UPROP_I("available", u_available,
"true if this type may be used",
available, 0, 1, 1)
DEF_UPROP_I("can-be-self", u_can_be_self,
"true if this type can be a self-unit",
canbeself, 0, 0, 1)
DEF_UPROP_I("capacity", u_capacity,
"space for occupants shared by all types of occupants",
capacity, 0, 0, PROPHI)
/* Note that this function cannot be named u_char, because certain
&^$%&^%! OSes, like AIX, typedef it to be an unsigned char. */
DEF_UPROP_S("char", u_uchar,
"single character to use in displays",
uchar, "")
DEF_UPROP_S("color", u_color,
"color scheme of this unit type",
color, "")
DEF_UPROP_L("consumption-temperature-effect", u_consume_temp_effect,
"effect of temperature on base consumption",
consumetempeffect)
DEF_UPROP_I("country-units-max", u_country_units_max,
"maximum number of units in the entire country",
countryunitsmax, -1, -1, PROPHI)
DEF_UPROP_I("cp", u_cp,
"number of construction points to complete a new unit",
cp, 1, 1, PROPHI)
DEF_UPROP_I("cp-per-self-build", u_cp_per_self_build,
"number of construction points per self completion",
cpperselfbuild, 0, 0, PROPHI)
DEF_UPROP_I("cp-to-self-build", u_cp_to_self_build,
"number of construction points to enable self completion",
cptoselfbuild, 0, 0, PROPHI)
DEF_UPROP_I("cxp-max", u_cxp_max,
"upper bound on combat experience",
cxpmax, 0, 0, PROPHI)
DEF_UPROP_I("cxp-on-capture-effect", u_cxp_on_capture,
"change in combat experience of a captured unit",
cxponcapture, 0, 100, PROPHI)
DEF_UPROP_L("description-format", u_desc_format,
"formatting info for textual descriptions of a unit",
descformat)
DEF_UPROP_I("detonate-on-death", u_detonate_on_death,
"chance that a unit will detonate when about to die",
detonateondepth, 0, 0, 100)
DEF_UPROP_I("direct-control", u_direct_control,
"true if the type can be controlled directly by the player",
directcontrol, 0, 1, 1)
DEF_UPROP_L("extensions", u_extensions,
"extension properties",
extensions)
DEF_UPROP_I("free-acp", u_free_acp,
"extra action points available if an action needs them",
freeacp, 0, 0, PROPHI)
DEF_UPROP_I("free-mp", u_free_mp,
"extra mp available if a move action needs them",
freemp, 0, 0, PROPHI)
DEF_UPROP_S("generic-name", u_generic_name,
"a non-unique name for the type",
genericname, "")
DEF_UPROP_I("has-opinions", u_has_opinions,
"true if the type has opinions about other sides",
hasopinions, 0, 0, 1)
DEF_UPROP_S("help", u_help,
"brief description of this type",
help, "")
DEF_UPROP_I("hit-falloff-range", u_hit_falloff_range,
"",
hitfalloffrange, 0, PROPHI, PROPHI)
DEF_UPROP_I("hp-max", u_hp_max,
"maximum number of hit points",
hpmax, 1, 1, PROPHI)
DEF_UPROP_I("hp-per-disband", u_hp_per_disband,
"hit points lost by one disband action",
hpperdisband, 0, 0, PROPHI)
DEF_UPROP_I("hp-per-detonation", u_hp_per_detonation,
"hit points lost by one detonate action",
hpperdetonation, 0, 0, PROPHI)
DEF_UPROP_I("hp-recovery", u_hp_recovery,
"number of hit points restored automatically each turn",
hprecovery, 0, 0, PROPHI)
DEF_UPROP_S("image-name", u_image_name,
"ways to specify what a unit looks like",
imagename, "")
DEF_UPROP_I("independent-growth-chance", u_indep_growth,
"chance that an independent unit will be created during country growth",
indepgrowth, 0, 0, 10000)
DEF_UPROP_I("independent-near-start", u_indep_near_start,
"number of independent units within the min radius of the country",
indepnearstart, 0, 0, PROPHI)
DEF_UPROP_I("independent-takeover-chance", u_indep_takeover,
"chance that an existing independent unit will be given to a growing country",
indeptakeover, 0, 0, 10000)
DEF_UPROP_I("initial-seen-radius", u_seen_radius,
"radius around initial units that is seen initially",
seenradius, 0, 1, PROPHI)
DEF_UPROP_S("long-name", u_long_name,
"completely expanded-out name for the type",
longname, "")
DEF_UPROP_I("move-range", u_move_range,
"distance that a unit can jump in one move",
moverange, 0, 1, PROPHI)
DEF_UPROP_I("mp-to-leave-world", u_mp_to_leave_world,
"movement points needed to leave the world entirely",
mptoleaveworld, -1, -1, PROPHI)
DEF_UPROP_S("namer", u_namer,
"namer or naming method for this type",
namer, "")
DEF_UPROP_S("name", u_type_name,
"basic name of the type",
name, "")
DEF_UPROP_S("name-internal", u_internal_name,
"",
iname, "")
DEF_UPROP_L("notes", u_notes,
"player notes about unit type",
notes)
DEF_UPROP_I("occupant-total-max", u_occ_total_max,
"maximum number of all types of occupants added together",
occtotalmax, -1, -1, PROPHI)
DEF_UPROP_I("point-value", u_point_value,
"an arbitrary number that assigns a value to a unit type",
pointvalue, 0, 1, PROPHI)
DEF_UPROP_I("parts-max", u_parts,
"maximum number of subparts in one unit",
partsmax, 1, 1, PROPHI)
DEF_UPROP_L("possible-sides", u_possible_sides,
"side(s) (class(es)) to which this type can belong",
possiblesides)
DEF_UPROP_I("range", u_range,
"maximum possible distance to fire",
range, 0, 1, PROPHI)
DEF_UPROP_I("range-min", u_range_min,
"minimum possible distance to fire",
rangemin, 0, 0, PROPHI)
DEF_UPROP_I("revolt-chance", u_revolt,
"chance that a unit will revolt",
revolt, 0, 0, 10000)
DEF_UPROP_I("road-to-edge-chance", u_road_to_edge_chance,
"chance for a road running from unit to edge of the world",
roadtoedgechance, 0, 0, 100)
DEF_UPROP_I("see-always", u_see_always,
"true if others' view of unit is always up-to-date",
seealways, 0, 0, 1)
DEF_UPROP_I("see-occupants", u_see_occupants,
"true if occupants seen if unit is seen",
seeoccs, 0, 0, 1)
DEF_UPROP_I("self-changeable", u_self_changeable,
"true if self-unit may be changed by player at will",
selfchangeable, 0, 0, 1)
DEF_UPROP_I("self-resurrects", u_self_resurrects,
"true if self-unit switches automatically if current one dies",
selfresurrects, 0, 0, 1)
DEF_UPROP_S("short-name", u_short_name,
"abbreviated but still informative name string",
shortname, "")
DEF_UPROP_I("speed", u_speed,
"normal acp/move ratio",
speed, 0, 100, PROPHI)
DEF_UPROP_L("speed-damage-effect", u_speed_damage_effect,
"effect of damage on speed",
speeddamageeffect)
DEF_UPROP_I("speed-max", u_speed_max,
"maximum possible acp/move ratio",
speedmax, 0, PROPHI, PROPHI)
DEF_UPROP_I("speed-min", u_speed_min,
"minimum possible acp/move ratio",
speedmin, 0, 0, PROPHI)
DEF_UPROP_L("speed-wind-effect", u_speed_wind_effect,
"effect of wind (force and angle) on speed",
speedwindeffect)
DEF_UPROP_I("spot-action", u_spot_action,
"true if unit might be spotted if it acts",
spotaction, 0, 0, 1)
DEF_UPROP_I("spur-chance", u_spur_chance,
"chance for a road spur",
spurchance, 0, 0, 100)
DEF_UPROP_I("spur-range", u_spur_range,
"maximum length for a road spur",
spurrange, 0, 0, PROPHI)
DEF_UPROP_I("spy-chance", u_spy_chance,
"chance that a unit's spying will succeed",
spychance, 0, 0, 10000)
DEF_UPROP_I("spy-range", u_spy_range,
"distance around which a unit's spying will yield information",
spyrange, -1, 0, PROPHI)
DEF_UPROP_I("stack-order", u_stack_order,
"relative priority of unit within stack (0 = highest)",
stackorder, 0, 0, PROPHI)
DEF_UPROP_I("start-with", u_start_with,
"number of units within the initial area",
startwith, 0, 0, PROPHI)
DEF_UPROP_I("tech-from-ownership", u_tech_from_ownership,
"tech guaranteed by owning a unit of this type",
techfromownership, 0, 0, PROPHI)
DEF_UPROP_I("tech-leakage", u_tech_leakage,
"",
techleakage, 0, 0, PROPHI)
DEF_UPROP_I("tech-max", u_tech_max,
"maximum possible tech for this type",
techmax, 0, 0, PROPHI)
DEF_UPROP_I("tech-per-turn-max", u_tech_per_turn_max,
"limit on tech gains from research and acquisition",
techperturnmax, 0, PROPHI, PROPHI)
DEF_UPROP_I("tech-to-build", u_tech_to_build,
"minimum tech required to be able to create and complete this type",
techtobuild, 0, 0, PROPHI)
DEF_UPROP_I("tech-to-own", u_tech_to_own,
"minimum tech required to be able to have this type on one's side",
techtoown, 0, 0, PROPHI)
DEF_UPROP_I("tech-to-see", u_tech_to_see,
"minimum tech required to be able to see this type",
techtosee, 0, 0, PROPHI)
DEF_UPROP_I("tech-to-use", u_tech_to_use,
"minimum tech required to be able to use this type",
techtouse, 0, 0, PROPHI)
DEF_UPROP_L("temperature-attrition", u_temp_attrition,
"effect of temperature on hp",
tempattrition)
DEF_UPROP_I("type-in-game-max", u_type_in_game_max,
"maximum number (for all sides summed) units of this type allowed",
typeingamemax, 0, -1, PROPHI)
DEF_UPROP_I("type-per-side-max", u_type_per_side_max,
"maximum number of this type for each side",
typepersidemax, 0, -1, PROPHI)
DEF_UPROP_I("unit-growth-chance", u_unit_growth,
"chance that a new unit will be created during country growth",
unitgrowth, 0, 0, 10000)
DEF_UPROP_I("unit-takeover-chance", u_unit_takeover,
"chance that an existing unit will be given to the side during country growth",
unittakeover, 0, 0, 10000)
DEF_UPROP_I("vision-range", u_vision_range,
"range out to which a unit sees everything",
visionrange, -1, 1, PROPHI)
DEF_UPROP_I("vision-bend", u_vision_bend,
"",
visionbend, 0, 100, 100)
DEF_UPROP_I("wrecked-type", u_wrecked_type,
"unit type to turn into if unit loses all of its HP",
wreckedtype, 0, NONUTYPE, MAXUTYPES)
/* Used by AIs only. */
DEF_UPROP_I("zz-b", u_is_base,
"",
is_base, 0, 0, 0)
DEF_UPROP_I("zz-bb", u_is_base_builder,
"",
is_base_builder, 0, 0, 0)
DEF_UPROP_I("zz-transport", u_is_transport,
"",
is_transport, 0, 0, 0)
DEF_UPROP_I("zz-c", u_is_carrier,
"",
is_carrier, 0, 0, 0)
DEF_UPROP_I("zz-cm", u_can_make,
"",
can_make, 0, 0, 0)
DEF_UPROP_I("zz-cc", u_can_capture,
"",
can_capture, 0, 0, 0)
DEF_UPROP_I("zz-bw", u_bw,
"",
bw, 0, 0, 0)
|