Piotrek1447
Member
I have 1000 charges in my enchanted weapon but when i attack monster then charges automatically set to 231. In sources i make some modification like this:
In item.cpp
on this
In item.h
on this
and i added this:
What other changes i must make?
Sorry for my English.
In item.cpp
Code:
uint8_t _charges = 1;
if(!propStream.GET_UCHAR(_charges))
Code:
uint16_t _charges = 1;
if(!propStream.GET_USHORT(_charges))
Code:
uint8_t charges;
Code:
uint16_t charges;
Code:
if(getWeaponType() != WEAPON_DIST)
{
if(getItemCharge() > 0)
{
s << " that has " << (int)getItemCharge() << " charges left";
}
}
Sorry for my English.