Rewrite the way HUD IDs are handled

This commit is contained in:
Wuzzy
2014-07-17 17:06:06 +02:00
parent 54b18385c8
commit dcc930c499
2 changed files with 54 additions and 29 deletions

View File

@ -83,8 +83,6 @@ Internally, Player Effects also uses these fields:
* `start_time`: The operating system time (from `os.time()`) of when the effect has been started.
* `time_left`: The number of seconds left before the effect runs out. This number is only set when the effect starts or the effect is unfrozen because i.e. a player re-joins. You cant use this field to blindly get the remaining time of the effect.
* `hudids`: A table of HUD IDs which belong to this effect. The fields are: `icon_id` for the HUD ID of the icon and `text_id` for the HUD ID of the description text.
* `hudpos`: The Y offset factor of the effect text and the icon.
You should normally not need to care about these internally used fields.