Bump to mod version
This commit is contained in:
@@ -9,8 +9,8 @@ local OverridenMethodsArchive = require("TOC/OverridenMethodsArchive")
|
|||||||
---@class ProsthesisHandler
|
---@class ProsthesisHandler
|
||||||
local ProsthesisHandler = {}
|
local ProsthesisHandler = {}
|
||||||
|
|
||||||
local bodyLocArmProst = StaticData.MOD_BODYLOCS_BASE_IND_STR.TOC_ArmProst
|
local bodylocArmProstBaseline = "TOC_ArmProst"
|
||||||
local bodyLocLegProst = StaticData.MOD_BODYLOCS_BASE_IND_STR.TOC_LegProst
|
--local bodyLocLegProst = "TOC_LegProst"
|
||||||
|
|
||||||
---Check if the following item is a prosthesis or not
|
---Check if the following item is a prosthesis or not
|
||||||
---@param item InventoryItem?
|
---@param item InventoryItem?
|
||||||
@@ -23,7 +23,7 @@ function ProsthesisHandler.CheckIfProst(item)
|
|||||||
|
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
return item:getBodyLocation():contains(bodyLocArmProst)
|
return item:getBodyLocation():contains(bodylocArmProstBaseline)
|
||||||
end
|
end
|
||||||
|
|
||||||
---Get the grouping for the prosthesis
|
---Get the grouping for the prosthesis
|
||||||
@@ -33,13 +33,10 @@ function ProsthesisHandler.GetGroup(item)
|
|||||||
local fullType = item:getFullType()
|
local fullType = item:getFullType()
|
||||||
local side = CommonMethods.GetSide(fullType)
|
local side = CommonMethods.GetSide(fullType)
|
||||||
|
|
||||||
|
|
||||||
local bodyLocation = item:getBodyLocation()
|
local bodyLocation = item:getBodyLocation()
|
||||||
local position
|
local position
|
||||||
if bodyLocation == bodyLocArmProst then
|
if bodyLocation:contains(bodylocArmProstBaseline) then
|
||||||
position = "Top_"
|
position = "Top_"
|
||||||
elseif bodyLocation == bodyLocLegProst then
|
|
||||||
position = "Bottom_"
|
|
||||||
else
|
else
|
||||||
TOC_DEBUG.print("Something is wrong, no position in this item")
|
TOC_DEBUG.print("Something is wrong, no position in this item")
|
||||||
position = nil
|
position = nil
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ require("TOC/Events")
|
|||||||
|
|
||||||
---@class Main
|
---@class Main
|
||||||
local Main = {
|
local Main = {
|
||||||
_version = "2.1.6"
|
_version = "2.1.7"
|
||||||
}
|
}
|
||||||
|
|
||||||
function Main.Start()
|
function Main.Start()
|
||||||
|
|||||||
@@ -73,7 +73,6 @@ end
|
|||||||
|
|
||||||
BodyLocationsAPI.New("TOC_Arm_L")
|
BodyLocationsAPI.New("TOC_Arm_L")
|
||||||
BodyLocationsAPI.New("TOC_Arm_R")
|
BodyLocationsAPI.New("TOC_Arm_R")
|
||||||
BodyLocationsAPI.New("TOC_Arm_LR")
|
|
||||||
BodyLocationsAPI.New("TOC_ArmProst_L")
|
BodyLocationsAPI.New("TOC_ArmProst_L")
|
||||||
BodyLocationsAPI.New("TOC_ArmProst_R")
|
BodyLocationsAPI.New("TOC_ArmProst_R")
|
||||||
BodyLocationsAPI.New("TOC_ArmAccessory_L")
|
BodyLocationsAPI.New("TOC_ArmAccessory_L")
|
||||||
|
|||||||
@@ -49,11 +49,14 @@ StaticData.PARTS_STR = {
|
|||||||
"UpperArm"
|
"UpperArm"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- TODO make it a bit more elegant
|
||||||
StaticData.MOD_BODYLOCS_BASE_IND_STR = {
|
StaticData.MOD_BODYLOCS_BASE_IND_STR = {
|
||||||
TOC_ArmProst = "TOC_ArmProst",
|
TOC_ArmProst_L = "TOC_ArmProst_L",
|
||||||
TOC_LegProst = "TOC_LegProst",
|
TOC_ArmProst_R = "TOC_ArmProst_R",
|
||||||
TOC_Arm = "TOC_Arm",
|
TOC_Arm_L = "TOC_Arm_L",
|
||||||
|
TOC_Arm_R = "TOC_Arm_R",
|
||||||
|
|
||||||
|
--TOC_LegProst = "TOC_LegProst",
|
||||||
}
|
}
|
||||||
|
|
||||||
-- No "MAX" here.
|
-- No "MAX" here.
|
||||||
@@ -149,6 +152,7 @@ StaticData.AMP_GROUPS_BASE_IND_STR = {
|
|||||||
Bottom = "Bottom"
|
Bottom = "Bottom"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- FIX This should be aligned with the body locs, no reason anymore to keep it separated
|
||||||
StaticData.AMP_GROUPS_IND_STR = {}
|
StaticData.AMP_GROUPS_IND_STR = {}
|
||||||
StaticData.AMP_GROUPS_STR = {}
|
StaticData.AMP_GROUPS_STR = {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user