Project

General

Profile

Actions

Feature #1554

open

Tell user about goods a unit is carrying

Added by Dean Brown 1 day ago. Updated 1 day ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
General
Target version:
-
Start date:
07/02/2025
Due date:
% Done:

0%

Estimated time:

Description

If goods_selection = "Leaving" then commerce units are built carrying goods of some type. Let's display that info to the user, in the pop-up info text and in the "finished building" message.


Files

1554.patch (4.29 KB) 1554.patch Dean Brown, 07/02/2025 08:24 AM
Actions #1

Updated by Dean Brown 1 day ago

Had to fix some un-noticed bugs
- in packhand.c, handle_unit_packet_common(), despite all the warning comments about keeping it in synch, was failing to copy the >carrying
unittools.c, unit_get_goods() needs to check unit_can_do_action(punit, ACTION_TRADE_ROUTE)
- unittools.c, in place_unit(), unit_get_goods() needs to be called before call to send_unit_info()

Changes in text.c and cityturn.c will require translations.

Patch should be good for S3_3 and Main.

Actions

Also available in: Atom PDF