mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 13:53:45 +03:00
36 lines
1.1 KiB
Lua
36 lines
1.1 KiB
Lua
|
|
--[[
|
||
|
|
| This file was obtained through the combined efforts
|
||
|
|
| of Madbluntz & Plymouth Antiquarian Society.
|
||
|
|
|
|
||
|
|
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||
|
|
| Maloy, DrPepper10 @ RIP, Atle!
|
||
|
|
|
|
||
|
|
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||
|
|
--]]
|
||
|
|
|
||
|
|
ix.factionBudget = ix.factionBudget or {}
|
||
|
|
ix.factionBudget.list = ix.factionBudget.list or {}
|
||
|
|
|
||
|
|
function ix.factionBudget:RegisterFB(id, factionName)
|
||
|
|
if !isstring(id) then return end
|
||
|
|
id = string.utf8upper(id)
|
||
|
|
|
||
|
|
ix.factionBudget.list[id] = {
|
||
|
|
id = id,
|
||
|
|
name = factionName,
|
||
|
|
credits = 0
|
||
|
|
}
|
||
|
|
end
|
||
|
|
|
||
|
|
function ix.factionBudget:GetFB(id)
|
||
|
|
return ix.factionBudget.list[id]
|
||
|
|
end
|
||
|
|
|
||
|
|
-- never use "INF" in any case. it breaks every faction with any ID that is "INF".
|
||
|
|
|
||
|
|
function ix.factionBudget:InitializeFactionBudgets()
|
||
|
|
ix.factionBudget:RegisterFB("CMRU", "Union Civile de Médecine et de Recherche")
|
||
|
|
ix.factionBudget:RegisterFB("UTC", "Union des Travailleurs Civils")
|
||
|
|
ix.factionBudget:RegisterFB("PC", "Protection Civile")
|
||
|
|
ix.factionBudget:RegisterFB("HAA", "Haute Autorité Administrative")
|
||
|
|
end
|