View Issue Details

IDProjectCategoryView StatusLast Update
0001843Spring engineLuapublic2012-06-27 00:09
ReporterTheFatController Assigned ToKloot  
PrioritynormalSeveritytweakReproducibilityalways
Status resolvedResolutionfixed 
Product Version0.81.1.3 
Fixed in Version89.0 
Summary0001843: Unsynced GetUnitHealth buildProgress returns nothing on enemy unit with "hideDamage=1"
DescriptionIt's obvious to a player whether an enemy unit is under construction or not when it's in LOS however when the unit has hideDamage set to 1 there's no way for a widget to find out whether it's under construction or complete.

I propose making buildProgress in GetUnitHealth return either:
1 (for finished)
0 (for under construction but don't know how much)

When hideDamage=1 is set.

This would allow a widget to find out whether an enemy unit has finished building or not without revealing its progress.
Additional InformationAn alternate solution would be a new IsUnitUnderConstruction() call that returned true or false for any unit in LOS or all units in synced.
TagsNo tags attached.
Checked infolog.txt for Errors

Activities

TheFatController

2010-02-18 23:09

reporter   ~0004671

I worked around this in BA with a custom gadget that uses

function gadget:UnitCreated(unitID, unitDefID, unitTeam)
  Spring.SetUnitRulesParam(unitID, "under_construction", 1)
end

function gadget:UnitFinished(unitID, unitDefID, unitTeam)
  Spring.SetUnitRulesParam(unitID, "under_construction", 0)
end

So consider it optional and feel free to solve

Issue History

Date Modified Username Field Change
2010-02-17 02:59 TheFatController New Issue
2010-02-18 23:09 TheFatController Note Added: 0004671
2012-06-27 00:09 Kloot Status new => resolved
2012-06-27 00:09 Kloot Fixed in Version => 89.0
2012-06-27 00:09 Kloot Resolution open => fixed
2012-06-27 00:09 Kloot Assigned To => Kloot