Project

General

Profile

Bug #343 ยป 0043-Fix-Pillage-Fake-Generalization-on-server-code.patch

Marko Lindqvist, 03/23/2024 02:55 AM

View differences:

server/unithand.c
/* Casus Belli for when the activity successfully begins. */
/* TODO: is it more logical to change Casus_Belli_Complete to
* Casus_Belli_Successful_Beginning and trigger it here? */
action_consequence_success(action_by_number(ACTION_PILLAGE),
action_consequence_success(action_by_number(trigger_action),
unit_owner(punit), unit_type_get(punit),
tile_owner(unit_tile(punit)),
unit_tile(punit),
server/unittools.c
/* TODO: is it more logical to put Casus_Belli_Success here, change
* Casus_Belli_Complete to Casus_Belli_Successful_Beginning and
* trigger it when an activity successfully has began? */
action_consequence_complete(action_by_number(ACTION_PILLAGE),
action_consequence_complete(action_by_number(punit->action),
unit_owner(punit),
act_utype,
tile_owner(unit_tile(punit)),
    (1-1/1)