Home
Random
Log in
Settings
About the Deadlock Wiki
Search
Editing
Module:HeroData/release
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:
Data:HeroData.json
(
edit
)
Module:HeroData/release
(
edit
)
Module:HeroData/release/doc
(
edit
)