Cleaned Compatibility and added a changelog
This commit is contained in:
9
changelog.txt
Normal file
9
changelog.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
0.9.5
|
||||||
|
- No more Right Click menu. You'll have to use the TOC Menu from the Medical Check, except for Cheats
|
||||||
|
- Fixes to how amputations are handled
|
||||||
|
before and after
|
||||||
|
- Compatibility fixes with older versions
|
||||||
|
- Various fixes to Traits
|
||||||
|
- New heavily WIP models for metal and wooden hooks
|
||||||
|
- Readded sounds during amputations
|
||||||
|
- Fixed banages not getting applied after an amputation when they were in the player's inventory
|
||||||
@@ -1,3 +1,28 @@
|
|||||||
|
local function TocReapplyAmputationClothingItem(mod_data)
|
||||||
|
local player = getPlayer()
|
||||||
|
local player_inv = player:getInventory()
|
||||||
|
|
||||||
|
for _, side in ipairs(TOC_sides) do
|
||||||
|
for _, limb in ipairs(TOC_limbs) do
|
||||||
|
local part_name = side .. "_" .. limb
|
||||||
|
|
||||||
|
if mod_data.TOC.Limbs[part_name].is_cut and mod_data.TOC.Limbs[part_name].is_amputation_shown then
|
||||||
|
local amputated_clothing_name = "TOC.Amputation_" .. part_name
|
||||||
|
if player_inv:FindAndReturn(amputated_clothing_name) == nil then
|
||||||
|
local amputation_clothing_item = player:getInventory():AddItem(TocFindAmputatedClothingFromPartName(part_name))
|
||||||
|
TocSetCorrectTextureForAmputation(amputation_clothing_item, player)
|
||||||
|
player:setWornItem(amputation_clothing_item:getBodyLocation(), amputation_clothing_item)
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
TocResetClothingItemBodyLocation(player, side, limb)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
function TocCheckCompatibilityWithOlderVersions(mod_data)
|
function TocCheckCompatibilityWithOlderVersions(mod_data)
|
||||||
-- Gets the old status and turns it into the new.
|
-- Gets the old status and turns it into the new.
|
||||||
|
|
||||||
@@ -11,28 +36,7 @@ function TocCheckCompatibilityWithOlderVersions(mod_data)
|
|||||||
TocResetEverything()
|
TocResetEverything()
|
||||||
else
|
else
|
||||||
print("TOC: Found compatible data, correcting models in case of errors")
|
print("TOC: Found compatible data, correcting models in case of errors")
|
||||||
|
TocReapplyAmputationClothingItem(mod_data)
|
||||||
-- TODO check if models are correctly applied
|
|
||||||
local player = getPlayer()
|
|
||||||
local player_inv = player:getInventory()
|
|
||||||
|
|
||||||
for _, side in ipairs(TOC_sides) do
|
|
||||||
for _, limb in ipairs(TOC_limbs) do
|
|
||||||
local part_name = side .. "_" .. limb
|
|
||||||
|
|
||||||
if mod_data.TOC.Limbs[part_name].is_cut and mod_data.TOC.Limbs[part_name].is_amputation_shown then
|
|
||||||
local amputated_clothing_name = "TOC.Amputation_" .. part_name
|
|
||||||
if player_inv:FindAndReturn(amputated_clothing_name) == nil then
|
|
||||||
local amputation_clothing_item = player:getInventory():AddItem(TocFindAmputatedClothingFromPartName(part_name))
|
|
||||||
TocSetCorrectTextureForAmputation(amputation_clothing_item, player)
|
|
||||||
player:setWornItem(amputation_clothing_item:getBodyLocation(), amputation_clothing_item)
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
TocResetClothingItemBodyLocation(player, side, limb)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
2
mod.info
2
mod.info
@@ -5,5 +5,5 @@ description=Bitten? Not a problem!
|
|||||||
id=Amputation2
|
id=Amputation2
|
||||||
icon=icon.png
|
icon=icon.png
|
||||||
url=https://github.com/ZioPao/The-Only-Cure-But-Better
|
url=https://github.com/ZioPao/The-Only-Cure-But-Better
|
||||||
modversion=0.9.4
|
modversion=0.9.5
|
||||||
pzversion=41.65
|
pzversion=41.65
|
||||||
|
|||||||
Reference in New Issue
Block a user