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 )
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 , 8 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
comment:2 by , 8 years ago
comment:3 by , 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 , 8 years ago
Attachment: | poc-techtree.png added |
---|
by , 8 years ago
Attachment: | poc-ingame.png added |
---|
by , 8 years ago
Attachment: | poc-multiple.png added |
---|
follow-up: 5 comment:4 by , 8 years ago
Attached proof of concept how the new field is displayed (with dummy values):
- in structure tree each unit and building has the base loot value (hardcoded in template) in the tooltip
- 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
comment:5 by , 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 , 8 years ago
Description: | modified (diff) |
---|
showdetailedtooltips
is enabled)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).