1
0
Fork 0
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:
Evil Eye 2025-10-06 19:21:29 +02:00
parent 189eff7a49
commit c6c515f770

View file

@ -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 = {