mirror of
https://github.com/OpenMW/openmw.git
synced 2025-11-29 12:34:30 +00:00
Make ATTACK_SOURCE_TYPES read only
This commit is contained in:
parent
189eff7a49
commit
c6c515f770
1 changed files with 3 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
|||
local I = require('openmw.interfaces')
|
||||
local util = require('openmw.util')
|
||||
local auxUtil = require('openmw_aux.util')
|
||||
|
||||
local onHitHandlers = {}
|
||||
|
|
@ -130,12 +131,12 @@ return {
|
|||
|
||||
--- @{#AttackSourceType}
|
||||
-- @field [parent=#Combat] #AttackSourceType ATTACK_SOURCE_TYPES Available attack source types
|
||||
ATTACK_SOURCE_TYPES = {
|
||||
ATTACK_SOURCE_TYPES = util.makeStrictReadOnly({
|
||||
Magic = 'magic',
|
||||
Melee = 'melee',
|
||||
Ranged = 'ranged',
|
||||
Unspecified = 'unspecified',
|
||||
},
|
||||
}),
|
||||
},
|
||||
|
||||
eventHandlers = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue