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,18 +1,4 @@
|
|||||||
function TocCheckCompatibilityWithOlderVersions(mod_data)
|
local function TocReapplyAmputationClothingItem(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 player = getPlayer()
|
local player = getPlayer()
|
||||||
local player_inv = player:getInventory()
|
local player_inv = player:getInventory()
|
||||||
|
|
||||||
@@ -33,6 +19,24 @@ function TocCheckCompatibilityWithOlderVersions(mod_data)
|
|||||||
TocResetClothingItemBodyLocation(player, side, limb)
|
TocResetClothingItemBodyLocation(player, side, limb)
|
||||||
end
|
end
|
||||||
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
|
||||||
|
|
||||||
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