View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001843 | Spring engine | Lua | public | 2010-02-17 02:59 | 2012-06-27 00:09 |
| Reporter | TheFatController | Assigned To | Kloot | ||
| Priority | normal | Severity | tweak | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Product Version | 0.81.1.3 | ||||
| Fixed in Version | 89.0 | ||||
| Summary | 0001843: Unsynced GetUnitHealth buildProgress returns nothing on enemy unit with "hideDamage=1" | ||||
| Description | It'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 Information | An alternate solution would be a new IsUnitUnderConstruction() call that returned true or false for any unit in LOS or all units in synced. | ||||
| Tags | No tags attached. | ||||
| Checked infolog.txt for Errors | |||||
|
|
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 |
| 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 |