Opened 10 years ago

Last modified 8 years ago

#2732 closed enhancement

[Patch] Extend the Looter component to transfer any carried resources and garrisoned entities (aka Inventory transfer). — at Initial Version

Reported by: Radagast Owned by: Radagast
Priority: Should Have Milestone: Alpha 20
Component: UI & Simulation Keywords: patch
Cc: Patch:

Description

Both the loot defined in the simulation template and traded goods if the to be looted entity is a Trader, are already transfered.

This patch adds the following other inventory related transfers:

  • All carried resources are transfered to the looting entity. e.g. if the dead entity did carry some food, the food will be yours.

To achieve this, 2 distinct algorithms are given: 1) Directly add the whole carried resources' amount to the looting unit's player's resources. 2) Transfer all the carried resources' amount that the looting unit can carry.

  • Garrisoned entities are first being ejected, then the Ownership is transfered from the previous owner (enemy or ally thereof) to the looting unit's player, finally the unit is garrisoned inside the looting unit.

Change History (1)

Note: See TracTickets for help on using tickets.