Project

General

Profile

Feature #230 ยป 0032-Fake-Generalize-Clean.patch

Marko Lindqvist, 02/04/2024 08:07 PM

View differences:

common/actions.c
unit_action_new(ACTION_CLEAN, ACTRES_CLEAN,
TRUE, FALSE,
MAK_STAYS, 0, 0, FALSE);
actions[ACTION_CLEAN2] =
unit_action_new(ACTION_CLEAN2, ACTRES_CLEAN,
TRUE, FALSE,
MAK_STAYS, 0, 0, FALSE);
actions[ACTION_FORTIFY] =
unit_action_new(ACTION_FORTIFY, ACTRES_FORTIFY,
TRUE, FALSE,
......
return "ui_name_pillage";
case ACTION_CLEAN:
return "ui_name_clean";
case ACTION_CLEAN2:
return "ui_name_clean_2";
case ACTION_FORTIFY:
return "ui_name_fortify";
case ACTION_FORTIFY2:
......
/* TRANS: Pilla_ge (100% chance of success). */
return N_("Pilla%sge%s");
case ACTION_CLEAN:
case ACTION_CLEAN2:
/* TRANS: Clean (100% chance of success). */
return N_("%sClean%s");
case ACTION_FORTIFY:
......
case ACTION_PLANT2:
case ACTION_PILLAGE:
case ACTION_CLEAN:
case ACTION_CLEAN2:
case ACTION_FORTIFY:
case ACTION_FORTIFY2:
case ACTION_ROAD:
......
case ACTION_PLANT2:
case ACTION_PILLAGE:
case ACTION_CLEAN:
case ACTION_CLEAN2:
case ACTION_FORTIFY:
case ACTION_FORTIFY2:
case ACTION_ROAD:
......
case ACTION_PLANT:
case ACTION_PLANT2:
case ACTION_CLEAN:
case ACTION_CLEAN2:
case ACTION_FORTIFY:
case ACTION_FORTIFY2:
case ACTION_ROAD:
......
case ACTION_PLANT2:
case ACTION_PILLAGE:
case ACTION_CLEAN:
case ACTION_CLEAN2:
case ACTION_FORTIFY:
case ACTION_FORTIFY2:
case ACTION_ROAD:
......
case ACTION_PLANT2:
case ACTION_PILLAGE:
case ACTION_CLEAN:
case ACTION_CLEAN2:
case ACTION_FORTIFY:
case ACTION_FORTIFY2:
case ACTION_ROAD:
......
case ACTION_PLANT2:
case ACTION_PILLAGE:
case ACTION_CLEAN:
case ACTION_CLEAN2:
case ACTION_FORTIFY:
case ACTION_FORTIFY2:
case ACTION_ROAD:
doc/README.actions
* the target extra must be the rule chosen extra if the civstyle section's
pillage_select is FALSE
"Clean" - clean extra from the target tile.
"Clean" - Clean extra from the target tile.
* UI name can be set using ui_name_clean
* actor must be on the same tile as the target.
* the actor unit has the "Workers" unit type flag (!)
......
* the target extra can't have the AutoOnCityCenter extra flag if the
target tile has a city and the city's owner can rebuild it
"Clean 2" - Clean extra from the target tile.
* UI name can be set using ui_name_clean_2
* See "Clean" for everything else.
"Build Road" - Build road at the target tile.
* UI name can be set using ui_name_build_road
* actor must be on the same tile as the target.
gen_headers/enums/actions_enums.def
ACTION_TELEPORT_ENTER "Teleport Unit Enter"
ACTION_TELEPORT_ENTER_CONQUER "Teleport Unit Enter Conquer"
ACTION_CLEAN "Clean"
ACTION_CLEAN2 "Clean 2"
ACTION_COLLECT_RANSOM "Collect Ransom"
ACTION_FORTIFY "Fortify"
ACTION_FORTIFY2 "Fortify 2"
    (1-1/1)