Project

General

Profile

Feature #210 ยป 0024-Fake-Generalize-Fortify-action.patch

Marko Lindqvist, 01/31/2024 02:28 AM

View differences:

common/actions.c
unit_action_new(ACTION_FORTIFY, ACTRES_FORTIFY,
TRUE, FALSE,
MAK_STAYS, 0, 0, FALSE);
actions[ACTION_FORTIFY2] =
unit_action_new(ACTION_FORTIFY2, ACTRES_FORTIFY,
TRUE, FALSE,
MAK_STAYS, 0, 0, FALSE);
actions[ACTION_ROAD] =
unit_action_new(ACTION_ROAD, ACTRES_ROAD,
TRUE, FALSE,
......
return "ui_name_clean";
case ACTION_FORTIFY:
return "ui_name_fortify";
case ACTION_FORTIFY2:
return "ui_name_fortify_2";
case ACTION_ROAD:
return "ui_name_build_road";
case ACTION_ROAD2:
......
/* TRANS: Clean (100% chance of success). */
return N_("%sClean%s");
case ACTION_FORTIFY:
case ACTION_FORTIFY2:
/* TRANS: _Fortify (100% chance of success). */
return N_("%sFortify%s");
case ACTION_ROAD:
......
case ACTION_PILLAGE:
case ACTION_CLEAN:
case ACTION_FORTIFY:
case ACTION_FORTIFY2:
case ACTION_ROAD:
case ACTION_ROAD2:
case ACTION_CONVERT:
......
case ACTION_PILLAGE:
case ACTION_CLEAN:
case ACTION_FORTIFY:
case ACTION_FORTIFY2:
case ACTION_ROAD:
case ACTION_ROAD2:
case ACTION_CONVERT:
......
case ACTION_PLANT2:
case ACTION_CLEAN:
case ACTION_FORTIFY:
case ACTION_FORTIFY2:
case ACTION_ROAD:
case ACTION_ROAD2:
case ACTION_CONVERT:
......
case ACTION_PILLAGE:
case ACTION_CLEAN:
case ACTION_FORTIFY:
case ACTION_FORTIFY2:
case ACTION_ROAD:
case ACTION_ROAD2:
case ACTION_CONVERT:
......
case ACTION_PILLAGE:
case ACTION_CLEAN:
case ACTION_FORTIFY:
case ACTION_FORTIFY2:
case ACTION_ROAD:
case ACTION_ROAD2:
case ACTION_CONVERT:
......
case ACTION_PILLAGE:
case ACTION_CLEAN:
case ACTION_FORTIFY:
case ACTION_FORTIFY2:
case ACTION_ROAD:
case ACTION_ROAD2:
case ACTION_CONVERT:
doc/README.actions
* UI name can be set using ui_name_fortify
* the actor unit can't already be fortified (!)
"Fortify 2" - Fortify at tile
* UI name can be set using ui_name_fortify_2
* See "Fortify" for everything else.
"Convert Unit" - Convert the unit to another unit type.
* UI name can be set using ui_name_convert_unit
* actor unit must have a type to convert to (convert_to).
gen_headers/enums/actions_enums.def
ACTION_CLEAN "Clean"
ACTION_COLLECT_RANSOM "Collect Ransom"
ACTION_FORTIFY "Fortify"
ACTION_FORTIFY2 "Fortify 2"
ACTION_CULTIVATE "Cultivate"
ACTION_CULTIVATE2 "Cultivate 2"
ACTION_PLANT "Plant"
    (1-1/1)