Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Discord server
Recent changes
Random page
Community
Discord
Steam
Search
Search
English
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Module:HeroData/release
Module
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Languages
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
local p = {} local heroes_data = mw.loadJsonData('Data:HeroData.json') -- function for if the hero is released, or in herolabs -- logic may change in the future as Valve adds more flags function p.get_hero_release_status(hero_key) local hero_data = heroes_data[hero_key] if (hero_data == nil) then return "hero_key " .. hero_key .. " is not a hero" end local in_herolabs = hero_data['InHeroLabs'] and hero_data['IsSelectable'] if in_herolabs == nil then in_herolabs = false end if in_herolabs then return "HeroLabs" elseif not hero_data['IsDisabled'] and not hero_data['InDevelopment'] and hero_data['IsSelectable'] then return "Released" end return nil end function p.demo(frame) local hero_key = frame.args[1] return p.get_hero_release_status(hero_key) end return p
Summary:
Please note that all contributions to 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)
Preview page with this template
Templates used on this page:
Module:HeroData/release
(
edit
)
Module:HeroData/release/doc
(
edit
)
Data:HeroData.json
(
edit
)