Globalizes local random functions from HUD into random library and experimentally moves HUD non-drawing functions to hud library.
Random lib:
random.localfixed
random.localbyte
random.localkey
random.localrange
random.localsignedrandom
random.localchance
(just take description from current HUD random functions)
However, I still think this should be in its own MR.
HUD lib:
hud.patchExists
hud.cachePatch
hud.getSpritePatch
hud.getSprite2Patch
hud.getColormap
hud.getStringColormap
hud.width
hud.height
hud.scale
hud.renderer
(Same thing here)
NOTE: regarding hud.scale, v.dupx and v.dupy were somewhat recently merged into pretty much same function, so this alias is more so to make it obvious what it is.
As another experiment. All HUDONLY
guardrails of these functions were removed. While my testing was issue-less, it should warrant some testing. Perhaps some HUD functions should receive freeslot treatment, only if deemed necessary.
Edited by Skydusk