User:Sylphoid: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Sylphoid (talk | contribs)
reformat todo
Sylphoid (talk | contribs)
→‎TODO: update new findings
Line 4: Line 4:


== TODO ==
== TODO ==
# stat review: high velocity mag
# stat review: monster rounds
# revert [[Updates]]
# revert [[Updates]]
# [[Module:ItemTables]] need all stats entered, bulleted list below
# [[Module:ItemTables]] need all stats entered, bulleted list below
# if health nova name rerally change, add undocumented to update history
* include searches for all increases, percent and linear (IN PROGRESS)
* include searches for all increases, percent and linear (IN PROGRESS)
*Fire Rate%,  
*Fire Rate%,  

Revision as of 07:40, 11 October 2024

User:Sylphoid/Sandbox

Module:Sandbox/Sylphoid

TODO

  1. stat review: monster rounds
  2. revert Updates
  3. Module:ItemTables need all stats entered, bulleted list below
  4. if health nova name rerally change, add undocumented to update history
  • include searches for all increases, percent and linear (IN PROGRESS)
  • Fire Rate%,
    • Ammo%,
  • Bullet Velocity%,
  • Ammo,
  • Bullet Resist%,
  • Weapon Damage%,
  • Reload Time%,
  • Bullet Shield Health,
  • Spirit Shield Health,
  • Spirit Power,
  • Weapon Damage vs. NPCs%,
  • Bullet Resist vs. NPCs%,
  • Bonus Health,
  • Slide Distance%,
  • Health Regen,
  • Sprint Speed (m/s),
  • Heavy Melee Distance%,Stamina, Spirit Resist%, Weapon Fall-off Range%, Weapon Zoom%, Bullet Lifesteal%, Spirit Lifesteal%, Move Speed (m/s), Max Health%, Cooldown Reduction%, Bullet Slow Proc%,
  • split up p.main into functions for readability
  • setup default sort, where it sorts by category, then by price DONE 10/8/2024
  • filter out disabled items (low prio, waiting for Sur or Saag to implement fix through github) DONE 10/2/2024
  • append unit suffix to end DONE 10/3/2024

Number formatting for thousands separator

In general Lua, text formatting can be done with:

function Format(amount)
    local formatted = amount
    while true do
        formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2')
        if (k == 0) then
            break
        end
    end
    return formatted
end

On Mediawiki installations, formatting should instead be done by:

local lang = mw.language.getContentLanguage()
local function Format(amount)
    local formatted = amount
    if(type(formatted) ~= "number") then return "<span style=\"color:red;\">Cannot format non-number value.</span>" end
    return lang:formatNum(tonumber(formatted))
end