Feature #70 » 0005-Implement-activity_default_action-properly.patch
common/fc_types.h | ||
---|---|---|
/* Changing this enum will break savegame and network compatibility. */
|
||
/* When changing this, also update the list of valid requirement "Activity"
|
||
* values in doc/README.effects and the list of invalid requirement
|
||
* "Activity" values in activity_is_valid_in_requirement(). */
|
||
* values in doc/README.effects, the list of invalid requirement
|
||
* "Activity" values in activity_is_valid_in_requirement(),
|
||
* and default actions list in activity_default_action() */
|
||
#define SPECENUM_NAME unit_activity
|
||
/* Not performing any activity right now */
|
||
#define SPECENUM_VALUE0 ACTIVITY_IDLE
|
common/unit.c | ||
---|---|---|
**************************************************************************/
|
||
enum gen_action activity_default_action(enum unit_activity act)
|
||
{
|
||
return ACTION_NONE;
|
||
enum gen_action act_act[ACTIVITY_LAST] = {
|
||
ACTION_NONE, // ACTIVITY_IDLE
|
||
ACTION_CULTIVATE, // ACTIVITY_CULTIVATE
|
||
ACTION_MINE, // ACTIVITY_MINE
|
||
ACTION_IRRIGATE, // ACTIVITY_IRRIGATE
|
||
ACTION_FORTIFY, // ACTIVITY_FORTIFIED
|
||
ACTION_NONE, // ACTIVITY_SENTRY
|
||
ACTION_PILLAGE, // ACTIVITY_PILLAGE
|
||
ACTION_NONE, // ACTIVITY_GOTO
|
||
ACTION_NONE, // ACTIVITY_EXPLORE
|
||
ACTION_TRANSFORM_TERRAIN, // ACTIVITY_TRANSFORM
|
||
ACTION_FORTIFY, // ACTIVITY_FORTIFYING
|
||
ACTION_CLEAN, // ACTIVITY_CLEAN
|
||
ACTION_BASE, // ACTIVITY_BASE
|
||
ACTION_ROAD, // ACTIVITY_GEN_ROAD
|
||
ACTION_CONVERT, // ACTIVITY_CONVERT
|
||
ACTION_PLANT // ACTIVITY_PLANT
|
||
};
|
||
return act_act[act];
|
||
}
|
- « Previous
- 1
- 2
- Next »