Add Action_Success_Actor/Target_Kill_Pct effects

What would you like to see in Freeciv? Do you have a good idea what should be improved or how?
Post Reply
danau
Posts: 15
Joined: Wed Apr 25, 2018 6:13 pm

Add Action_Success_Actor/Target_Kill_Pct effects

Post by danau »

Feature request to add the following actions (similar to the existing Action_Success_Actor_Move_Cost and Action_Success_Target_Move_Cost effects);

Code: Select all

Action_Success_Actor_Kill_Pct
    The chance (in percent) that a unit dies when it successfully performs an
    action. Evaluated and done after the action is successfully completed.

Action_Success_Target_Kill_Pct
    The chance (in percent) that a unit dies when someone successfully performs
    an action on it. Evaluated and done after the action is successfully
    completed. Only supported for actions that targets an individual unit.
    (See doc/README.actions)
The Action_Success_Actor_Kill_Pct effect effectively allows any action to be placed as a suicide action for certain units or under certain conditions. This for example allows a "Cluster Missile" unit to attack using Bombard (Cluster Missile Attack) while still allowing the missile to be used-up in the attack.
This effect can also be used as a risk; for example to give "investigate city" a 10% chance of the investigating unit to die after the investigation is done.

The Action_Success_Target_Kill_Pct effect could for example also be used on the "Heal" action, allowing heal to have a 10 percent chance of killing the target that was to be healed.
---
Danau (Peter van der Meer)
Post Reply