User:Sylphoid: Difference between revisions
Jump to navigation
Jump to search
→TODO: update next item |
→TODO: update next item |
||
Line 8: | Line 8: | ||
# stat review: rapid rounds, add Fire Rate formula, truncating weird, skip | # stat review: rapid rounds, add Fire Rate formula, truncating weird, skip | ||
## restorative shot has passives, where does healing go? skip | ## restorative shot has passives, where does healing go? skip | ||
## | ## Berserker, add Stack table, skip | ||
## Current: Melee Charge, heavy melee distance | |||
# revert [[Updates]] | # revert [[Updates]] | ||
# [[Module:ItemTables]] need all stats entered, bulleted list below | # [[Module:ItemTables]] need all stats entered, bulleted list below |
Revision as of 05:49, 14 October 2024
https://github.com/deadlock-wiki/deadbot
TODO
- stat review: rapid rounds, add Fire Rate formula, truncating weird, skip
- restorative shot has passives, where does healing go? skip
- Berserker, add Stack table, skip
- Current: Melee Charge, heavy melee distance
- revert Updates
- Module:ItemTables need all stats entered, bulleted list below
- 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 priceDONE 10/8/2024filter out disabled items (low prio, waiting for Sur or Saag to implement fix through github)DONE 10/2/2024append unit suffix to endDONE 10/3/2024
Date | Major Contributions/Milestones |
---|---|
09/12/2024 | First Contribution |
Date | Minor Contributions/Milestones |
---|---|
09/12/2024 - 09/19/2024 | Categorizing, cleanup, and standardization on template naming, {{documentation}} , and categories.
|
09/20/2024 | 100th edit. (Undoing my own edit) |
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