Sylphoid

Joined 12 September 2024
Warning: You are not logged in. Once you make an edit, a temporary account will be created for you. Learn more. Log in or create an account to continue receiving notifications after this account expires, and to access other features.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
[[Module:Sandbox/Sylphoid]]  
[[User:Sylphoid/Sandbox]]


https://github.com/deadlock-wiki/deadbot
[[Module:Sandbox/Sylphoid]] TODO:
----
{{Special:PrefixIndex/User:Sylphoid/}}
 
== TODO ==
# stat review: rapid rounds, add Fire Rate formula, truncating weird, skip
## Soul Shredder Bullets, spirit amp, where to add this? skip
## Sharshooter weapon fall-off range, and weapon zoom, hmmm skip
## Current: Frenzy passive, fire rate
# revert [[Updates]]
# [[Module:ItemTables]] need all stats entered, bulleted list below
# replace [[:File:Map_of_Box_and_Golden_Statue_Spawns.webp]] with proper map
* include searches for all increases, percent and linear (IN PROGRESS)
* include searches for all increases, percent and linear (IN PROGRESS)
<s>*Fire Rate%, Ammo%, Ammo, </s>
*Fire Rate%,  
** Ammo%,  
*Bullet Velocity%,  
*Bullet Velocity%,  
*Ammo,
*Bullet Resist%,  
*Bullet Resist%,  
*Weapon Damage%,  
*Weapon Damage%,  
Line 29: Line 20:
*Sprint Speed (m/s),  
*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%,  
*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%,  
* append unit suffix to end
* setup default sort, where it sorts by category, then by price
* filter out disabled items (low prio, waiting for Sur or Saag to implement fix through github)
* split up p.main into functions for readability
* split up p.main into functions for readability
* <s>setup default sort, where it sorts by category, then by price</s> DONE 10/8/2024
* <s>filter out disabled items (low prio, waiting for Sur or Saag to implement fix through github)</s> DONE 10/2/2024
* <s>append unit suffix to end</s> DONE 10/3/2024


{| class="wikitable sortable sticky-header" style="width:calc(100% - 313px); max-width:1350px; text-align:center;"
{| class="wikitable sortable sticky-header" style="width:calc(100% - 313px); max-width:1350px; text-align:center;"
Line 40: Line 31:
| data-sort-value="%s" | 09/12/2024
| data-sort-value="%s" | 09/12/2024
| [[Special:Diff/4676|First Contribution]]
| [[Special:Diff/4676|First Contribution]]
|-
| data-sort-value="%s" | 09/20/2024 - 11/3/2024
| [[Special:Diff/6254|Creating item stat tables.]] Created {{t|Item stat table}} and [[Module:ItemTables]].
|-
| data-sort-value="%s" | 11/1/2024
| Revamp and finally fix horrible {{t|Infobox item}}.
|}
|}


Line 58: Line 43:
| [[Special:Diff/6419|100th edit.]] (Undoing my own edit)
| [[Special:Diff/6419|100th edit.]] (Undoing my own edit)
|}
|}
== Number formatting for thousands separator ==
In general Lua, text formatting can be done with:
<syntaxhighlight lang="lua" line>
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
</syntaxhighlight>
On Mediawiki installations, formatting should instead be done by:
<syntaxhighlight lang="lua" line>
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
</syntaxhighlight>
Please note that all contributions to The Deadlock Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see Deadlock:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)

Pages included on this page: