Cleaned Compatibility and added a changelog

This commit is contained in:
Pao
2023-01-31 00:23:27 +01:00
parent 87ea5abe05
commit 61eac3c780
3 changed files with 36 additions and 23 deletions

9
changelog.txt Normal file
View 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

View File

@@ -1,18 +1,4 @@
function TocCheckCompatibilityWithOlderVersions(mod_data)
-- Gets the old status and turns it into the new.
if mod_data.TOC.Limbs == nil then
print("TOC: Limbs is nil, setting new mod_data")
TocMapOldDataToNew(mod_data)
end
if mod_data.TOC.Limbs.Right_Hand.is_cut == nil then
print("TOC: Something was wrongly initiliazed before. Resetting parameters")
TocResetEverything()
else
print("TOC: Found compatible data, correcting models in case of errors")
-- TODO check if models are correctly applied
local function TocReapplyAmputationClothingItem(mod_data)
local player = getPlayer()
local player_inv = player:getInventory()
@@ -33,6 +19,24 @@ function TocCheckCompatibilityWithOlderVersions(mod_data)
TocResetClothingItemBodyLocation(player, side, limb)
end
end
end
function TocCheckCompatibilityWithOlderVersions(mod_data)
-- Gets the old status and turns it into the new.
if mod_data.TOC.Limbs == nil then
print("TOC: Limbs is nil, setting new mod_data")
TocMapOldDataToNew(mod_data)
end
if mod_data.TOC.Limbs.Right_Hand.is_cut == nil then
print("TOC: Something was wrongly initiliazed before. Resetting parameters")
TocResetEverything()
else
print("TOC: Found compatible data, correcting models in case of errors")
TocReapplyAmputationClothingItem(mod_data)
end
end

View File

@@ -5,5 +5,5 @@ description=Bitten? Not a problem!
id=Amputation2
icon=icon.png
url=https://github.com/ZioPao/The-Only-Cure-But-Better
modversion=0.9.4
modversion=0.9.5
pzversion=41.65