63 lines
2.0 KiB
Lua
63 lines
2.0 KiB
Lua
local StaticData = {}
|
|
|
|
StaticData.MOD_NAME = "TOC"
|
|
|
|
|
|
StaticData.PARTS_STRINGS = {
|
|
Hand = "Hand",
|
|
ForeArm = "ForeArm",
|
|
UpperArm = "UpperArm"
|
|
}
|
|
|
|
StaticData.SIDES_STRINGS = {
|
|
R = "R",
|
|
L = "L"
|
|
}
|
|
-- Assembled BodyParts string
|
|
---@enum
|
|
StaticData.LIMBS_STRINGS = {}
|
|
StaticData.BODYPARTSTYPES_ENUM = {}
|
|
StaticData.LIMBS_DEPENDENCIES = {}
|
|
StaticData.LIMBS_CICATRIZATION_TIME = {}
|
|
StaticData.LIMBS_BASE_DAMAGE = {}
|
|
|
|
|
|
-- Link a trait to a specific body part
|
|
StaticData.TRAITS_BP = {
|
|
AmputeeHand = "Hand_L",
|
|
AmputeeLowerArm = "ForeArm_L",
|
|
AmputeeUpeerArm = "UpperArm_L"
|
|
}
|
|
|
|
for side, _ in pairs(StaticData.SIDES_STRINGS) do
|
|
for part, _ in pairs(StaticData.PARTS_STRINGS) do
|
|
local assembledName = part .. "_" .. side
|
|
|
|
-- Assembled strings
|
|
table.insert(StaticData.LIMBS_STRINGS, assembledName) -- We need a table like this to cycle through it easily
|
|
StaticData.BODYPARTSTYPES_ENUM[assembledName] = BodyPartType[assembledName]
|
|
|
|
print(assembledName)
|
|
-- Dependencies and cicatrization time
|
|
if part == StaticData.PARTS_STRINGS.Hand then
|
|
StaticData.LIMBS_BASE_DAMAGE[assembledName] = 60
|
|
StaticData.LIMBS_CICATRIZATION_TIME[assembledName] = 1700
|
|
StaticData.LIMBS_DEPENDENCIES[assembledName] = {}
|
|
elseif part == StaticData.PARTS_STRINGS.ForeArm then
|
|
StaticData.LIMBS_BASE_DAMAGE[assembledName] = 80
|
|
StaticData.LIMBS_CICATRIZATION_TIME[assembledName] = 1800
|
|
StaticData.LIMBS_DEPENDENCIES[assembledName] = { StaticData.PARTS_STRINGS.Hand .. "_" .. side, }
|
|
elseif part == StaticData.PARTS_STRINGS.UpperArm then
|
|
StaticData.LIMBS_BASE_DAMAGE[assembledName] = 100
|
|
StaticData.LIMBS_CICATRIZATION_TIME[assembledName] = 2000
|
|
StaticData.LIMBS_DEPENDENCIES[assembledName] = { StaticData.PARTS_STRINGS.Hand .. "_" .. side,
|
|
StaticData.PARTS_STRINGS.ForeArm .. "_" .. side }
|
|
end
|
|
end
|
|
end
|
|
|
|
|
|
|
|
|
|
return StaticData
|