forked from FAForever/fa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
enhancementcommon.lua
57 lines (49 loc) · 1.58 KB
/
enhancementcommon.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
--****************************************************************************
--** File : /lua/enhancementcommon.lua
--** Author(s): Ted Snook
--**
--** Summary : Common enhancement functions for sim / user sides
--**
--** Copyright © 2005 Gas Powered Games, Inc. All rights reserved.
--****************************************************************************
---@alias EnhancementBuffType
---| ACUEnhancementBuffType
---| SCUEnhancementBuffType
---@alias ACUEnhancementBuffType
---| AeonACUEnhancementBuffType
---| CybranACUEnhancementBuffType
---| UEFACUEnhancementBuffType
---| SeraphimACUEnhancementBuffType
---@alias SCUEnhancementBuffType
---| AeonSCUEnhancementBuffType
---| CybranSCUEnhancementBuffType
--| UEFSCUEnhancementBuffType # there are none
---| SeraphimSCUEnhancementBuffType
-- These buffs are only created when needed
---@alias EnhancementBuffName
---| ACUEnhancementBuffName
---| SCUEnhancementBuffName
---@alias ACUEnhancementBuffName
---| AeonACUEnhancementBuffName
---| CybranACUEnhancementBuffName
---| UEFACUEnhancementBuffName
---| SeraphimACUEnhancementBuffName
---@alias SCUEnhancementBuffName
---| AeonSCUEnhancementBuffName
---| CybranSCUEnhancementBuffName
--| UEFSCUEnhancementBuffName # there are none
---| SeraphimSCUEnhancementBuffName
local enhancementTable = {}
local restrictedList = {}
function SetEnhancementTable(entry)
enhancementTable = entry
end
function RestrictList(table)
restrictedList = table
end
function GetRestricted()
return restrictedList
end
function GetEnhancements(entityID)
return enhancementTable[tostring(entityID)]
end