Increase Upgrade Limit ?

05/06/2019 17:34 TestUrSkillz#1
Hey there.
I just increased the piercing limit in my source, so it does work for normal piercing but not for safe piercing. Can anyone tell me what i need to do to make safe piercing usable for MAX_PIERCING 20 ?

Is there a way to increase the normal Upgrade Limit +10 to +20 ?

Thanks !
05/06/2019 19:44 ZeroTwo02#2
MAX_PIERCING_WEAPON in CmnHdr.h

in the function "int CWndSmeltSafety::GetDefaultMaxSmeltValue(void)" (WndField.cpp)

Code:
	case WND_PIERCING:
		{
			if(m_pItemElem->GetProp()->dwItemKind3 == IK3_SUIT)
			{
				nDefaultMaxSmeltValue = 4;
			}
			else
			{
				nDefaultMaxSmeltValue = 10;
			}
			break;
		}
And check "SMELT_MAX" or change the else if.
05/06/2019 20:14 Naltalah#3
From what I have been told, there's much more to it than just increasing a define to get maximum upgrades working.

For piercing it might be true, that you just have to change one define, for normal upgrade limit it's definitely not the case.

As for the safe upgrade, this is set in the WndField. CWndSmeltSafety::OnChildNotify

[Only registered and activated users can see links. Click Here To Register...]

The define SMELT_MAX is used to limiting safe upgrade. I can't tell you if other things bug out if you just change it, but I think they might.

I believe in order to change the max general upgrade, you would have to change the ItemUpgrade.lua reading, the upgrade windows, some defines and exptable.inc for the attropt set effects.

Hope that info helped.
12/07/2022 03:49 bradix0805#4
Have full tutorial in this? I tried changing. But when It does work when changing it Manually. but when I use safe upgrade or safe accessory. Client just crash