added some todos

This commit is contained in:
Pao
2023-01-27 01:10:21 +01:00
parent 5b32bd20bb
commit 626e3a0848
2 changed files with 4 additions and 3 deletions

View File

@@ -53,6 +53,7 @@ local function GetImageName(part_name, limbs_data)
elseif part_data.is_cut and not part_data.is_amputation_shown then -- Empty (like hand if forearm cut)
name = "media/ui/TOC/Empty.png"
elseif not part_data.is_cut and
-- TODO This doesn't work in MP on another player since we're trying to retrieve bodyDamage from another player
getPlayer():getBodyDamage():getBodyPart(TocGetBodyPartFromPartName(part_name)):bitten() then -- Not cut but bitten
name = "media/ui/TOC/" .. part_name .. "/Bite.png"
else -- Not cut

View File

@@ -101,9 +101,9 @@ local function SetHealthStatusForBodyPart(part_data, part_name, player)
body_part:setAdditionalPain(ZombRand(1, added_pain))
end
-- Reapplies bandages after the whole ordeal
-- TODO not sure if this still works
--body_part_type:setBandaged(true, bandage_life, false, bandage_type)
-- TODO Add phantom pain to depended parts
end