Opened 8 years ago

Last modified 8 years ago

#4193 closed defect

Loot tooltips — at Version 6

Reported by: elexis Owned by: Mate-86
Priority: Must Have Milestone: Alpha 21
Component: UI & Simulation Keywords: patch
Cc: fatherbushido Patch:

Description (last modified by elexis)

Looting is a relatively unknown feature. In particular it is completely intransparent how many resources are earned when killing enemies or destroying buildings.

For example destroying a temple yields 500 metal! Killing a trade cart or a gathering unit yields the resources the unit carried.

The sum of these resources should be shown where all the other tooltips are shown, for every unit.

Change History (9)

comment:1 by Mate-86, 8 years ago

Owner: set to Mate-86
Status: newassigned

comment:2 by elexis, 8 years ago

  • The loot tooltip should show the sum of all loot, which consists of:
    • The loot as hardcoded in the template
    • The resources that the killed units had carried
    • The resources that the killed merchants traded
    • The experience points gained when killing those enemies
  • Similar to r18154 it should show the sum of all loot when selecting multiple units
  • The tooltip should be shown in the tech tree (since this is the go-to place when trying to find any information on unit stats)
  • The tooltip should be shown in the session (if showdetailedtooltips is enabled)
  • The tooltip shouldn't be shown in the training / construction panel, since that might be confusing (one won't get the loot after building / training)

This way one can select a group of gathering units and see how much resources they are worth. This applies to observermode and players selecting their own units (since one can't select multiple enemy units currently).

comment:3 by fatherbushido, 8 years ago

There is still an annoying thing (not so annoying). You ll not always see the loot you'll get (because some units can have a modified Looter: the loot you get depends of the plunder too).

by Mate-86, 8 years ago

Attachment: poc-techtree.png added

by Mate-86, 8 years ago

Attachment: poc-ingame.png added

by Mate-86, 8 years ago

Attachment: poc-multiple.png added

comment:4 by Mate-86, 8 years ago

Attached proof of concept how the new field is displayed (with dummy values):

  1. in structure tree each unit and building has the base loot value (hardcoded in template) in the tooltip
  2. during the game each unit and building has an enhanced value (template + carried + traded + xp)

Questions: a; Shall I add the loot to the template or there is another ticket for that? => clarified, I need to check the template xml and not template.js b; Is the lootable XP a fix value and part of the template? Does it depends on the XP of the killed unit? => clarified: defined in loot.js and looter.js c; In which tooltip is the loot for multiple units displayed? In the attached 3rd poc the tooltip currently shows the name of the unit. => clarified: the sum of all units

Last edited 8 years ago by Mate-86 (previous) (diff)

in reply to:  4 comment:5 by fatherbushido, 8 years ago

Replying to Mate-86:

Questions: a; Shall I add the loot to the template or there is another ticket for that? => clarified, I need to check the template xml and not template.js

You'll need to add that to template.js and perhaps to GuiInterface.js (in the extended state part), take care to add it in the same way for the two files. (And to add it to GuiInterface tests.)

b; Is the lootable XP a fix value and part of the template? Does it depends on the XP of the killed unit? => clarified: defined in loot.js and looter.js

Defined in Loot. (Looter is for the entity wich will take the loot.)

comment:6 by elexis, 8 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.