I think I'm on the right path now. There's just one thing. The MAX_SKILL_INCREASE
limits the -1 luck/each cursedcoin to totally -4 luck by this line:
So I want to make an exception for the cursedcoin, something like:
if(itmid == "cursedcoin")
{
mod = iclamp(-100, MAX_SKILL_INCREASE, mod); //JRH for cursed coin
}
else
{
mod = iclamp(-MAX_SKILL_INCREASE, MAX_SKILL_INCREASE, mod); // PB: Single line
}
but something's wrong with if(itmid == "cursedcoin"). Not read.
Any ideas?
limits the -1 luck/each cursedcoin to totally -4 luck by this line:
Code:
mod = iclamp(-MAX_SKILL_INCREASE, MAX_SKILL_INCREASE, mod);
So I want to make an exception for the cursedcoin, something like:
if(itmid == "cursedcoin")
{
mod = iclamp(-100, MAX_SKILL_INCREASE, mod); //JRH for cursed coin
}
else
{
mod = iclamp(-MAX_SKILL_INCREASE, MAX_SKILL_INCREASE, mod); // PB: Single line
}
but something's wrong with if(itmid == "cursedcoin"). Not read.
Any ideas?
Last edited: