Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions lua/wikis/commons/PlayerTeamRoles.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
-- @Liquipedia
-- page=Module:PlayerTeamRoles
--
-- Please see https://github.com/Liquipedia/Lua-Modules to contribute
--

---@type table<string, RoleBaseData>
local playerTeamRoles = {
['captain'] = {category = 'Captains', display = 'Captain', iconFa = 'captain'},
['igl'] = {category = 'In-game leaders', display = 'In-game leader', iconFa = 'captain', abbreviation = 'IGL'},
}

playerTeamRoles['in-game leader'] = playerTeamRoles.igl

return playerTeamRoles
3 changes: 3 additions & 0 deletions lua/wikis/commons/Role/Util.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
-- @Liquipedia
-- page=Module:Role/Util
Expand Down Expand Up @@ -32,6 +32,7 @@
CONTRACT = 'contract',
STAFF = 'staff',
INGAME = 'ingame',
TEAMROLE = 'teamrole',
UNKNOWN = 'unknown',
}

Expand Down Expand Up @@ -73,6 +74,8 @@
return RoleUtil.ROLE_TYPE.CONTRACT
elseif Roles.StaffRoles[key] then
return RoleUtil.ROLE_TYPE.STAFF
elseif Roles.PlayerTeamRoles[key] then
return RoleUtil.ROLE_TYPE.TEAMROLE
elseif Roles.InGameRoles and Roles.InGameRoles[key] then
return RoleUtil.ROLE_TYPE.INGAME
else
Expand Down
4 changes: 3 additions & 1 deletion lua/wikis/commons/Roles.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
-- @Liquipedia
-- page=Module:Roles
Expand All @@ -11,13 +11,15 @@

local ContractRoles = Lua.import('Module:ContractRoles', {loadData = true})
local StaffRoles = Lua.import('Module:StaffRoles', {loadData = true})
local PlayerTeamRoles = Lua.import('Module:PlayerTeamRoles', {loadData = true})
local InGameRoles = Lua.requireIfExists('Module:InGameRoles', {loadData = true})

local Roles = {
ContractRoles = ContractRoles,
StaffRoles = StaffRoles,
InGameRoles = InGameRoles,
All = Table.merge(ContractRoles, StaffRoles, InGameRoles)
PlayerTeamRoles = PlayerTeamRoles,
All = Table.merge(ContractRoles, StaffRoles, InGameRoles, PlayerTeamRoles)
}

return Roles
1 change: 0 additions & 1 deletion lua/wikis/counterstrike/InGameRoles.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
-- @Liquipedia
-- page=Module:InGameRoles
Expand All @@ -8,7 +8,6 @@
---@type table<string, RoleBaseData>
local inGameRoles = {
['awper'] = {category = 'AWPers', display = 'AWPer'},
['igl'] = {category = 'In-game leaders', display = 'In-game leader'},
['lurker'] = {category = 'Lurkers', display = 'Lurker'},
['support'] = {category = 'Support players', display = 'Support'},
['entry'] = {category = 'Entry fraggers', display = 'Entry'},
Expand Down
1 change: 0 additions & 1 deletion lua/wikis/dota2/InGameRoles.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
-- @Liquipedia
-- page=Module:InGameRoles
Expand All @@ -11,7 +11,6 @@
['mid'] = {category = 'Solo middle players', display = 'Solo Middle'},
['offlane'] = {category = 'Offlaners', display = 'Offlaner'},
['support'] = {category = 'Support players', display = 'Support'},
['captain'] = {category = 'Captains', display = 'Captain'},
}

inGameRoles['solo middle'] = inGameRoles.mid
Expand Down
2 changes: 0 additions & 2 deletions lua/wikis/freefire/InGameRoles.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
-- @Liquipedia
-- page=Module:InGameRoles
Expand All @@ -12,8 +12,6 @@
['rifler'] = {category = 'Rifler', display = 'Rifler'},
['sniper'] = {category = 'Snipers', display = 'Snipers'},
['bomber'] = {category = 'Bomber', display = 'Bomber'},
['igl'] = {category = 'In-game leaders', display = 'In-game leaders'},
['captain'] = {category = 'Captain', display = 'Captain'},
}

inGameRoles['granader'] = inGameRoles.bomber
Expand Down
1 change: 0 additions & 1 deletion lua/wikis/osu/InGameRoles.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
-- @Liquipedia
-- page=Module:InGameRoles
Expand All @@ -7,7 +7,6 @@

---@type table<string, RoleBaseData>
local inGameRoles = {
['igl'] = {category = 'In-game leaders', display = 'In-game leader'},
['player'] = {category = 'Players', display = 'Player'},
}

Expand Down
1 change: 0 additions & 1 deletion lua/wikis/pubg/InGameRoles.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
-- @Liquipedia
-- page=Module:InGameRoles
Expand All @@ -9,7 +9,6 @@
local inGameRoles = {
['sniper'] = {category = 'Snipers', display = 'Sniper'},
['attacker'] = {category = 'Attackers', display = 'ATKs'},
['igl'] = {category = 'In-game leaders', display = 'In-game leader'},
['fragger'] = {category = 'Fraggers', display = 'Fragger'},
['scout'] = {category = 'Scouts', display = 'Scout'},
['support'] = {category = 'Supports', display = 'Support'},
Expand Down
1 change: 0 additions & 1 deletion lua/wikis/rainbowsix/InGameRoles.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
-- @Liquipedia
-- page=Module:InGameRoles
Expand All @@ -10,7 +10,6 @@
['entry'] = {category = 'Entry fraggers', display = 'Entry fragger'},
['support'] = {category = 'Support players', display = 'Support'},
['flex'] = {category = 'Flex players', display = 'Flex'},
['igl'] = {category = 'In-game leaders', display = 'In-game leader'},
}

inGameRoles['entryfragger'] = inGameRoles['entry']
Expand Down
1 change: 0 additions & 1 deletion lua/wikis/splatoon/InGameRoles.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
-- @Liquipedia
-- page=Module:InGameRoles
Expand All @@ -7,7 +7,6 @@

---@type table<string, RoleBaseData>
local inGameRoles = {
['igl'] = {category = 'In-game leaders', display = 'In-game Leader'},
['frontline'] = {category = 'Frontline', display = 'Frontline'},
['backline'] = {category = 'Backline', display = 'Backline'},
['support'] = {category = 'Support', display = 'Support'},
Expand Down
15 changes: 0 additions & 15 deletions lua/wikis/valorant/InGameRoles.lua

This file was deleted.

13 changes: 0 additions & 13 deletions lua/wikis/worldoftanks/InGameRoles.lua

This file was deleted.

1 change: 0 additions & 1 deletion lua/wikis/zula/InGameRoles.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

---@type table<string, RoleBaseData>
local inGameRoles = {
['igl'] = {category = 'In-game leaders', display = 'In-game Leader'},
['rifler'] = {category = 'Riflers', display = 'Rifler'},
}

Expand Down
Loading