Project

General

Profile

Feature #817749

A signal after a combat survived by both parts

Added by Alexandro Ignatiev 6 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Server
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Inspired by [[http://forum.freeciv.org/f/viewtopic.php?f=11&t=91131]]: we have unit_lost(unit, loser, "killed") callback after a combat where some unit(s) died but now we have ways for a defender to survive even if tbe attacker lives:
  • bombardment
  • escaping
  • Combat_Rounds runoff
    I suggest to handle the battle's end with a callback like units_survived_in_battle(attacker, defender, attacked_tile), where defender is:
  • bombardment - nil, called once per attack
  • escaping - the escaped unit, called per each one
  • rounds runoff - the unit that defended the tile.
    Just a draft, maybe the interface can be more logical.

Also available in: Atom PDF