From add5789e065504a138cac07ed8bda8f9d559b00a Mon Sep 17 00:00:00 2001 From: Dragon Slayer <85514184+DragonSlayer62@users.noreply.github.com> Date: Thu, 16 Jan 2025 21:37:08 -0600 Subject: [PATCH] Update items.cpp --- source/items.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/items.cpp b/source/items.cpp index e460d1944..1189d3dc5 100644 --- a/source/items.cpp +++ b/source/items.cpp @@ -1207,6 +1207,10 @@ CItem * cItem::CreateBaseScriptItem( CItem *mCont, std::string ourItem, const UI { iCreated->SetMaxHP( iCreated->GetHP() ); } + else + {// If you add a maxhp tag and have durabilityHpBonus, it will increase the Durability (aka Health). + iCreated->SetMaxHP( iCreated->GetMaxHP() + durabilityHpBonus ); + } // If maxUses is higher than usesLeft for a new item, randomize the amount of usesLeft the item should have! if( iCreated->GetMaxUses() > iCreated->GetUsesLeft() )