View Issue Details

IDProjectCategoryView StatusLast Update
0005963Spring engineLuapublic2018-04-18 22:32
ReporterDoo Assigned ToKloot  
PrioritynormalSeverityfeatureReproducibilityrandom
Status closedResolutionno change required 
Summary0005963: Spring.GetUnitWeaponStates(unitID, weaponNum, "reloadTime") doesn't return the right value
DescriptionWhen using Spring.GetUnitWeaponStates(unitID, weaponNum, "reloadTime") and comparing it to the UnitDefs value (to tell the firerate bonus and show it in a unit stats widget), a wrong value is returned.

Spring.GetUnitWeaponStates(unitID, weaponNum, "reloadTime") seems to return a value that is either == WeaponDefs[wDefID].reload or slightly below it, but not always the current value.
Steps To ReproduceI really can't tell, sometimes it worked, sometimes it didnt.
The best way to reproduce is still to play BA latest test version on spring 104.0.1 - 409 with modoption "mo_unba" enabled and /give 150 armwar

The first warrior is spawned with 0 exp and the latest with 10 exp, so from then you can compare their effective reloadTime (as seen ingame) and the values showed in unitstats (hover unit with cursor and press space)
Additional InformationSpring 104.0.1-409
Balanced Annihilation test-9085-8ddabb1

Not reproduceable on Spring 104.0.1-138.
TagsNo tags attached.
Checked infolog.txt for Errors

Activities

Kloot

2018-04-18 22:32

developer   ~0019034

you want "reloadTimeXP" for the experience-weighted value (as of 061f7a42)

Issue History

Date Modified Username Field Change
2018-04-18 22:10 Doo New Issue
2018-04-18 22:32 Kloot Assigned To => Kloot
2018-04-18 22:32 Kloot Status new => closed
2018-04-18 22:32 Kloot Resolution open => no change required
2018-04-18 22:32 Kloot Note Added: 0019034